{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/decionis-com/json-schema/decionis-com-vertex-authority-execution-token-verify-response-schema.json",
  "title": "VertexAuthorityExecutionTokenVerifyResponse",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/decionis-com-openapi-openapi.yml#/components/schemas/VertexAuthorityExecutionTokenVerifyResponse",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "service",
    "surface",
    "verified_at",
    "valid",
    "reason",
    "token_type",
    "binding",
    "expected_downstream_target",
    "summary"
  ],
  "properties": {
    "service": {
      "type": "string",
      "enum": [
        "decionis"
      ]
    },
    "surface": {
      "type": "string",
      "enum": [
        "google_cloud.vertex_authority"
      ]
    },
    "verified_at": {
      "type": "string",
      "format": "date-time"
    },
    "valid": {
      "type": "boolean"
    },
    "reason": {
      "type": "string",
      "enum": [
        "VALID",
        "MALFORMED_TOKEN",
        "INVALID_HEADER",
        "INVALID_CLAIMS",
        "INVALID_SIGNATURE",
        "TOKEN_EXPIRED",
        "ORG_MISMATCH",
        "DOWNSTREAM_TARGET_MISMATCH",
        "BINDING_SOURCE_MISMATCH"
      ]
    },
    "token_type": {
      "type": "string",
      "enum": [
        "decionis.vertex.execution.jwt.v1"
      ]
    },
    "binding": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true,
      "properties": {
        "token_id": {
          "type": "string",
          "format": "uuid"
        },
        "binding_version": {
          "type": "string"
        },
        "binding_source": {
          "type": "string",
          "enum": [
            "protocol_authorization",
            "human_override"
          ]
        },
        "override_id": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid"
        },
        "org_id": {
          "type": "string",
          "format": "uuid"
        },
        "dossier_id": {
          "type": "string",
          "format": "uuid"
        },
        "evaluation_id": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "outcome": {
          "type": "string"
        },
        "policy_version": {
          "type": [
            "string",
            "null"
          ]
        },
        "issued_at": {
          "type": "string",
          "format": "date-time"
        },
        "expires_at": {
          "type": "string",
          "format": "date-time"
        },
        "downstream_target": {
          "$ref": "#/$defs/DownstreamTarget"
        }
      }
    },
    "expected_downstream_target": {
      "allOf": [
        {
          "$ref": "#/$defs/DownstreamTarget"
        }
      ],
      "nullable": true
    },
    "summary": {
      "type": "string"
    }
  },
  "$defs": {
    "DownstreamTarget": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "system",
        "operation"
      ],
      "properties": {
        "system": {
          "type": "string",
          "maxLength": 120
        },
        "operation": {
          "type": "string",
          "maxLength": 160
        },
        "endpoint": {
          "type": "string",
          "maxLength": 500
        },
        "resource_type": {
          "type": "string",
          "maxLength": 120
        },
        "resource_id": {
          "type": "string",
          "maxLength": 200
        },
        "required_decision_binding": {
          "type": "boolean",
          "default": true
        },
        "metadata": {
          "type": "object",
          "additionalProperties": true
        }
      }
    }
  }
}