{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/GetVoicePortalPasscodeRuleObject", "title": "GetVoicePortalPasscodeRuleObject", "type": "object", "properties": { "expirePasscode": { "type": "object", "properties": { "enabled": { "type": "boolean", "example": true, "description": "If enabled, passcode expires after the number of days specified." }, "numberOfDays": { "type": "number", "example": 180, "description": "Number of days for passcode expiry. The minimum value is 15. The maximum value is 100." } }, "description": "Settings for passcode expiry." }, "failedAttempts": { "type": "object", "properties": { "enabled": { "type": "boolean", "example": true, "description": "If enabled, allows specified number of attempts before locking voice portal access." }, "attempts": { "type": "number", "example": 3, "description": "Number of failed attempts allowed." } }, "description": "Number of failed attempts allowed." }, "blockPreviousPasscodes": { "type": "object", "properties": { "enabled": { "type": "boolean", "example": true, "description": "If enabled, the specified number of passcode changes must occur before a passcode can be re-used." }, "numberOfPasscodes": { "type": "number", "example": 10, "description": "Number of previous passcodes not allowed to be re-used. The minimum value is 1. The maximum value is 10." } }, "description": "Settings for previous passcode usage." }, "blockRepeatedDigits": { "type": "object", "properties": { "enabled": { "type": "boolean", "example": true, "description": "If enabled, checks for sequence of the same digit being repeated." }, "max": { "type": "number", "example": 3, "description": "Maximum number of repeated digit sequence allowed. The minimum value is 1. The maximum value is 6." } }, "description": "Settings to prevent single digits from being repeated in the passcode. For example, with a maximum value of 3, 111222 is allowed but 112222 is not allowed since it contains a repeated digit sequence longer than 3." }, "blockContiguousSequences": { "type": "object", "properties": { "enabled": { "type": "boolean", "example": true, "description": "If enabled, do not allow the specified number of ascending or descending digits in a row." }, "numberOfAscendingDigits": { "type": "number", "example": 3, "description": "Specifies the maximum length of an ascending numerical sequence allowed. The minimum value is 2. The maximum value is 5. Example: If this value is set to 3, then 123856 is allowed, but 123485 is not allowed (since the ascending sequence 1234 exceeds 3 digits)." }, "numberOfDescendingDigits": { "type": "number", "example": 3, "description": "Specifies the maximum length of a descending numerical sequence allowed. The minimum value is 2. The maximum value is 5. Example: If this value is set to 3, then 321856 is allowed, but 432185 is not allowed (since the descending sequence 4321 exceeds 3 digits)." } }, "description": "Settings for not allowing numerical sequence in passcode (for example, 012345 or 987654)." }, "length": { "type": "object", "properties": { "min": { "type": "number", "example": 6, "description": "The minimum value is 2. The maximum value is 15." }, "max": { "type": "number", "example": 30, "description": "The minimum value is 3. The maximum value is 30." } }, "description": "Allowed length of the passcode." }, "blockRepeatedPatternsEnabled": { "type": "boolean", "example": true, "description": "If enabled, the passcode cannot contain repeated patterns. For example, 121212 and 123123." }, "blockUserNumberEnabled": { "type": "boolean", "example": true, "description": "If enabled, the passcode do not allow user phone number or extension." }, "blockReversedUserNumberEnabled": { "type": "boolean", "example": true, "description": "If enabled, the passcode do not allow revered phone number or extension." }, "blockReversedOldPasscodeEnabled": { "type": "boolean", "example": true, "description": "If enabled, the passcode do not allow setting reversed old passcode." } } }