{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$ref": "#/definitions/AuthInformationResponse",
    "definitions": {
        "AuthInformationResponse": {
            "type": "object",
            "properties": {
                "data": {
                    "type": "object",
                    "properties": {
                        "trustedPhoneNumbers": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/TrustedPhoneNumber"
                            },
                            "minItems": 1
                        }
                    },
                    "required": [
                        "trustedPhoneNumbers"
                    ]
                }
            },
            "required": [
                "data"
            ],
            "description": "The expected response format when getting auth information"
        },
        "TrustedPhoneNumber": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "number",
                    "minimum": 0
                },
                "numberWithDialCode": {
                    "type": "string",
                    "minLength": 1
                },
                "pushMode": {
                    "type": "string",
                    "pattern": "^sms|voice$"
                },
                "obfuscatedNumber": {
                    "type": "string",
                    "minLength": 1
                },
                "lastTwoDigits": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2
                }
            },
            "required": [
                "id",
                "numberWithDialCode",
                "pushMode",
                "obfuscatedNumber",
                "lastTwoDigits"
            ],
            "description": "Object representing a trusted phone number used in MFA resend responses"
        }
    }
}
