{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tektolo-com/json-schema/tektolo-com-verify-response-schema.json",
  "title": "VerifyResponse",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tektolo-com-openapi.json#/components/schemas/VerifyResponse",
  "properties": {
    "signing": {
      "type": "string",
      "enum": [
        "on",
        "off"
      ],
      "title": "Signing"
    },
    "verified": {
      "type": "boolean",
      "title": "Verified",
      "description": "True only when Tektolo's signature checks out."
    },
    "reason": {
      "type": "string",
      "title": "Reason",
      "description": "Empty when verified; else malformed, unsupported, unknown_key, bad_signature or signing_off."
    },
    "message": {
      "type": "string",
      "title": "Message"
    },
    "kid": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Kid"
    },
    "issued_on": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Issued On",
      "description": "The day it was issued (UTC)."
    },
    "issued_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Issued At",
      "description": "JWS only: the exact time."
    },
    "capability": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Capability"
    },
    "capability_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Capability Name"
    },
    "tool_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tool Name",
      "description": "The web tool's name when a web tool issued it."
    },
    "operation": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Operation"
    },
    "document": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Document",
      "description": "What the code was printed on."
    },
    "ruleset": {
      "anyOf": [
        {
          "$ref": "#/$defs/RulesetCheck"
        },
        {
          "type": "null"
        }
      ]
    },
    "engine": {
      "anyOf": [
        {
          "$ref": "#/$defs/EngineCheck"
        },
        {
          "type": "null"
        }
      ]
    },
    "result_hash": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Result Hash",
      "description": "JWS only."
    },
    "covers": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "result",
            "text"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Covers",
      "description": "What the code's keyed digest covers: one result, or a summary's text."
    },
    "text_check": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "not_asked",
            "matches",
            "differs",
            "not_available"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Text Check"
    },
    "text_message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Text Message"
    }
  },
  "type": "object",
  "required": [
    "signing",
    "verified",
    "reason",
    "message"
  ],
  "$defs": {
    "EngineCheck": {
      "properties": {
        "version": {
          "type": "string",
          "title": "Version"
        },
        "current_version": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Current Version"
        }
      },
      "type": "object",
      "required": [
        "version",
        "current_version"
      ],
      "title": "EngineCheck"
    },
    "RulesetCheck": {
      "properties": {
        "version": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Version"
        },
        "hash_prefix": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Hash Prefix",
          "description": "The first 16 hex digits of the ruleset hash."
        },
        "status": {
          "type": "string",
          "enum": [
            "current",
            "superseded",
            "unknown",
            "none"
          ],
          "title": "Status"
        },
        "current_version": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Current Version",
          "description": "The ruleset this site uses now."
        }
      },
      "type": "object",
      "required": [
        "version",
        "hash_prefix",
        "status",
        "current_version"
      ],
      "title": "RulesetCheck"
    }
  }
}