{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/knackjay/json-schema/knackjay-kya-decision-schema.json",
  "title": "KyaDecision",
  "description": "What this site decided about the agent behind the account, from an apis.io Agent Signup attestation.",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/knackjay-api-openapi.yml#/components/schemas/KyaDecision",
  "type": "object",
  "properties": {
    "decision": {
      "type": "string",
      "enum": [
        "trusted",
        "known",
        "none"
      ]
    },
    "sub": {
      "type": "string",
      "description": "The KYA subject, e.g. wba:<domain>."
    },
    "issuer": {
      "type": "string"
    },
    "tier": {
      "type": "string",
      "enum": [
        "anonymous",
        "named",
        "confirmed",
        "anchored"
      ]
    },
    "bound": {
      "type": "boolean",
      "description": "The request was signed with the key the attestation is bound to."
    },
    "agent": {
      "type": [
        "string",
        "null"
      ],
      "description": "The agent registry slug on apis.io."
    },
    "registry": {
      "type": [
        "string",
        "null"
      ]
    },
    "record": {
      "type": [
        "string",
        "null"
      ],
      "description": "The public KYA record."
    },
    "disclosure": {
      "type": [
        "number",
        "null"
      ]
    },
    "verification": {
      "type": [
        "number",
        "null"
      ]
    },
    "reasons": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "verified_at": {
      "type": "string",
      "format": "date-time"
    },
    "unlocks": {
      "type": "object"
    },
    "how": {
      "type": "string"
    }
  }
}