{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/send21-io/json-schema/send21-io-register-complete-request-schema.json",
  "title": "RegisterCompleteRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/send21-io-auth-api-openapi.yml#/components/schemas/RegisterCompleteRequest",
  "type": "object",
  "properties": {
    "ceremonyId": {
      "type": "string",
      "format": "uuid"
    },
    "credential": {
      "$ref": "#/$defs/AuthenticatorAttestationRawResponse"
    },
    "credentialName": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "additionalProperties": false,
  "$defs": {
    "AttestationResponse": {
      "required": [
        "attestationObject",
        "clientDataJSON",
        "transports"
      ],
      "type": "object",
      "properties": {
        "attestationObject": {
          "type": [
            "string",
            "null"
          ],
          "format": "byte"
        },
        "clientDataJSON": {
          "type": [
            "string",
            "null"
          ],
          "format": "byte"
        },
        "transports": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AuthenticatorTransport"
          }
        }
      },
      "additionalProperties": false
    },
    "AuthenticationExtensionsClientOutputs": {
      "type": "object",
      "properties": {
        "example.extension.bool": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "appid": {
          "type": "boolean"
        },
        "exts": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "uvm": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            }
          }
        },
        "credProps": {
          "$ref": "#/$defs/CredentialPropertiesOutput"
        },
        "prf": {
          "$ref": "#/$defs/AuthenticationExtensionsPRFOutputs"
        },
        "largeBlob": {
          "$ref": "#/$defs/AuthenticationExtensionsLargeBlobOutputs"
        },
        "credProtect": {
          "$ref": "#/$defs/CredentialProtectionPolicy"
        }
      },
      "additionalProperties": false
    },
    "AuthenticationExtensionsLargeBlobOutputs": {
      "type": "object",
      "properties": {
        "supported": {
          "type": "boolean"
        },
        "blob": {
          "type": [
            "string",
            "null"
          ],
          "format": "byte"
        },
        "written": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "AuthenticationExtensionsPRFOutputs": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "results": {
          "$ref": "#/$defs/AuthenticationExtensionsPRFValues"
        }
      },
      "additionalProperties": false
    },
    "AuthenticationExtensionsPRFValues": {
      "required": [
        "first"
      ],
      "type": "object",
      "properties": {
        "first": {
          "type": [
            "string",
            "null"
          ],
          "format": "byte"
        },
        "second": {
          "type": [
            "string",
            "null"
          ],
          "format": "byte"
        }
      },
      "additionalProperties": false
    },
    "AuthenticatorAttestationRawResponse": {
      "required": [
        "clientExtensionResults",
        "id",
        "rawId",
        "response",
        "type"
      ],
      "type": "object",
      "properties": {
        "id": {
          "minLength": 1,
          "type": "string"
        },
        "rawId": {
          "type": "string",
          "format": "byte"
        },
        "type": {
          "$ref": "#/$defs/PublicKeyCredentialType"
        },
        "response": {
          "$ref": "#/$defs/AttestationResponse"
        },
        "extensions": {
          "$ref": "#/$defs/AuthenticationExtensionsClientOutputs"
        },
        "clientExtensionResults": {
          "$ref": "#/$defs/AuthenticationExtensionsClientOutputs"
        }
      },
      "additionalProperties": false
    },
    "AuthenticatorTransport": {
      "enum": [
        "Usb",
        "Nfc",
        "Ble",
        "SmartCard",
        "Hybrid",
        "Internal"
      ],
      "type": "string"
    },
    "CredentialPropertiesOutput": {
      "type": "object",
      "properties": {
        "rk": {
          "type": "boolean"
        },
        "authenticatorDisplayName": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "CredentialProtectionPolicy": {
      "enum": [
        "UserVerificationOptional",
        "UserVerificationOptionalWithCredentialIdList",
        "UserVerificationRequired"
      ],
      "type": "string"
    },
    "PublicKeyCredentialType": {
      "enum": [
        "PublicKey",
        "Invalid"
      ],
      "type": "string"
    }
  }
}