{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/viridi-parente/main/json-schema/viridi-parente-backup-code-two-fa-account-config-schema.json",
  "title": "BackupCodeTwoFaAccountConfig",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/viridi-parente-two-factor-auth-config-controller-api-openapi.yml#/components/schemas/BackupCodeTwoFaAccountConfig",
  "allOf": [
    {
      "$ref": "#/$defs/TwoFaAccountConfig"
    },
    {
      "type": "object",
      "properties": {
        "codes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "uniqueItems": true
        },
        "codesLeft": {
          "type": "integer",
          "format": "int32"
        }
      }
    }
  ],
  "required": [
    "codes"
  ],
  "$defs": {
    "TwoFaAccountConfig": {
      "properties": {
        "useByDefault": {
          "type": "boolean"
        },
        "providerType": {
          "type": "string"
        }
      },
      "required": [
        "providerType"
      ]
    }
  }
}