{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/decionis-com/json-schema/decionis-com-vertex-authority-override-request-schema.json",
  "title": "VertexAuthorityOverrideRequest",
  "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/VertexAuthorityOverrideRequest",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "org_id",
    "reason_code"
  ],
  "properties": {
    "org_id": {
      "type": "string",
      "format": "uuid"
    },
    "dossier_id": {
      "type": "string",
      "format": "uuid",
      "description": "Decision Dossier to attach the override request to."
    },
    "original_dossier_id": {
      "type": "string",
      "format": "uuid",
      "description": "Alias for dossier_id when mirroring protocol override terminology."
    },
    "decision_chain_id": {
      "type": "string",
      "format": "uuid"
    },
    "reason_code": {
      "type": "string",
      "maxLength": 120
    },
    "override_note": {
      "type": "string",
      "maxLength": 2000
    },
    "evidence_refs": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 500
      }
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    },
    "metadata": {
      "type": "object",
      "additionalProperties": true
    },
    "requested_by": {
      "$ref": "#/$defs/VertexAuthorityActor"
    },
    "google_context": {
      "$ref": "#/$defs/GoogleContext"
    },
    "intent": {
      "$ref": "#/$defs/VertexIntent"
    },
    "downstream_target": {
      "$ref": "#/$defs/DownstreamTarget"
    }
  },
  "$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
        }
      }
    },
    "GoogleContext": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "agent_id": {
          "type": "string",
          "maxLength": 200
        },
        "agent_session_id": {
          "type": "string",
          "maxLength": 200
        },
        "tool_call_id": {
          "type": "string",
          "maxLength": 200
        },
        "project_id": {
          "type": "string",
          "maxLength": 120
        },
        "location": {
          "type": "string",
          "maxLength": 120
        },
        "service_account_email": {
          "type": "string",
          "format": "email"
        },
        "principal_subject": {
          "type": "string",
          "maxLength": 300
        },
        "user_email": {
          "type": "string",
          "format": "email"
        },
        "reasoning_model": {
          "type": "string",
          "maxLength": 120
        }
      }
    },
    "VertexAuthorityActor": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "actor_type": {
          "type": "string",
          "maxLength": 80
        },
        "actor_id": {
          "type": "string",
          "maxLength": 200
        },
        "email": {
          "type": "string",
          "format": "email"
        },
        "name": {
          "type": "string",
          "maxLength": 200
        }
      }
    },
    "VertexIntent": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "action_type"
      ],
      "properties": {
        "action_type": {
          "type": "string",
          "maxLength": 160
        },
        "action_description": {
          "type": "string",
          "maxLength": 500
        },
        "target_entity": {
          "type": "string",
          "maxLength": 160
        },
        "target_id": {
          "type": "string",
          "maxLength": 200
        },
        "payload": {
          "type": "object",
          "additionalProperties": true
        }
      }
    }
  }
}