{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/infocert/main/json-schema/infocert-input-credentials-authorize-schema.json",
  "title": "input-credentials-authorize",
  "description": "Input parameters for credentials/authorize method",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/infocert-csc-openapi.json#/components/schemas/input-credentials-authorize",
  "type": "object",
  "required": [
    "credentialID",
    "numSignatures"
  ],
  "properties": {
    "credentialID": {
      "$ref": "#/$defs/credentialID"
    },
    "numSignatures": {
      "$ref": "#/$defs/numSignatures"
    },
    "hash": {
      "$ref": "#/$defs/hash"
    },
    "PIN": {
      "$ref": "#/$defs/PIN"
    },
    "OTP": {
      "$ref": "#/$defs/OTP"
    },
    "description": {
      "$ref": "#/$defs/description"
    },
    "clientData": {
      "$ref": "#/$defs/clientData"
    }
  },
  "$defs": {
    "OTP": {
      "type": "string",
      "description": "The OTP collected from the user"
    },
    "PIN": {
      "type": "string",
      "description": "The PIN collected from the user"
    },
    "clientData": {
      "type": "string",
      "description": "Arbitrary data from the Signature Application"
    },
    "credentialID": {
      "type": "string",
      "description": "The identifier associated to the credential"
    },
    "description": {
      "type": "string",
      "description": "Contains a free form description of the authorization transaction in the lang language"
    },
    "hash": {
      "type": "array",
      "description": "One or more Base64-encoded hash values to be signed",
      "items": {
        "type": "string",
        "description": "Single Base64-encoded hash value to be signed"
      }
    },
    "numSignatures": {
      "type": "integer",
      "description": "The number of signatures to authorize"
    }
  }
}