{
  "openapi": "3.1.0",
  "jsonSchemaDialect": "http://json-schema.org/draft-07/schema#",
  "info": {
    "title": "STACK API",
    "version": "2.4.1",
    "summary": "The HTTP routes of STACK: the account and its services, and the controls.",
    "description": "Every route a customer or a customer’s agent calls at api.getstack.run, generated from the routes and the schemas the API runs. Routes for STACK’s own staff, calls between STACK’s own services and the addresses providers call are not part of this document."
  },
  "servers": [
    {
      "url": "https://api.getstack.run"
    }
  ],
  "tags": [
    {
      "name": ".well-known"
    },
    {
      "name": "a2a"
    },
    {
      "name": "accounts"
    },
    {
      "name": "agent-identity"
    },
    {
      "name": "agents"
    },
    {
      "name": "audit"
    },
    {
      "name": "auth"
    },
    {
      "name": "authority"
    },
    {
      "name": "billing"
    },
    {
      "name": "blocked-callers"
    },
    {
      "name": "brain"
    },
    {
      "name": "calendar"
    },
    {
      "name": "catalogue"
    },
    {
      "name": "chat-channels"
    },
    {
      "name": "control-decisions"
    },
    {
      "name": "control-policies"
    },
    {
      "name": "control-reviews"
    },
    {
      "name": "control-socket"
    },
    {
      "name": "credentials"
    },
    {
      "name": "detectors"
    },
    {
      "name": "drive"
    },
    {
      "name": "dropoffs"
    },
    {
      "name": "evidence-packs"
    },
    {
      "name": "flagged-content"
    },
    {
      "name": "fleets"
    },
    {
      "name": "governance"
    },
    {
      "name": "health"
    },
    {
      "name": "identity"
    },
    {
      "name": "intents"
    },
    {
      "name": "licence"
    },
    {
      "name": "llm"
    },
    {
      "name": "making"
    },
    {
      "name": "memory"
    },
    {
      "name": "message-access"
    },
    {
      "name": "messages"
    },
    {
      "name": "missions"
    },
    {
      "name": "notifications"
    },
    {
      "name": "oauth"
    },
    {
      "name": "oauth-apps"
    },
    {
      "name": "operator"
    },
    {
      "name": "operator-decisions"
    },
    {
      "name": "operators"
    },
    {
      "name": "opt-outs"
    },
    {
      "name": "partner"
    },
    {
      "name": "passports"
    },
    {
      "name": "payouts"
    },
    {
      "name": "pii"
    },
    {
      "name": "post"
    },
    {
      "name": "proxy"
    },
    {
      "name": "scan"
    },
    {
      "name": "security-events"
    },
    {
      "name": "services"
    },
    {
      "name": "skill-requests"
    },
    {
      "name": "skills"
    },
    {
      "name": "team"
    },
    {
      "name": "trust"
    },
    {
      "name": "usage"
    },
    {
      "name": "wake"
    },
    {
      "name": "website"
    },
    {
      "name": "websites"
    },
    {
      "name": "well-known"
    },
    {
      "name": "workload"
    },
    {
      "name": "workspace"
    },
    {
      "name": "workspaces"
    }
  ],
  "paths": {
    "/.well-known/agent.json": {
      "get": {
        "operationId": "getWellKnownAgentJson",
        "tags": [
          "well-known"
        ],
        "summary": "GET /.well-known/agent.json",
        "x-stack-oauth-scope": "none",
        "security": [],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/.well-known/http-message-signatures-directory": {
      "get": {
        "operationId": "getWellKnownHttpMessageSignaturesDirectory",
        "tags": [
          "well-known"
        ],
        "summary": "GET /.well-known/http-message-signatures-directory",
        "x-stack-oauth-scope": "none",
        "security": [],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/.well-known/oauth-authorization-server": {
      "get": {
        "operationId": "getWellKnownOauthAuthorizationServer",
        "tags": [
          "well-known"
        ],
        "summary": "GET /.well-known/oauth-authorization-server",
        "x-stack-oauth-scope": "none",
        "security": [],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/health": {
      "get": {
        "operationId": "getHealth",
        "tags": [
          "health"
        ],
        "summary": "GET /health",
        "security": [],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/oauth/authorize": {
      "get": {
        "operationId": "getOauthAuthorize",
        "tags": [
          "oauth"
        ],
        "summary": "GET /oauth/authorize",
        "x-stack-oauth-scope": "none",
        "security": [],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postOauthAuthorize",
        "tags": [
          "oauth"
        ],
        "summary": "POST /oauth/authorize",
        "x-stack-oauth-scope": "none",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OAuthParams"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/oauth/device/approve": {
      "post": {
        "operationId": "postOauthDeviceApprove",
        "tags": [
          "oauth"
        ],
        "summary": "POST /oauth/device/approve",
        "x-stack-oauth-scope": "none",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OAuthParams"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/oauth/device/authorize": {
      "post": {
        "operationId": "postOauthDeviceAuthorize",
        "tags": [
          "oauth"
        ],
        "summary": "POST /oauth/device/authorize",
        "x-stack-oauth-scope": "none",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OAuthParams"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/oauth/device/deny": {
      "post": {
        "operationId": "postOauthDeviceDeny",
        "tags": [
          "oauth"
        ],
        "summary": "POST /oauth/device/deny",
        "x-stack-oauth-scope": "none",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OAuthParams"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/oauth/register": {
      "post": {
        "operationId": "postOauthRegister",
        "tags": [
          "oauth"
        ],
        "summary": "POST /oauth/register",
        "x-stack-oauth-scope": "none",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClientMetadata"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/oauth/revoke": {
      "post": {
        "operationId": "postOauthRevoke",
        "tags": [
          "oauth"
        ],
        "summary": "POST /oauth/revoke",
        "x-stack-oauth-scope": "none",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OAuthParams"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/oauth/token": {
      "post": {
        "operationId": "postOauthToken",
        "tags": [
          "oauth"
        ],
        "summary": "POST /oauth/token",
        "x-stack-oauth-scope": "none",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OAuthParams"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/.well-known/jwks.json": {
      "get": {
        "operationId": "getV1WellKnownJwksJson",
        "tags": [
          ".well-known"
        ],
        "summary": "GET /v1/.well-known/jwks.json",
        "x-stack-oauth-scope": "none",
        "security": [],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/a2a/jsonrpc": {
      "post": {
        "operationId": "postV1A2aJsonrpc",
        "tags": [
          "a2a"
        ],
        "summary": "POST /v1/a2a/jsonrpc",
        "x-stack-oauth-scope": "dropoffs:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/JsonRpcRequestSchema"
                  },
                  {
                    "$ref": "#/components/schemas/JsonRpcIdProbe"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts": {
      "get": {
        "operationId": "getV1Accounts",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1Accounts",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts",
        "x-stack-oauth-scope": "accounts:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OpenAgentAccountInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/mail-domains": {
      "get": {
        "operationId": "getV1AccountsMailDomains",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/mail-domains",
        "x-stack-oauth-scope": "accounts:read",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1AccountsMailDomains",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/mail-domains",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/mail-domains/{id}/verify": {
      "post": {
        "operationId": "postV1AccountsMailDomainsByIdVerify",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/mail-domains/:id/verify",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^omd_[A-Za-z0-9_-]{8,64}$"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/making/suppliers": {
      "get": {
        "operationId": "getV1AccountsMakingSuppliers",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/making/suppliers",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/making/suppliers/printful/connect": {
      "post": {
        "operationId": "postV1AccountsMakingSuppliersPrintfulConnect",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/making/suppliers/printful/connect",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/making/suppliers/{supplier}": {
      "delete": {
        "operationId": "deleteV1AccountsMakingSuppliersBySupplier",
        "tags": [
          "accounts"
        ],
        "summary": "DELETE /v1/accounts/making/suppliers/:supplier",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "supplier",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "gelato",
                "prodigi",
                "printful",
                "lulu"
              ]
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "putV1AccountsMakingSuppliersBySupplier",
        "tags": [
          "accounts"
        ],
        "summary": "PUT /v1/accounts/making/suppliers/:supplier",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "supplier",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "gelato",
                "prodigi",
                "printful",
                "lulu"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MakingSupplierCredentialInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/wallet-owner": {
      "get": {
        "operationId": "getV1AccountsWalletOwner",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/wallet-owner",
        "x-stack-oauth-scope": "billing:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1AccountsWalletOwner",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/wallet-owner",
        "x-stack-oauth-scope": "none",
        "x-stack-gates": [
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WalletOwnerInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/wallet-owner/funds": {
      "get": {
        "operationId": "getV1AccountsWalletOwnerFunds",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/wallet-owner/funds",
        "x-stack-oauth-scope": "none",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/wallet-owner/policies": {
      "get": {
        "operationId": "getV1AccountsWalletOwnerPolicies",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/wallet-owner/policies",
        "x-stack-oauth-scope": "none",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/wallet-owner/wallets": {
      "get": {
        "operationId": "getV1AccountsWalletOwnerWallets",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/wallet-owner/wallets",
        "x-stack-oauth-scope": "none",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}": {
      "delete": {
        "operationId": "deleteV1AccountsById",
        "tags": [
          "accounts"
        ],
        "summary": "DELETE /v1/accounts/:id",
        "x-stack-oauth-scope": "accounts:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[a-f0-9]{32}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "get": {
        "operationId": "getV1AccountsById",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[a-f0-9]{32}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/browser/sessions": {
      "post": {
        "operationId": "postV1AccountsByIdBrowserSessions",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/browser/sessions",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OpenBrowserSessionInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/browser/sessions/{sid}": {
      "delete": {
        "operationId": "deleteV1AccountsByIdBrowserSessionsBySid",
        "tags": [
          "accounts"
        ],
        "summary": "DELETE /v1/accounts/:id/browser/sessions/:sid",
        "x-stack-oauth-scope": "accounts:write",
        "x-stack-gates": [
          "sessionOwner"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "sid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/browser/sessions/{sid}/act": {
      "post": {
        "operationId": "postV1AccountsByIdBrowserSessionsBySidAct",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/browser/sessions/:sid/act",
        "x-stack-oauth-scope": "accounts:act",
        "x-stack-gates": [
          "sessionOwner"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "sid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BrowserActInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/browser/sessions/{sid}/checkout": {
      "post": {
        "operationId": "postV1AccountsByIdBrowserSessionsBySidCheckout",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/browser/sessions/:sid/checkout",
        "x-stack-oauth-scope": "accounts:act",
        "x-stack-gates": [
          "sessionOwner"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "sid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BrowserCheckoutInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/browser/sessions/{sid}/navigate": {
      "post": {
        "operationId": "postV1AccountsByIdBrowserSessionsBySidNavigate",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/browser/sessions/:sid/navigate",
        "x-stack-oauth-scope": "accounts:act",
        "x-stack-gates": [
          "sessionOwner"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "sid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BrowserNavigateInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/browser/sessions/{sid}/read": {
      "post": {
        "operationId": "postV1AccountsByIdBrowserSessionsBySidRead",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/browser/sessions/:sid/read",
        "x-stack-oauth-scope": "accounts:act",
        "x-stack-gates": [
          "sessionOwner"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "sid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/browser/sessions/{sid}/screenshot": {
      "post": {
        "operationId": "postV1AccountsByIdBrowserSessionsBySidScreenshot",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/browser/sessions/:sid/screenshot",
        "x-stack-oauth-scope": "accounts:act",
        "x-stack-gates": [
          "sessionOwner"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "sid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/budget": {
      "put": {
        "operationId": "putV1AccountsByIdBudget",
        "tags": [
          "accounts"
        ],
        "summary": "PUT /v1/accounts/:id/budget",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[a-f0-9]{32}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetAccountBudgetInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/calendar/agenda": {
      "get": {
        "operationId": "getV1AccountsByIdCalendarAgenda",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/calendar/agenda",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "time_zone",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "default": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 400
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/calendar/events": {
      "get": {
        "operationId": "getV1AccountsByIdCalendarEvents",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/calendar/events",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          {
            "name": "role",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "organizer",
                "attendee"
              ]
            }
          },
          {
            "name": "response",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "pending",
                "accepted",
                "tentative",
                "declined"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 300
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1AccountsByIdCalendarEvents",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/calendar/events",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCalendarEventInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/calendar/events/{eventId}": {
      "get": {
        "operationId": "getV1AccountsByIdCalendarEventsByEventId",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/calendar/events/:eventId",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          {
            "name": "eventId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^cev_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "patch": {
        "operationId": "patchV1AccountsByIdCalendarEventsByEventId",
        "tags": [
          "accounts"
        ],
        "summary": "PATCH /v1/accounts/:id/calendar/events/:eventId",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          {
            "name": "eventId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^cev_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCalendarEventInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/calendar/events/{eventId}/cancel": {
      "post": {
        "operationId": "postV1AccountsByIdCalendarEventsByEventIdCancel",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/calendar/events/:eventId/cancel",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          {
            "name": "eventId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^cev_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CancelCalendarEventInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/calendar/events/{eventId}/counters/{counterId}/decline": {
      "post": {
        "operationId": "postV1AccountsByIdCalendarEventsByEventIdCountersByCounterIdDecline",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/calendar/events/:eventId/counters/:counterId/decline",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          {
            "name": "eventId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^cev_[A-Za-z0-9_-]{1,64}$"
            }
          },
          {
            "name": "counterId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ccp_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeclineCalendarCounterInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/calendar/events/{eventId}/respond": {
      "post": {
        "operationId": "postV1AccountsByIdCalendarEventsByEventIdRespond",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/calendar/events/:eventId/respond",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          {
            "name": "eventId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^cev_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RespondCalendarEventInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/calendar/feed": {
      "delete": {
        "operationId": "deleteV1AccountsByIdCalendarFeed",
        "tags": [
          "accounts"
        ],
        "summary": "DELETE /v1/accounts/:id/calendar/feed",
        "x-stack-oauth-scope": "accounts:manage",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "get": {
        "operationId": "getV1AccountsByIdCalendarFeed",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/calendar/feed",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1AccountsByIdCalendarFeed",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/calendar/feed",
        "x-stack-oauth-scope": "accounts:manage",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/calls": {
      "get": {
        "operationId": "getV1AccountsByIdCalls",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/calls",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1AccountsByIdCalls",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/calls",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartAgentCallInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/calls/{callId}": {
      "get": {
        "operationId": "getV1AccountsByIdCallsByCallId",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/calls/:callId",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          },
          {
            "name": "callId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acall_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/calls/{callId}/answer": {
      "post": {
        "operationId": "postV1AccountsByIdCallsByCallIdAnswer",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/calls/:callId/answer",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          },
          {
            "name": "callId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acall_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AnswerAgentCallInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/calls/{callId}/decline": {
      "post": {
        "operationId": "postV1AccountsByIdCallsByCallIdDecline",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/calls/:callId/decline",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          },
          {
            "name": "callId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acall_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/calls/{callId}/hang-up": {
      "post": {
        "operationId": "postV1AccountsByIdCallsByCallIdHangUp",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/calls/:callId/hang-up",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          },
          {
            "name": "callId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acall_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/calls/{callId}/keys": {
      "post": {
        "operationId": "postV1AccountsByIdCallsByCallIdKeys",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/calls/:callId/keys",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          },
          {
            "name": "callId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acall_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentCallPressKeysInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/calls/{callId}/live": {
      "get": {
        "operationId": "getV1AccountsByIdCallsByCallIdLive",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/calls/:callId/live",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "callId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/calls/{callId}/say": {
      "post": {
        "operationId": "postV1AccountsByIdCallsByCallIdSay",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/calls/:callId/say",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          },
          {
            "name": "callId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acall_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentCallSayInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/calls/{callId}/voice": {
      "post": {
        "operationId": "postV1AccountsByIdCallsByCallIdVoice",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/calls/:callId/voice",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          },
          {
            "name": "callId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acall_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentCallSetVoiceInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/catalogue": {
      "get": {
        "operationId": "getV1AccountsByIdCatalogue",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/catalogue",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/email/send": {
      "post": {
        "operationId": "postV1AccountsByIdEmailSend",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/email/send",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendAgentEmailInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The email was accepted for sending. to is one address: where the further To addresses went is in cc.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentMessageSendView"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "description": "An email to one person or several, with cc, bcc and attachments. To is one address or a list; OpenMail, the mail provider, takes one To address, so the first is the To and any further ones are delivered as Cc. The limits are OpenMail's: attachments at most 25 MB in all, body 100,000 characters, HTML body 500,000, subject 998, and no limit on recipients or attachments is stated. Files sent inline come to at most 10 MB in all; a larger file is attached from the drive by file_id."
      }
    },
    "/v1/accounts/{id}/identity": {
      "get": {
        "operationId": "getV1AccountsByIdIdentity",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/identity",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[a-f0-9]{32}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "putV1AccountsByIdIdentity",
        "tags": [
          "accounts"
        ],
        "summary": "PUT /v1/accounts/:id/identity",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[a-f0-9]{32}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetAgentIdentityInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/making/designs": {
      "get": {
        "operationId": "getV1AccountsByIdMakingDesigns",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/making/designs",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1AccountsByIdMakingDesigns",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/making/designs",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MakingUploadDesignInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/making/designs/{designId}": {
      "get": {
        "operationId": "getV1AccountsByIdMakingDesignsByDesignId",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/making/designs/:designId",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "designId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^mkd_[\\w-]{8,64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/making/orders": {
      "get": {
        "operationId": "getV1AccountsByIdMakingOrders",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/making/orders",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1AccountsByIdMakingOrders",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/making/orders",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MakingOrderInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/making/orders/{orderId}": {
      "get": {
        "operationId": "getV1AccountsByIdMakingOrdersByOrderId",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/making/orders/:orderId",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "orderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^mko_[\\w-]{8,64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/making/orders/{orderId}/approve": {
      "post": {
        "operationId": "postV1AccountsByIdMakingOrdersByOrderIdApprove",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/making/orders/:orderId/approve",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "orderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^mko_[\\w-]{8,64}$"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/making/orders/{orderId}/cancel": {
      "post": {
        "operationId": "postV1AccountsByIdMakingOrdersByOrderIdCancel",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/making/orders/:orderId/cancel",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "orderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^mko_[\\w-]{8,64}$"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/making/orders/{orderId}/reject": {
      "post": {
        "operationId": "postV1AccountsByIdMakingOrdersByOrderIdReject",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/making/orders/:orderId/reject",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "orderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^mko_[\\w-]{8,64}$"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/making/quotes": {
      "post": {
        "operationId": "postV1AccountsByIdMakingQuotes",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/making/quotes",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MakingQuoteInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/making/quotes/{quoteId}": {
      "get": {
        "operationId": "getV1AccountsByIdMakingQuotesByQuoteId",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/making/quotes/:quoteId",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "quoteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^mkq_[\\w-]{8,64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/meetings": {
      "get": {
        "operationId": "getV1AccountsByIdMeetings",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/meetings",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "joining",
                "live",
                "ended"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 300
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1AccountsByIdMeetings",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/meetings",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JoinMeetingInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/meetings/voice": {
      "get": {
        "operationId": "getV1AccountsByIdMeetingsVoice",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/meetings/voice",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "putV1AccountsByIdMeetingsVoice",
        "tags": [
          "accounts"
        ],
        "summary": "PUT /v1/accounts/:id/meetings/voice",
        "x-stack-oauth-scope": "accounts:manage",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MeetingVoice"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/meetings/{meetingId}": {
      "get": {
        "operationId": "getV1AccountsByIdMeetingsByMeetingId",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/meetings/:meetingId",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          },
          {
            "name": "meetingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^mtg_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/meetings/{meetingId}/chat": {
      "post": {
        "operationId": "postV1AccountsByIdMeetingsByMeetingIdChat",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/meetings/:meetingId/chat",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          },
          {
            "name": "meetingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^mtg_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatMeetingInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/meetings/{meetingId}/leave": {
      "post": {
        "operationId": "postV1AccountsByIdMeetingsByMeetingIdLeave",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/meetings/:meetingId/leave",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          },
          {
            "name": "meetingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^mtg_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/meetings/{meetingId}/live": {
      "get": {
        "operationId": "getV1AccountsByIdMeetingsByMeetingIdLive",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/meetings/:meetingId/live",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "meetingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/meetings/{meetingId}/say": {
      "post": {
        "operationId": "postV1AccountsByIdMeetingsByMeetingIdSay",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/meetings/:meetingId/say",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          },
          {
            "name": "meetingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^mtg_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SayMeetingInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/messages": {
      "get": {
        "operationId": "getV1AccountsByIdMessages",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/messages",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "channel",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "email",
                "sms",
                "voicemail",
                "call",
                "telegram",
                "post",
                "meeting"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of the account's messages, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListAgentMessagesResult"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/messages/{messageId}": {
      "delete": {
        "operationId": "deleteV1AccountsByIdMessagesByMessageId",
        "tags": [
          "accounts"
        ],
        "summary": "DELETE /v1/accounts/:id/messages/:messageId",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          {
            "name": "messageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "get": {
        "operationId": "getV1AccountsByIdMessagesByMessageId",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/messages/:messageId",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          {
            "name": "messageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One message. The files that arrived with an email are saved to the receiving agent's drive and listed in content.attachments with their file_id; one the drive did not take has not_saved instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentMessageView"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/messages/{messageId}/attachments/{fileId}": {
      "get": {
        "operationId": "getV1AccountsByIdMessagesByMessageIdAttachmentsByFileId",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/messages/:messageId/attachments/:fileId",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          {
            "name": "messageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          {
            "name": "fileId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/messages/{messageId}/forward": {
      "post": {
        "operationId": "postV1AccountsByIdMessagesByMessageIdForward",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/messages/:messageId/forward",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          },
          {
            "name": "messageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^amsg_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ForwardAgentEmailInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The email was accepted for sending. to is one address: where the further To addresses went is in cc.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentMessageSendView"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "description": "A received email sent on to others, in its thread, with the subject \"Fwd: ...\" and the files kept from the original attached. To is one address or a list; OpenMail, the mail provider, takes one To address, so the first is the To and any further ones are delivered as Cc. The limits are OpenMail's: attachments at most 25 MB in all, body 100,000 characters, HTML body 500,000, subject 998, and no limit on recipients or attachments is stated. Files sent inline come to at most 10 MB in all; a larger file is attached from the drive by file_id."
      }
    },
    "/v1/accounts/{id}/messages/{messageId}/reply": {
      "post": {
        "operationId": "postV1AccountsByIdMessagesByMessageIdReply",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/messages/:messageId/reply",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          },
          {
            "name": "messageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^amsg_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReplyAgentEmailInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The email was accepted for sending. to is one address: where the further To addresses went is in cc.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentMessageSendView"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "description": "An answer to an email the account received, in its thread: OpenMail sets In-Reply-To and References from the thread id. It goes to the person who wrote it, and with reply_all to everyone the original was sent to (read from its own To and Cc headers), never the account's own address. To is one address or a list; OpenMail, the mail provider, takes one To address, so the first is the To and any further ones are delivered as Cc. The limits are OpenMail's: attachments at most 25 MB in all, body 100,000 characters, HTML body 500,000, subject 998, and no limit on recipients or attachments is stated. Files sent inline come to at most 10 MB in all; a larger file is attached from the drive by file_id."
      }
    },
    "/v1/accounts/{id}/payments": {
      "get": {
        "operationId": "getV1AccountsByIdPayments",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/payments",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "rail",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "stripe",
                "x402"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/payments/checkout-sessions": {
      "post": {
        "operationId": "postV1AccountsByIdPaymentsCheckoutSessions",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/payments/checkout-sessions",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCheckoutSessionInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/payments/links": {
      "get": {
        "operationId": "getV1AccountsByIdPaymentsLinks",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/payments/links",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1AccountsByIdPaymentsLinks",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/payments/links",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePaymentLinkInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/payments/links/{linkId}/deactivate": {
      "post": {
        "operationId": "postV1AccountsByIdPaymentsLinksByLinkIdDeactivate",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/payments/links/:linkId/deactivate",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "linkId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^plk_[\\w-]{8,64}$"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/payments/stripe": {
      "delete": {
        "operationId": "deleteV1AccountsByIdPaymentsStripe",
        "tags": [
          "accounts"
        ],
        "summary": "DELETE /v1/accounts/:id/payments/stripe",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "get": {
        "operationId": "getV1AccountsByIdPaymentsStripe",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/payments/stripe",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1AccountsByIdPaymentsStripe",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/payments/stripe",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/payments/{paymentId}": {
      "get": {
        "operationId": "getV1AccountsByIdPaymentsByPaymentId",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/payments/:paymentId",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "paymentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^pay_[\\w-]{8,64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/phone/toll-free-verification": {
      "get": {
        "operationId": "getV1AccountsByIdPhoneTollFreeVerification",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/phone/toll-free-verification",
        "x-stack-oauth-scope": "accounts:read",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1AccountsByIdPhoneTollFreeVerification",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/phone/toll-free-verification",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TollFreeVerificationInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/phone/voice": {
      "get": {
        "operationId": "getV1AccountsByIdPhoneVoice",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/phone/voice",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "putV1AccountsByIdPhoneVoice",
        "tags": [
          "accounts"
        ],
        "summary": "PUT /v1/accounts/:id/phone/voice",
        "x-stack-oauth-scope": "accounts:manage",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AccountCallVoiceInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/pieces": {
      "post": {
        "operationId": "postV1AccountsByIdPieces",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/pieces",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[a-f0-9]{32}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddAccountPieceInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/pieces/resume": {
      "post": {
        "operationId": "postV1AccountsByIdPiecesResume",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/pieces/resume",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResumeAccountPieceInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/post/address": {
      "get": {
        "operationId": "getV1AccountsByIdPostAddress",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/post/address",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/post/address-check": {
      "post": {
        "operationId": "postV1AccountsByIdPostAddressCheck",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/post/address-check",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyPostalAddressInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/post/items": {
      "get": {
        "operationId": "getV1AccountsByIdPostItems",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/post/items",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 20
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 256
            }
          },
          {
            "name": "routing",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "routed",
                "pending",
                "unassigned"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/post/items/{itemId}": {
      "get": {
        "operationId": "getV1AccountsByIdPostItemsByItemId",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/post/items/:itemId",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          },
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^pit_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/post/items/{itemId}/forward": {
      "post": {
        "operationId": "postV1AccountsByIdPostItemsByItemIdForward",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/post/items/:itemId/forward",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "202": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/post/items/{itemId}/scan": {
      "post": {
        "operationId": "postV1AccountsByIdPostItemsByItemIdScan",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/post/items/:itemId/scan",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "202": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/post/items/{itemId}/shred": {
      "post": {
        "operationId": "postV1AccountsByIdPostItemsByItemIdShred",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/post/items/:itemId/shred",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "202": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/post/letters": {
      "get": {
        "operationId": "getV1AccountsByIdPostLetters",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/post/letters",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 20
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 256
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1AccountsByIdPostLetters",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/post/letters",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/post/letters/{letterId}": {
      "get": {
        "operationId": "getV1AccountsByIdPostLettersByLetterId",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/post/letters/:letterId",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          },
          {
            "name": "letterId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^plt_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/purchases/{pid}": {
      "get": {
        "operationId": "getV1AccountsByIdPurchasesByPid",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/purchases/:pid",
        "x-stack-oauth-scope": "accounts:read",
        "x-stack-gates": [
          "purchaseOwner"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "pid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/purchases/{pid}/merchant-result": {
      "post": {
        "operationId": "postV1AccountsByIdPurchasesByPidMerchantResult",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/purchases/:pid/merchant-result",
        "x-stack-oauth-scope": "accounts:act",
        "x-stack-gates": [
          "purchaseOwner"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "pid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PurchaseMerchantResultInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/rentahuman": {
      "get": {
        "operationId": "getV1AccountsByIdRentahuman",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/rentahuman",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/rentahuman/fund": {
      "post": {
        "operationId": "postV1AccountsByIdRentahumanFund",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/rentahuman/fund",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RentAHumanFundInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/rentahuman/fund/complete": {
      "post": {
        "operationId": "postV1AccountsByIdRentahumanFundComplete",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/rentahuman/fund/complete",
        "x-stack-oauth-scope": "none",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RentAHumanFundCompleteInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/rentahuman/join": {
      "post": {
        "operationId": "postV1AccountsByIdRentahumanJoin",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/rentahuman/join",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RentAHumanJoinInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/rentahuman/join/complete": {
      "post": {
        "operationId": "postV1AccountsByIdRentahumanJoinComplete",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/rentahuman/join/complete",
        "x-stack-oauth-scope": "none",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RentAHumanJoinCompleteInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/sandbox/runs": {
      "post": {
        "operationId": "postV1AccountsByIdSandboxRuns",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/sandbox/runs",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/sandbox/runs/{runId}": {
      "get": {
        "operationId": "getV1AccountsByIdSandboxRunsByRunId",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/sandbox/runs/:runId",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/signing-keys": {
      "get": {
        "operationId": "getV1AccountsByIdSigningKeys",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/signing-keys",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[a-f0-9]{32}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/signing-keys/rotate": {
      "post": {
        "operationId": "postV1AccountsByIdSigningKeysRotate",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/signing-keys/rotate",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[a-f0-9]{32}$"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/sms/send": {
      "post": {
        "operationId": "postV1AccountsByIdSmsSend",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/sms/send",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendAgentSmsInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/telegram": {
      "delete": {
        "operationId": "deleteV1AccountsByIdTelegram",
        "tags": [
          "accounts"
        ],
        "summary": "DELETE /v1/accounts/:id/telegram",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "get": {
        "operationId": "getV1AccountsByIdTelegram",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/telegram",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "putV1AccountsByIdTelegram",
        "tags": [
          "accounts"
        ],
        "summary": "PUT /v1/accounts/:id/telegram",
        "x-stack-oauth-scope": "none",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConnectTelegramBotInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/telegram/chats": {
      "get": {
        "operationId": "getV1AccountsByIdTelegramChats",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/telegram/chats",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/telegram/messages": {
      "post": {
        "operationId": "postV1AccountsByIdTelegramMessages",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/telegram/messages",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendTelegramMessageInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/telegram/start": {
      "post": {
        "operationId": "postV1AccountsByIdTelegramStart",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/telegram/start",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^acct_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartManagedTelegramBotInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/tools/discover": {
      "post": {
        "operationId": "postV1AccountsByIdToolsDiscover",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/tools/discover",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToolDiscoverInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/tools/inspect": {
      "post": {
        "operationId": "postV1AccountsByIdToolsInspect",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/tools/inspect",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToolInspectInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/tools/run": {
      "post": {
        "operationId": "postV1AccountsByIdToolsRun",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/tools/run",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToolRunInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/tools/runs/{runId}": {
      "get": {
        "operationId": "getV1AccountsByIdToolsRunsByRunId",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/tools/runs/:runId",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^atr_[\\w-]{8,64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/wallet/caps": {
      "put": {
        "operationId": "putV1AccountsByIdWalletCaps",
        "tags": [
          "accounts"
        ],
        "summary": "PUT /v1/accounts/:id/wallet/caps",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireControlsGate",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WalletCapsInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/wallet/owner-transfers": {
      "post": {
        "operationId": "postV1AccountsByIdWalletOwnerTransfers",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/wallet/owner-transfers",
        "x-stack-oauth-scope": "none",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OwnerTransferInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/wallet/payments": {
      "post": {
        "operationId": "postV1AccountsByIdWalletPayments",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/wallet/payments",
        "x-stack-oauth-scope": "none",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WalletPaymentInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/wallet/signer-policy": {
      "post": {
        "operationId": "postV1AccountsByIdWalletSignerPolicy",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/wallet/signer-policy",
        "x-stack-oauth-scope": "none",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SignerPolicyUpdateInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/wallet/signer-removal": {
      "post": {
        "operationId": "postV1AccountsByIdWalletSignerRemoval",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/wallet/signer-removal",
        "x-stack-oauth-scope": "none",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SignerPolicyUpdateInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/website": {
      "get": {
        "operationId": "getV1AccountsByIdWebsite",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/website",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/website/deploys": {
      "get": {
        "operationId": "getV1AccountsByIdWebsiteDeploys",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/website/deploys",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1AccountsByIdWebsiteDeploys",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/website/deploys",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublishSiteInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/website/deploys/{deployId}": {
      "get": {
        "operationId": "getV1AccountsByIdWebsiteDeploysByDeployId",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/website/deploys/:deployId",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "deployId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^wsd_[\\w-]{8,64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/website/hostnames": {
      "get": {
        "operationId": "getV1AccountsByIdWebsiteHostnames",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/website/hostnames",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1AccountsByIdWebsiteHostnames",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/website/hostnames",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddSiteHostnameInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/website/hostnames/{hostnameId}": {
      "delete": {
        "operationId": "deleteV1AccountsByIdWebsiteHostnamesByHostnameId",
        "tags": [
          "accounts"
        ],
        "summary": "DELETE /v1/accounts/:id/website/hostnames/:hostnameId",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "hostnameId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^whn_[\\w-]{8,64}$"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/website/hostnames/{hostnameId}/check": {
      "post": {
        "operationId": "postV1AccountsByIdWebsiteHostnamesByHostnameIdCheck",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/website/hostnames/:hostnameId/check",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "hostnameId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^whn_[\\w-]{8,64}$"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/website/prices": {
      "get": {
        "operationId": "getV1AccountsByIdWebsitePrices",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/website/prices",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "putV1AccountsByIdWebsitePrices",
        "tags": [
          "accounts"
        ],
        "summary": "PUT /v1/accounts/:id/website/prices",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetSitePricesInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/website/suspension": {
      "delete": {
        "operationId": "deleteV1AccountsByIdWebsiteSuspension",
        "tags": [
          "accounts"
        ],
        "summary": "DELETE /v1/accounts/:id/website/suspension",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1AccountsByIdWebsiteSuspension",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/website/suspension",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SiteSuspendInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/website/uploads": {
      "post": {
        "operationId": "postV1AccountsByIdWebsiteUploads",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/website/uploads",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SiteUploadLinkInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/workspace/settings": {
      "get": {
        "operationId": "getV1AccountsByIdWorkspaceSettings",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/workspace/settings",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "putV1AccountsByIdWorkspaceSettings",
        "tags": [
          "accounts"
        ],
        "summary": "PUT /v1/accounts/:id/workspace/settings",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetWorkspaceSettingsInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/workspaces": {
      "get": {
        "operationId": "getV1AccountsByIdWorkspaces",
        "tags": [
          "accounts"
        ],
        "summary": "GET /v1/accounts/:id/workspaces",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/workspaces/exec": {
      "post": {
        "operationId": "postV1AccountsByIdWorkspacesExec",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/workspaces/exec",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkspaceExecInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/workspaces/{wid}/commands/read": {
      "post": {
        "operationId": "postV1AccountsByIdWorkspacesByWidCommandsRead",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/workspaces/:wid/commands/read",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "wid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^wsp_[\\w-]{8,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkspaceCommandReadInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/workspaces/{wid}/files/read": {
      "post": {
        "operationId": "postV1AccountsByIdWorkspacesByWidFilesRead",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/workspaces/:wid/files/read",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "wid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^wsp_[\\w-]{8,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkspaceReadFileInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/workspaces/{wid}/files/save": {
      "post": {
        "operationId": "postV1AccountsByIdWorkspacesByWidFilesSave",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/workspaces/:wid/files/save",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "wid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^wsp_[\\w-]{8,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkspaceSaveFileInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/workspaces/{wid}/files/write": {
      "post": {
        "operationId": "postV1AccountsByIdWorkspacesByWidFilesWrite",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/workspaces/:wid/files/write",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "wid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^wsp_[\\w-]{8,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkspaceWriteFileInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/workspaces/{wid}/sharing": {
      "put": {
        "operationId": "putV1AccountsByIdWorkspacesByWidSharing",
        "tags": [
          "accounts"
        ],
        "summary": "PUT /v1/accounts/:id/workspaces/:wid/sharing",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "wid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^wsp_[\\w-]{8,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetWorkspaceSharingInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/accounts/{id}/workspaces/{wid}/stop": {
      "post": {
        "operationId": "postV1AccountsByIdWorkspacesByWidStop",
        "tags": [
          "accounts"
        ],
        "summary": "POST /v1/accounts/:id/workspaces/:wid/stop",
        "x-stack-oauth-scope": "accounts:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "wid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^wsp_[\\w-]{8,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkspaceStopInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/agent-identity": {
      "get": {
        "operationId": "getV1AgentIdentity",
        "tags": [
          "agent-identity"
        ],
        "summary": "GET /v1/agent-identity",
        "x-stack-oauth-scope": "none",
        "security": [],
        "parameters": [
          {
            "name": "key_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{43}$"
            }
          },
          {
            "name": "site",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 253,
              "pattern": "^[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)+$"
            }
          },
          {
            "name": "agent_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^agt_[A-Za-z0-9_-]{21}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/agent-identity/agents/{agent_id}/agent-card.json": {
      "get": {
        "operationId": "getV1AgentIdentityAgentsByAgentIdAgentCardJson",
        "tags": [
          "agent-identity"
        ],
        "summary": "GET /v1/agent-identity/agents/:agent_id/agent-card.json",
        "x-stack-oauth-scope": "none",
        "security": [],
        "parameters": [
          {
            "name": "agent_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/agent-identity/agents/{agent_id}/http-message-signatures-directory": {
      "get": {
        "operationId": "getV1AgentIdentityAgentsByAgentIdHttpMessageSignaturesDirectory",
        "tags": [
          "agent-identity"
        ],
        "summary": "GET /v1/agent-identity/agents/:agent_id/http-message-signatures-directory",
        "x-stack-oauth-scope": "none",
        "security": [],
        "parameters": [
          {
            "name": "agent_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/agent-identity/agents/{agent_id}/mcp-server-card.json": {
      "get": {
        "operationId": "getV1AgentIdentityAgentsByAgentIdMcpServerCardJson",
        "tags": [
          "agent-identity"
        ],
        "summary": "GET /v1/agent-identity/agents/:agent_id/mcp-server-card.json",
        "x-stack-oauth-scope": "none",
        "security": [],
        "parameters": [
          {
            "name": "agent_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/agents": {
      "get": {
        "operationId": "getV1Agents",
        "tags": [
          "agents"
        ],
        "summary": "GET /v1/agents",
        "x-stack-oauth-scope": "agents:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/agents/overview": {
      "get": {
        "operationId": "getV1AgentsOverview",
        "tags": [
          "agents"
        ],
        "summary": "GET /v1/agents/overview",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/agents/register": {
      "post": {
        "operationId": "postV1AgentsRegister",
        "tags": [
          "agents"
        ],
        "summary": "POST /v1/agents/register",
        "x-stack-oauth-scope": "agents:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterAgentInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/agents/setup": {
      "post": {
        "operationId": "postV1AgentsSetup",
        "tags": [
          "agents"
        ],
        "summary": "POST /v1/agents/setup",
        "x-stack-oauth-scope": "agents:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentSetupInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/agents/{agentId}/dismiss-warnings": {
      "post": {
        "operationId": "postV1AgentsByAgentIdDismissWarnings",
        "tags": [
          "agents"
        ],
        "summary": "POST /v1/agents/:agentId/dismiss-warnings",
        "x-stack-oauth-scope": "reviews:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^agt_[\\w-]+$"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/agents/{agentId}/message-access": {
      "get": {
        "operationId": "getV1AgentsByAgentIdMessageAccess",
        "tags": [
          "agents"
        ],
        "summary": "GET /v1/agents/:agentId/message-access",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "putV1AgentsByAgentIdMessageAccess",
        "tags": [
          "agents"
        ],
        "summary": "PUT /v1/agents/:agentId/message-access",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetMessageAccessInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/agents/{agentId}/permissions": {
      "get": {
        "operationId": "getV1AgentsByAgentIdPermissions",
        "tags": [
          "agents"
        ],
        "summary": "GET /v1/agents/:agentId/permissions",
        "x-stack-oauth-scope": "agents:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/agents/{agentId}/trust": {
      "get": {
        "operationId": "getV1AgentsByAgentIdTrust",
        "tags": [
          "agents"
        ],
        "summary": "GET /v1/agents/:agentId/trust",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "putV1AgentsByAgentIdTrust",
        "tags": [
          "agents"
        ],
        "summary": "PUT /v1/agents/:agentId/trust",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetAgentTrustInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/agents/{agentId}/wake/rules": {
      "get": {
        "operationId": "getV1AgentsByAgentIdWakeRules",
        "tags": [
          "agents"
        ],
        "summary": "GET /v1/agents/:agentId/wake/rules",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1AgentsByAgentIdWakeRules",
        "tags": [
          "agents"
        ],
        "summary": "POST /v1/agents/:agentId/wake/rules",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetWakeRuleInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/agents/{agentId}/wake/schedules": {
      "get": {
        "operationId": "getV1AgentsByAgentIdWakeSchedules",
        "tags": [
          "agents"
        ],
        "summary": "GET /v1/agents/:agentId/wake/schedules",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1AgentsByAgentIdWakeSchedules",
        "tags": [
          "agents"
        ],
        "summary": "POST /v1/agents/:agentId/wake/schedules",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetWakeScheduleInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/agents/{agentId}/wake/schedules/{scheduleId}": {
      "delete": {
        "operationId": "deleteV1AgentsByAgentIdWakeSchedulesByScheduleId",
        "tags": [
          "agents"
        ],
        "summary": "DELETE /v1/agents/:agentId/wake/schedules/:scheduleId",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          {
            "name": "scheduleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^wsc_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "putV1AgentsByAgentIdWakeSchedulesByScheduleId",
        "tags": [
          "agents"
        ],
        "summary": "PUT /v1/agents/:agentId/wake/schedules/:scheduleId",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          {
            "name": "scheduleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^wsc_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetWakeScheduleInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/agents/{agentId}/wake/settings": {
      "get": {
        "operationId": "getV1AgentsByAgentIdWakeSettings",
        "tags": [
          "agents"
        ],
        "summary": "GET /v1/agents/:agentId/wake/settings",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "putV1AgentsByAgentIdWakeSettings",
        "tags": [
          "agents"
        ],
        "summary": "PUT /v1/agents/:agentId/wake/settings",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetWakeSettingsInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/agents/{agentId}/wake/webhook/rotate-secret": {
      "post": {
        "operationId": "postV1AgentsByAgentIdWakeWebhookRotateSecret",
        "tags": [
          "agents"
        ],
        "summary": "POST /v1/agents/:agentId/wake/webhook/rotate-secret",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/agents/{agentId}/wake/webhook/test": {
      "post": {
        "operationId": "postV1AgentsByAgentIdWakeWebhookTest",
        "tags": [
          "agents"
        ],
        "summary": "POST /v1/agents/:agentId/wake/webhook/test",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/agents/{agentId}/wakes": {
      "get": {
        "operationId": "getV1AgentsByAgentIdWakes",
        "tags": [
          "agents"
        ],
        "summary": "GET /v1/agents/:agentId/wakes",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "pending",
                    "delivered",
                    "acknowledged",
                    "refused",
                    "expired"
                  ]
                },
                {
                  "type": "string",
                  "const": "open"
                }
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 300
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/agents/{agentId}/wakes/{wakeId}": {
      "get": {
        "operationId": "getV1AgentsByAgentIdWakesByWakeId",
        "tags": [
          "agents"
        ],
        "summary": "GET /v1/agents/:agentId/wakes/:wakeId",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          {
            "name": "wakeId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^wke_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/agents/{agentId}/wakes/{wakeId}/acknowledge": {
      "post": {
        "operationId": "postV1AgentsByAgentIdWakesByWakeIdAcknowledge",
        "tags": [
          "agents"
        ],
        "summary": "POST /v1/agents/:agentId/wakes/:wakeId/acknowledge",
        "x-stack-oauth-scope": "accounts:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          {
            "name": "wakeId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^wke_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/agents/{id}": {
      "delete": {
        "operationId": "deleteV1AgentsById",
        "tags": [
          "agents"
        ],
        "summary": "DELETE /v1/agents/:id",
        "x-stack-oauth-scope": "agents:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "get": {
        "operationId": "getV1AgentsById",
        "tags": [
          "agents"
        ],
        "summary": "GET /v1/agents/:id",
        "x-stack-oauth-scope": "agents:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "patch": {
        "operationId": "patchV1AgentsById",
        "tags": [
          "agents"
        ],
        "summary": "PATCH /v1/agents/:id",
        "x-stack-oauth-scope": "agents:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAgentInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/agents/{id}/.well-known/jwks.json": {
      "get": {
        "operationId": "getV1AgentsByIdWellKnownJwksJson",
        "tags": [
          "agents"
        ],
        "summary": "GET /v1/agents/:id/.well-known/jwks.json",
        "x-stack-oauth-scope": "none",
        "security": [],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/agents/{id}/allowed-skills": {
      "post": {
        "operationId": "postV1AgentsByIdAllowedSkills",
        "tags": [
          "agents"
        ],
        "summary": "POST /v1/agents/:id/allowed-skills",
        "x-stack-oauth-scope": "agents:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/agents/{id}/allowed-skills/{skillId}": {
      "delete": {
        "operationId": "deleteV1AgentsByIdAllowedSkillsBySkillId",
        "tags": [
          "agents"
        ],
        "summary": "DELETE /v1/agents/:id/allowed-skills/:skillId",
        "x-stack-oauth-scope": "agents:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "skillId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/agents/{id}/enroll": {
      "post": {
        "operationId": "postV1AgentsByIdEnroll",
        "tags": [
          "agents"
        ],
        "summary": "POST /v1/agents/:id/enroll",
        "x-stack-oauth-scope": "agents:write",
        "x-stack-gates": [
          "enrollmentOrStandardAuth"
        ],
        "security": [],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentEnrollInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/agents/{id}/enrollment-challenge": {
      "post": {
        "operationId": "postV1AgentsByIdEnrollmentChallenge",
        "tags": [
          "agents"
        ],
        "summary": "POST /v1/agents/:id/enrollment-challenge",
        "x-stack-oauth-scope": "agents:write",
        "x-stack-gates": [
          "enrollmentOrStandardAuth"
        ],
        "security": [],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/agents/{id}/enrollment-tickets": {
      "post": {
        "operationId": "postV1AgentsByIdEnrollmentTickets",
        "tags": [
          "agents"
        ],
        "summary": "POST /v1/agents/:id/enrollment-tickets",
        "x-stack-oauth-scope": "agents:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/agents/{id}/stats": {
      "get": {
        "operationId": "getV1AgentsByIdStats",
        "tags": [
          "agents"
        ],
        "summary": "GET /v1/agents/:id/stats",
        "x-stack-oauth-scope": "agents:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/agents/{id}/unblock": {
      "post": {
        "operationId": "postV1AgentsByIdUnblock",
        "tags": [
          "agents"
        ],
        "summary": "POST /v1/agents/:id/unblock",
        "x-stack-oauth-scope": "agents:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/audit": {
      "get": {
        "operationId": "getV1Audit",
        "tags": [
          "audit"
        ],
        "summary": "GET /v1/audit",
        "x-stack-oauth-scope": "audit:read",
        "x-stack-gates": [
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "agent_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          {
            "name": "passport_jti",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/audit/chain-head": {
      "get": {
        "operationId": "getV1AuditChainHead",
        "tags": [
          "audit"
        ],
        "summary": "GET /v1/audit/chain-head",
        "x-stack-oauth-scope": "audit:read",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/audit/export": {
      "get": {
        "operationId": "getV1AuditExport",
        "tags": [
          "audit"
        ],
        "summary": "GET /v1/audit/export",
        "x-stack-oauth-scope": "audit:read",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "ndjson",
                "csv"
              ],
              "default": "json"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50000
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/audit/verify-chain": {
      "get": {
        "operationId": "getV1AuditVerifyChain",
        "tags": [
          "audit"
        ],
        "summary": "GET /v1/audit/verify-chain",
        "x-stack-oauth-scope": "audit:read",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/auth/context": {
      "get": {
        "operationId": "getV1AuthContext",
        "tags": [
          "auth"
        ],
        "summary": "GET /v1/auth/context",
        "x-stack-oauth-scope": "account:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/approval-requests/{approvalId}/decide": {
      "post": {
        "operationId": "postV1AuthorityApprovalRequestsByApprovalIdDecide",
        "tags": [
          "authority"
        ],
        "summary": "POST /v1/authority/approval-requests/:approvalId/decide",
        "x-stack-oauth-scope": "none",
        "security": [],
        "parameters": [
          {
            "name": "approvalId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AuthorityApprovalDecisionInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/bindings": {
      "get": {
        "operationId": "getV1AuthorityBindings",
        "tags": [
          "authority"
        ],
        "summary": "GET /v1/authority/bindings",
        "x-stack-oauth-scope": "authority:read",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agent_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^agt_[A-Za-z0-9_-]+$"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000,
              "default": 1
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 20
            }
          },
          {
            "name": "binding_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          {
            "name": "binding_version",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1AuthorityBindings",
        "tags": [
          "authority"
        ],
        "summary": "POST /v1/authority/bindings",
        "x-stack-oauth-scope": "authority:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAuthorityBindingInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/bindings/{bindingId}": {
      "get": {
        "operationId": "getV1AuthorityBindingsByBindingId",
        "tags": [
          "authority"
        ],
        "summary": "GET /v1/authority/bindings/:bindingId",
        "x-stack-oauth-scope": "authority:read",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "bindingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/bindings/{bindingId}/activate": {
      "post": {
        "operationId": "postV1AuthorityBindingsByBindingIdActivate",
        "tags": [
          "authority"
        ],
        "summary": "POST /v1/authority/bindings/:bindingId/activate",
        "x-stack-oauth-scope": "authority:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "bindingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmptyBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/bindings/{bindingId}/approval-requests": {
      "get": {
        "operationId": "getV1AuthorityBindingsByBindingIdApprovalRequests",
        "tags": [
          "authority"
        ],
        "summary": "GET /v1/authority/bindings/:bindingId/approval-requests",
        "x-stack-oauth-scope": "authority:read",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "bindingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1AuthorityBindingsByBindingIdApprovalRequests",
        "tags": [
          "authority"
        ],
        "summary": "POST /v1/authority/bindings/:bindingId/approval-requests",
        "x-stack-oauth-scope": "authority:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "bindingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAuthorityApprovalRequestsInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/bindings/{bindingId}/delegate": {
      "post": {
        "operationId": "postV1AuthorityBindingsByBindingIdDelegate",
        "tags": [
          "authority"
        ],
        "summary": "POST /v1/authority/bindings/:bindingId/delegate",
        "x-stack-oauth-scope": "authority:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "bindingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DelegateAuthorityBindingInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/bindings/{bindingId}/erase": {
      "post": {
        "operationId": "postV1AuthorityBindingsByBindingIdErase",
        "tags": [
          "authority"
        ],
        "summary": "POST /v1/authority/bindings/:bindingId/erase",
        "x-stack-oauth-scope": "authority:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "bindingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmptyBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/bindings/{bindingId}/revoke": {
      "post": {
        "operationId": "postV1AuthorityBindingsByBindingIdRevoke",
        "tags": [
          "authority"
        ],
        "summary": "POST /v1/authority/bindings/:bindingId/revoke",
        "x-stack-oauth-scope": "authority:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "bindingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/enterprise-oidc/requests": {
      "post": {
        "operationId": "postV1AuthorityEnterpriseOidcRequests",
        "tags": [
          "authority"
        ],
        "summary": "POST /v1/authority/enterprise-oidc/requests",
        "x-stack-oauth-scope": "authority:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateEnterpriseOidcAuthoritySetupInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/enterprise-oidc/requests/{requestId}": {
      "get": {
        "operationId": "getV1AuthorityEnterpriseOidcRequestsByRequestId",
        "tags": [
          "authority"
        ],
        "summary": "GET /v1/authority/enterprise-oidc/requests/:requestId",
        "x-stack-oauth-scope": "authority:read",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "requestId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^aor_[a-f0-9]{32}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/enterprise-oidc/requests/{requestId}/complete": {
      "post": {
        "operationId": "postV1AuthorityEnterpriseOidcRequestsByRequestIdComplete",
        "tags": [
          "authority"
        ],
        "summary": "POST /v1/authority/enterprise-oidc/requests/:requestId/complete",
        "x-stack-oauth-scope": "none",
        "security": [],
        "parameters": [
          {
            "name": "requestId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^aor_[a-f0-9]{32}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AuthoritySetupCompleteBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/enterprise-oidc/requests/{requestId}/reject": {
      "post": {
        "operationId": "postV1AuthorityEnterpriseOidcRequestsByRequestIdReject",
        "tags": [
          "authority"
        ],
        "summary": "POST /v1/authority/enterprise-oidc/requests/:requestId/reject",
        "x-stack-oauth-scope": "none",
        "security": [],
        "parameters": [
          {
            "name": "requestId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^aor_[a-f0-9]{32}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmptyBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/enterprise-oidc/requests/{requestId}/review": {
      "get": {
        "operationId": "getV1AuthorityEnterpriseOidcRequestsByRequestIdReview",
        "tags": [
          "authority"
        ],
        "summary": "GET /v1/authority/enterprise-oidc/requests/:requestId/review",
        "x-stack-oauth-scope": "none",
        "security": [],
        "parameters": [
          {
            "name": "requestId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^aor_[a-f0-9]{32}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/enterprise-oidc/requests/{requestId}/start": {
      "post": {
        "operationId": "postV1AuthorityEnterpriseOidcRequestsByRequestIdStart",
        "tags": [
          "authority"
        ],
        "summary": "POST /v1/authority/enterprise-oidc/requests/:requestId/start",
        "x-stack-oauth-scope": "none",
        "security": [],
        "parameters": [
          {
            "name": "requestId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^aor_[a-f0-9]{32}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AuthoritySetupStartBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/presentation-requests": {
      "post": {
        "operationId": "postV1AuthorityPresentationRequests",
        "tags": [
          "authority"
        ],
        "summary": "POST /v1/authority/presentation-requests",
        "x-stack-oauth-scope": "none",
        "x-stack-gates": [
          "authorityReceiverAuth"
        ],
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReceiverChallengeInput"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/presentation-requests/{presentationId}": {
      "get": {
        "operationId": "getV1AuthorityPresentationRequestsByPresentationId",
        "tags": [
          "authority"
        ],
        "summary": "GET /v1/authority/presentation-requests/:presentationId",
        "x-stack-oauth-scope": "none",
        "x-stack-gates": [
          "authorityReceiverAuth"
        ],
        "security": [],
        "parameters": [
          {
            "name": "presentationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/presentations": {
      "get": {
        "operationId": "getV1AuthorityPresentations",
        "tags": [
          "authority"
        ],
        "summary": "GET /v1/authority/presentations",
        "x-stack-oauth-scope": "authority:read",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/presentations/{presentationId}": {
      "get": {
        "operationId": "getV1AuthorityPresentationsByPresentationId",
        "tags": [
          "authority"
        ],
        "summary": "GET /v1/authority/presentations/:presentationId",
        "x-stack-oauth-scope": "authority:read",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "presentationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/presentations/{presentationId}/erase": {
      "post": {
        "operationId": "postV1AuthorityPresentationsByPresentationIdErase",
        "tags": [
          "authority"
        ],
        "summary": "POST /v1/authority/presentations/:presentationId/erase",
        "x-stack-oauth-scope": "authority:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "presentationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmptyBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/presentations/{presentationId}/receipts": {
      "post": {
        "operationId": "postV1AuthorityPresentationsByPresentationIdReceipts",
        "tags": [
          "authority"
        ],
        "summary": "POST /v1/authority/presentations/:presentationId/receipts",
        "x-stack-oauth-scope": "none",
        "x-stack-gates": [
          "authorityReceiverAuth"
        ],
        "security": [],
        "parameters": [
          {
            "name": "presentationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReceiverReceiptInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/principals": {
      "get": {
        "operationId": "getV1AuthorityPrincipals",
        "tags": [
          "authority"
        ],
        "summary": "GET /v1/authority/principals",
        "x-stack-oauth-scope": "authority:read",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1AuthorityPrincipals",
        "tags": [
          "authority"
        ],
        "summary": "POST /v1/authority/principals",
        "x-stack-oauth-scope": "authority:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAuthorityPrincipalInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/principals/{principalId}": {
      "get": {
        "operationId": "getV1AuthorityPrincipalsByPrincipalId",
        "tags": [
          "authority"
        ],
        "summary": "GET /v1/authority/principals/:principalId",
        "x-stack-oauth-scope": "authority:read",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "principalId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/principals/{principalId}/archive": {
      "post": {
        "operationId": "postV1AuthorityPrincipalsByPrincipalIdArchive",
        "tags": [
          "authority"
        ],
        "summary": "POST /v1/authority/principals/:principalId/archive",
        "x-stack-oauth-scope": "authority:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "principalId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/principals/{principalId}/erase": {
      "post": {
        "operationId": "postV1AuthorityPrincipalsByPrincipalIdErase",
        "tags": [
          "authority"
        ],
        "summary": "POST /v1/authority/principals/:principalId/erase",
        "x-stack-oauth-scope": "authority:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "principalId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmptyBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/profile-versions": {
      "post": {
        "operationId": "postV1AuthorityProfileVersions",
        "tags": [
          "authority"
        ],
        "summary": "POST /v1/authority/profile-versions",
        "x-stack-oauth-scope": "authority:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAuthorityProfileVersionInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/profile-versions/{profileId}/activate": {
      "post": {
        "operationId": "postV1AuthorityProfileVersionsByProfileIdActivate",
        "tags": [
          "authority"
        ],
        "summary": "POST /v1/authority/profile-versions/:profileId/activate",
        "x-stack-oauth-scope": "authority:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "profileId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProfileActivationBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/proof-collection-sessions": {
      "post": {
        "operationId": "postV1AuthorityProofCollectionSessions",
        "tags": [
          "authority"
        ],
        "summary": "POST /v1/authority/proof-collection-sessions",
        "x-stack-oauth-scope": "authority:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAuthorityProofCollectionSessionInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/proof-collection-sessions/{sessionId}": {
      "get": {
        "operationId": "getV1AuthorityProofCollectionSessionsBySessionId",
        "tags": [
          "authority"
        ],
        "summary": "GET /v1/authority/proof-collection-sessions/:sessionId",
        "x-stack-oauth-scope": "authority:read",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "sessionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/proofs": {
      "get": {
        "operationId": "getV1AuthorityProofs",
        "tags": [
          "authority"
        ],
        "summary": "GET /v1/authority/proofs",
        "x-stack-oauth-scope": "authority:read",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/proofs/import": {
      "post": {
        "operationId": "postV1AuthorityProofsImport",
        "tags": [
          "authority"
        ],
        "summary": "POST /v1/authority/proofs/import",
        "x-stack-oauth-scope": "authority:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AttachAuthorityProofInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/proofs/{proofId}": {
      "get": {
        "operationId": "getV1AuthorityProofsByProofId",
        "tags": [
          "authority"
        ],
        "summary": "GET /v1/authority/proofs/:proofId",
        "x-stack-oauth-scope": "authority:read",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "proofId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/proofs/{proofId}/erase": {
      "post": {
        "operationId": "postV1AuthorityProofsByProofIdErase",
        "tags": [
          "authority"
        ],
        "summary": "POST /v1/authority/proofs/:proofId/erase",
        "x-stack-oauth-scope": "authority:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "proofId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmptyBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/proofs/{proofId}/revoke": {
      "post": {
        "operationId": "postV1AuthorityProofsByProofIdRevoke",
        "tags": [
          "authority"
        ],
        "summary": "POST /v1/authority/proofs/:proofId/revoke",
        "x-stack-oauth-scope": "authority:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "proofId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/receivers": {
      "get": {
        "operationId": "getV1AuthorityReceivers",
        "tags": [
          "authority"
        ],
        "summary": "GET /v1/authority/receivers",
        "x-stack-oauth-scope": "authority:read",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1AuthorityReceivers",
        "tags": [
          "authority"
        ],
        "summary": "POST /v1/authority/receivers",
        "x-stack-oauth-scope": "authority:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAuthorityReceiverInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/receivers/{receiverId}": {
      "get": {
        "operationId": "getV1AuthorityReceiversByReceiverId",
        "tags": [
          "authority"
        ],
        "summary": "GET /v1/authority/receivers/:receiverId",
        "x-stack-oauth-scope": "authority:read",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "receiverId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/receivers/{receiverId}/keys": {
      "post": {
        "operationId": "postV1AuthorityReceiversByReceiverIdKeys",
        "tags": [
          "authority"
        ],
        "summary": "POST /v1/authority/receivers/:receiverId/keys",
        "x-stack-oauth-scope": "authority:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "receiverId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddAuthorityReceiverKeyInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/receivers/{receiverId}/keys/{keyId}/revoke": {
      "post": {
        "operationId": "postV1AuthorityReceiversByReceiverIdKeysByKeyIdRevoke",
        "tags": [
          "authority"
        ],
        "summary": "POST /v1/authority/receivers/:receiverId/keys/:keyId/revoke",
        "x-stack-oauth-scope": "authority:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "receiverId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "keyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/receivers/{receiverId}/verification-challenges": {
      "post": {
        "operationId": "postV1AuthorityReceiversByReceiverIdVerificationChallenges",
        "tags": [
          "authority"
        ],
        "summary": "POST /v1/authority/receivers/:receiverId/verification-challenges",
        "x-stack-oauth-scope": "authority:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "receiverId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmptyBody"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/receivers/{receiverId}/verify": {
      "post": {
        "operationId": "postV1AuthorityReceiversByReceiverIdVerify",
        "tags": [
          "authority"
        ],
        "summary": "POST /v1/authority/receivers/:receiverId/verify",
        "x-stack-oauth-scope": "authority:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "receiverId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmptyBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/status-checks": {
      "post": {
        "operationId": "postV1AuthorityStatusChecks",
        "tags": [
          "authority"
        ],
        "summary": "POST /v1/authority/status-checks",
        "x-stack-oauth-scope": "none",
        "x-stack-gates": [
          "authorityReceiverAuth"
        ],
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AuthorityStatusCheckInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/uses": {
      "get": {
        "operationId": "getV1AuthorityUses",
        "tags": [
          "authority"
        ],
        "summary": "GET /v1/authority/uses",
        "x-stack-oauth-scope": "authority:read",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agent_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^agt_[A-Za-z0-9_-]+$"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000,
              "default": 1
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 20
            }
          },
          {
            "name": "binding_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          {
            "name": "binding_version",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/authority/uses/{useId}": {
      "get": {
        "operationId": "getV1AuthorityUsesByUseId",
        "tags": [
          "authority"
        ],
        "summary": "GET /v1/authority/uses/:useId",
        "x-stack-oauth-scope": "authority:read",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "useId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/billing/balance": {
      "get": {
        "operationId": "getV1BillingBalance",
        "tags": [
          "billing"
        ],
        "summary": "GET /v1/billing/balance",
        "x-stack-oauth-scope": "billing:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/billing/cancel-subscription": {
      "post": {
        "operationId": "postV1BillingCancelSubscription",
        "tags": [
          "billing"
        ],
        "summary": "POST /v1/billing/cancel-subscription",
        "x-stack-oauth-scope": "billing:write",
        "x-stack-gates": [
          "requireNotTenant",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/billing/controls/subscribe": {
      "post": {
        "operationId": "postV1BillingControlsSubscribe",
        "tags": [
          "billing"
        ],
        "summary": "POST /v1/billing/controls/subscribe",
        "x-stack-oauth-scope": "billing:write",
        "x-stack-gates": [
          "requireNotTenant",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/billing/platform/subscribe": {
      "post": {
        "operationId": "postV1BillingPlatformSubscribe",
        "tags": [
          "billing"
        ],
        "summary": "POST /v1/billing/platform/subscribe",
        "x-stack-oauth-scope": "billing:write",
        "x-stack-gates": [
          "requireNotTenant",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/billing/portal": {
      "post": {
        "operationId": "postV1BillingPortal",
        "tags": [
          "billing"
        ],
        "summary": "POST /v1/billing/portal",
        "x-stack-oauth-scope": "billing:write",
        "x-stack-gates": [
          "requireNotTenant",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/billing/refund/{transactionId}": {
      "post": {
        "operationId": "postV1BillingRefundByTransactionId",
        "tags": [
          "billing"
        ],
        "summary": "POST /v1/billing/refund/:transactionId",
        "x-stack-oauth-scope": "billing:write",
        "x-stack-gates": [
          "requireNotTenant",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "transactionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RefundInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/billing/seats": {
      "post": {
        "operationId": "postV1BillingSeats",
        "tags": [
          "billing"
        ],
        "summary": "POST /v1/billing/seats",
        "x-stack-oauth-scope": "billing:write",
        "x-stack-gates": [
          "requireNotTenant",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/billing/subscribe": {
      "post": {
        "operationId": "postV1BillingSubscribe",
        "tags": [
          "billing"
        ],
        "summary": "POST /v1/billing/subscribe",
        "x-stack-oauth-scope": "billing:write",
        "x-stack-gates": [
          "requireNotTenant",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/billing/subscriptions": {
      "get": {
        "operationId": "getV1BillingSubscriptions",
        "tags": [
          "billing"
        ],
        "summary": "GET /v1/billing/subscriptions",
        "x-stack-oauth-scope": "billing:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/billing/topup": {
      "post": {
        "operationId": "postV1BillingTopup",
        "tags": [
          "billing"
        ],
        "summary": "POST /v1/billing/topup",
        "x-stack-oauth-scope": "billing:write",
        "x-stack-gates": [
          "requireNotTenant",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TopupInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/billing/transactions": {
      "get": {
        "operationId": "getV1BillingTransactions",
        "tags": [
          "billing"
        ],
        "summary": "GET /v1/billing/transactions",
        "x-stack-oauth-scope": "billing:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "view",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "timeline"
              ]
            }
          },
          {
            "name": "entry_kind",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "wallet",
                "llm"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "topup",
                "refund",
                "invocation",
                "compute",
                "identity",
                "overage",
                "adjustment",
                "credit",
                "agent_account"
              ]
            }
          },
          {
            "name": "direction",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "in",
                "out"
              ]
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "until",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/billing/usage": {
      "get": {
        "operationId": "getV1BillingUsage",
        "tags": [
          "billing"
        ],
        "summary": "GET /v1/billing/usage",
        "x-stack-oauth-scope": "billing:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/blocked-callers": {
      "get": {
        "operationId": "getV1BlockedCallers",
        "tags": [
          "blocked-callers"
        ],
        "summary": "GET /v1/blocked-callers",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "adminOrAgent"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1BlockedCallers",
        "tags": [
          "blocked-callers"
        ],
        "summary": "POST /v1/blocked-callers",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "adminOrAgent"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddBlockedCallerInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/blocked-callers/{id}": {
      "delete": {
        "operationId": "deleteV1BlockedCallersById",
        "tags": [
          "blocked-callers"
        ],
        "summary": "DELETE /v1/blocked-callers/:id",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^abk_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/brain/files": {
      "get": {
        "operationId": "getV1BrainFiles",
        "tags": [
          "brain"
        ],
        "summary": "GET /v1/brain/files",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "reading",
                "searchable",
                "unreadable"
              ]
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 512
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1BrainFiles",
        "tags": [
          "brain"
        ],
        "summary": "POST /v1/brain/files",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BrainAddInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/brain/notes": {
      "post": {
        "operationId": "postV1BrainNotes",
        "tags": [
          "brain"
        ],
        "summary": "POST /v1/brain/notes",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BrainNoteInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/brain/remove": {
      "post": {
        "operationId": "postV1BrainRemove",
        "tags": [
          "brain"
        ],
        "summary": "POST /v1/brain/remove",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BrainRemoveInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/brain/search": {
      "post": {
        "operationId": "postV1BrainSearch",
        "tags": [
          "brain"
        ],
        "summary": "POST /v1/brain/search",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BrainSearchInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/calendar/feeds/{token}": {
      "get": {
        "operationId": "getV1CalendarFeedsByToken",
        "tags": [
          "calendar"
        ],
        "summary": "GET /v1/calendar/feeds/:token",
        "x-stack-oauth-scope": "none",
        "security": [],
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{43}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/catalogue": {
      "get": {
        "operationId": "getV1Catalogue",
        "tags": [
          "catalogue"
        ],
        "summary": "GET /v1/catalogue",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/catalogue/search": {
      "get": {
        "operationId": "getV1CatalogueSearch",
        "tags": [
          "catalogue"
        ],
        "summary": "GET /v1/catalogue/search",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "model",
                "tool",
                "service",
                "skill",
                "account",
                "mcp_tool"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/catalogue/tool-pieces": {
      "get": {
        "operationId": "getV1CatalogueToolPieces",
        "tags": [
          "catalogue"
        ],
        "summary": "GET /v1/catalogue/tool-pieces",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/chat-channels": {
      "get": {
        "operationId": "getV1ChatChannels",
        "tags": [
          "chat-channels"
        ],
        "summary": "GET /v1/chat-channels",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/chat-channels/identities": {
      "post": {
        "operationId": "postV1ChatChannelsIdentities",
        "tags": [
          "chat-channels"
        ],
        "summary": "POST /v1/chat-channels/identities",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateChatIdentityInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/chat-channels/identities/{id}": {
      "delete": {
        "operationId": "deleteV1ChatChannelsIdentitiesById",
        "tags": [
          "chat-channels"
        ],
        "summary": "DELETE /v1/chat-channels/identities/:id",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^cid_[A-Za-z0-9_-]{8,64}$"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/chat-channels/identities/{id}/confirm": {
      "post": {
        "operationId": "postV1ChatChannelsIdentitiesByIdConfirm",
        "tags": [
          "chat-channels"
        ],
        "summary": "POST /v1/chat-channels/identities/:id/confirm",
        "x-stack-oauth-scope": "none",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^cid_[A-Za-z0-9_-]{8,64}$"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/chat-channels/identities/{id}/verify": {
      "post": {
        "operationId": "postV1ChatChannelsIdentitiesByIdVerify",
        "tags": [
          "chat-channels"
        ],
        "summary": "POST /v1/chat-channels/identities/:id/verify",
        "x-stack-oauth-scope": "none",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^cid_[A-Za-z0-9_-]{8,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyChatIdentityInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/chat-channels/slack": {
      "delete": {
        "operationId": "deleteV1ChatChannelsSlack",
        "tags": [
          "chat-channels"
        ],
        "summary": "DELETE /v1/chat-channels/slack",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "204": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/chat-channels/slack/install": {
      "post": {
        "operationId": "postV1ChatChannelsSlackInstall",
        "tags": [
          "chat-channels"
        ],
        "summary": "POST /v1/chat-channels/slack/install",
        "x-stack-oauth-scope": "none",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InstallSlackInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/chat-channels/slack/install-url": {
      "get": {
        "operationId": "getV1ChatChannelsSlackInstallUrl",
        "tags": [
          "chat-channels"
        ],
        "summary": "GET /v1/chat-channels/slack/install-url",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "redirect_uri",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uri",
              "maxLength": 512
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/control-decisions": {
      "get": {
        "operationId": "getV1ControlDecisions",
        "tags": [
          "control-decisions"
        ],
        "summary": "GET /v1/control-decisions",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            }
          },
          {
            "name": "account_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "verdict",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "allow",
                "deny",
                "unavailable"
              ]
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 40
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/control-decisions/{id}": {
      "get": {
        "operationId": "getV1ControlDecisionsById",
        "tags": [
          "control-decisions"
        ],
        "summary": "GET /v1/control-decisions/:id",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^dec_[A-Za-z0-9_-]{16,64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/control-policies": {
      "get": {
        "operationId": "getV1ControlPolicies",
        "tags": [
          "control-policies"
        ],
        "summary": "GET /v1/control-policies",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/control-policies/agents/{agentId}": {
      "delete": {
        "operationId": "deleteV1ControlPoliciesAgentsByAgentId",
        "tags": [
          "control-policies"
        ],
        "summary": "DELETE /v1/control-policies/agents/:agentId",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^agt_[\\w-]+$"
            }
          },
          {
            "name": "expected_revision",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "get": {
        "operationId": "getV1ControlPoliciesAgentsByAgentId",
        "tags": [
          "control-policies"
        ],
        "summary": "GET /v1/control-policies/agents/:agentId",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^agt_[\\w-]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "putV1ControlPoliciesAgentsByAgentId",
        "tags": [
          "control-policies"
        ],
        "summary": "PUT /v1/control-policies/agents/:agentId",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^agt_[\\w-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetControlPolicyInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/control-policies/agents/{agentId}/start-from-current-access": {
      "post": {
        "operationId": "postV1ControlPoliciesAgentsByAgentIdStartFromCurrentAccess",
        "tags": [
          "control-policies"
        ],
        "summary": "POST /v1/control-policies/agents/:agentId/start-from-current-access",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^agt_[\\w-]+$"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/control-policies/default": {
      "delete": {
        "operationId": "deleteV1ControlPoliciesDefault",
        "tags": [
          "control-policies"
        ],
        "summary": "DELETE /v1/control-policies/default",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "expected_revision",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "get": {
        "operationId": "getV1ControlPoliciesDefault",
        "tags": [
          "control-policies"
        ],
        "summary": "GET /v1/control-policies/default",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "putV1ControlPoliciesDefault",
        "tags": [
          "control-policies"
        ],
        "summary": "PUT /v1/control-policies/default",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetControlPolicyInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/control-policies/simulate": {
      "post": {
        "operationId": "postV1ControlPoliciesSimulate",
        "tags": [
          "control-policies"
        ],
        "summary": "POST /v1/control-policies/simulate",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SimulateControlPolicyInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/control-policies/{id}/revisions": {
      "get": {
        "operationId": "getV1ControlPoliciesByIdRevisions",
        "tags": [
          "control-policies"
        ],
        "summary": "GET /v1/control-policies/:id/revisions",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^cpl_[\\w-]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/control-reviews": {
      "get": {
        "operationId": "getV1ControlReviews",
        "tags": [
          "control-reviews"
        ],
        "summary": "GET /v1/control-reviews",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "pending",
                "all"
              ],
              "default": "pending"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/control-reviews/{id}": {
      "get": {
        "operationId": "getV1ControlReviewsById",
        "tags": [
          "control-reviews"
        ],
        "summary": "GET /v1/control-reviews/:id",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^crv_[\\w-]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/control-socket": {
      "get": {
        "operationId": "getV1ControlSocket",
        "tags": [
          "control-socket"
        ],
        "summary": "GET /v1/control-socket",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/control-socket/checked-types": {
      "put": {
        "operationId": "putV1ControlSocketCheckedTypes",
        "tags": [
          "control-socket"
        ],
        "summary": "PUT /v1/control-socket/checked-types",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetControlCheckedTypesInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/control-socket/decision": {
      "put": {
        "operationId": "putV1ControlSocketDecision",
        "tags": [
          "control-socket"
        ],
        "summary": "PUT /v1/control-socket/decision",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetControlDecisionAddressInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/control-socket/events": {
      "put": {
        "operationId": "putV1ControlSocketEvents",
        "tags": [
          "control-socket"
        ],
        "summary": "PUT /v1/control-socket/events",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetControlEventsAddressInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/control-socket/mode": {
      "put": {
        "operationId": "putV1ControlSocketMode",
        "tags": [
          "control-socket"
        ],
        "summary": "PUT /v1/control-socket/mode",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetControlModeInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/control-socket/on-unavailable": {
      "put": {
        "operationId": "putV1ControlSocketOnUnavailable",
        "tags": [
          "control-socket"
        ],
        "summary": "PUT /v1/control-socket/on-unavailable",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetControlOnUnavailableInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/control-socket/secret/reveal": {
      "post": {
        "operationId": "postV1ControlSocketSecretReveal",
        "tags": [
          "control-socket"
        ],
        "summary": "POST /v1/control-socket/secret/reveal",
        "x-stack-oauth-scope": "none",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RevealBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/control-socket/{target}": {
      "delete": {
        "operationId": "deleteV1ControlSocketByTarget",
        "tags": [
          "control-socket"
        ],
        "summary": "DELETE /v1/control-socket/:target",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "target",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "decision",
                "events"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/control-socket/{target}/secret/rotate": {
      "post": {
        "operationId": "postV1ControlSocketByTargetSecretRotate",
        "tags": [
          "control-socket"
        ],
        "summary": "POST /v1/control-socket/:target/secret/rotate",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "target",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "decision",
                "events"
              ]
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/control-socket/{target}/test": {
      "post": {
        "operationId": "postV1ControlSocketByTargetTest",
        "tags": [
          "control-socket"
        ],
        "summary": "POST /v1/control-socket/:target/test",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "target",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "decision",
                "events"
              ]
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/control-socket/{target}/verify": {
      "post": {
        "operationId": "postV1ControlSocketByTargetVerify",
        "tags": [
          "control-socket"
        ],
        "summary": "POST /v1/control-socket/:target/verify",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "target",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "decision",
                "events"
              ]
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/credentials/by-connection/{connectionId}": {
      "get": {
        "operationId": "getV1CredentialsByConnectionByConnectionId",
        "tags": [
          "credentials"
        ],
        "summary": "GET /v1/credentials/by-connection/:connectionId",
        "x-stack-oauth-scope": "credentials:read",
        "x-stack-gates": [
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "connectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/credentials/{provider}": {
      "get": {
        "operationId": "getV1CredentialsByProvider",
        "tags": [
          "credentials"
        ],
        "summary": "GET /v1/credentials/:provider",
        "x-stack-oauth-scope": "credentials:read",
        "x-stack-gates": [
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "connection",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/detectors/config": {
      "get": {
        "operationId": "getV1DetectorsConfig",
        "tags": [
          "detectors"
        ],
        "summary": "GET /v1/detectors/config",
        "x-stack-oauth-scope": "detectors:read",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/detectors/{detector_key}/config": {
      "delete": {
        "operationId": "deleteV1DetectorsByDetectorKeyConfig",
        "tags": [
          "detectors"
        ],
        "summary": "DELETE /v1/detectors/:detector_key/config",
        "x-stack-oauth-scope": "detectors:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "detector_key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "get": {
        "operationId": "getV1DetectorsByDetectorKeyConfig",
        "tags": [
          "detectors"
        ],
        "summary": "GET /v1/detectors/:detector_key/config",
        "x-stack-oauth-scope": "detectors:read",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "detector_key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "putV1DetectorsByDetectorKeyConfig",
        "tags": [
          "detectors"
        ],
        "summary": "PUT /v1/detectors/:detector_key/config",
        "x-stack-oauth-scope": "detectors:write",
        "x-stack-gates": [
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "detector_key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DetectorConfigUpsertInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/drive/files": {
      "get": {
        "operationId": "getV1DriveFiles",
        "tags": [
          "drive"
        ],
        "summary": "GET /v1/drive/files",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1DriveFiles",
        "tags": [
          "drive"
        ],
        "summary": "POST /v1/drive/files",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DriveUploadInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "putV1DriveFiles",
        "tags": [
          "drive"
        ],
        "summary": "PUT /v1/drive/files",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          {
            "name": "content_type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255,
              "pattern": "^[a-z0-9][a-z0-9!#$&^_.+-]*\\/[a-z0-9][a-z0-9!#$&^_.+-]*(?:[ \\t]*;[ \\t]*[a-z0-9!#$&^_.+-]+=(?:[a-z0-9!#$&^_.+-]+|\"[\\u0020\\u0021\\u0023-\\u005b\\u005d-\\u007e]*\"))*$",
              "default": "application/octet-stream"
            }
          },
          {
            "name": "visibility",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "agent",
                "account"
              ]
            }
          },
          {
            "name": "expires_in_seconds",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 60,
              "maximum": 2147483647
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/drive/files/{id}": {
      "delete": {
        "operationId": "deleteV1DriveFilesById",
        "tags": [
          "drive"
        ],
        "summary": "DELETE /v1/drive/files/:id",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^drv_[\\w-]{8,64}$"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "get": {
        "operationId": "getV1DriveFilesById",
        "tags": [
          "drive"
        ],
        "summary": "GET /v1/drive/files/:id",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^drv_[\\w-]{8,64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "patch": {
        "operationId": "patchV1DriveFilesById",
        "tags": [
          "drive"
        ],
        "summary": "PATCH /v1/drive/files/:id",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^drv_[\\w-]{8,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DriveUpdateInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/drive/files/{id}/content": {
      "get": {
        "operationId": "getV1DriveFilesByIdContent",
        "tags": [
          "drive"
        ],
        "summary": "GET /v1/drive/files/:id/content",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^drv_[\\w-]{8,64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/drive/files/{id}/copy": {
      "post": {
        "operationId": "postV1DriveFilesByIdCopy",
        "tags": [
          "drive"
        ],
        "summary": "POST /v1/drive/files/:id/copy",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^drv_[\\w-]{8,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DriveCopyInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/drive/files/{id}/links": {
      "get": {
        "operationId": "getV1DriveFilesByIdLinks",
        "tags": [
          "drive"
        ],
        "summary": "GET /v1/drive/files/:id/links",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^drv_[\\w-]{8,64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1DriveFilesByIdLinks",
        "tags": [
          "drive"
        ],
        "summary": "POST /v1/drive/files/:id/links",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^drv_[\\w-]{8,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DriveShareInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/drive/files/{id}/links/{linkId}": {
      "delete": {
        "operationId": "deleteV1DriveFilesByIdLinksByLinkId",
        "tags": [
          "drive"
        ],
        "summary": "DELETE /v1/drive/files/:id/links/:linkId",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^drv_[\\w-]{8,64}$"
            }
          },
          {
            "name": "linkId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^dsl_[\\w-]{8,64}$"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/drive/handoffs": {
      "post": {
        "operationId": "postV1DriveHandoffs",
        "tags": [
          "drive"
        ],
        "summary": "POST /v1/drive/handoffs",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DriveHandoffInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/drive/links/*": {
      "get": {
        "operationId": "getV1DriveLinks",
        "tags": [
          "drive"
        ],
        "summary": "GET /v1/drive/links/*",
        "x-stack-oauth-scope": "none",
        "security": [],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/drive/uploads": {
      "post": {
        "operationId": "postV1DriveUploads",
        "tags": [
          "drive"
        ],
        "summary": "POST /v1/drive/uploads",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DriveUploadLinkInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/drive/uploads/{token}": {
      "put": {
        "operationId": "putV1DriveUploadsByToken",
        "tags": [
          "drive"
        ],
        "summary": "PUT /v1/drive/uploads/:token",
        "x-stack-oauth-scope": "none",
        "security": [],
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 20,
              "maxLength": 200,
              "pattern": "^[\\w-]+$"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/dropoffs": {
      "get": {
        "operationId": "getV1Dropoffs",
        "tags": [
          "dropoffs"
        ],
        "summary": "GET /v1/dropoffs",
        "x-stack-oauth-scope": "dropoffs:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1Dropoffs",
        "tags": [
          "dropoffs"
        ],
        "summary": "POST /v1/dropoffs",
        "x-stack-oauth-scope": "dropoffs:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDropoffInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/dropoffs/{id}": {
      "get": {
        "operationId": "getV1DropoffsById",
        "tags": [
          "dropoffs"
        ],
        "summary": "GET /v1/dropoffs/:id",
        "x-stack-oauth-scope": "dropoffs:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/dropoffs/{id}/collect": {
      "post": {
        "operationId": "postV1DropoffsByIdCollect",
        "tags": [
          "dropoffs"
        ],
        "summary": "POST /v1/dropoffs/:id/collect",
        "x-stack-oauth-scope": "dropoffs:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CollectBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/dropoffs/{id}/deposit": {
      "post": {
        "operationId": "postV1DropoffsByIdDeposit",
        "tags": [
          "dropoffs"
        ],
        "summary": "POST /v1/dropoffs/:id/deposit",
        "x-stack-oauth-scope": "dropoffs:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DepositBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/dropoffs/{id}/expire": {
      "post": {
        "operationId": "postV1DropoffsByIdExpire",
        "tags": [
          "dropoffs"
        ],
        "summary": "POST /v1/dropoffs/:id/expire",
        "x-stack-oauth-scope": "dropoffs:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/evidence-packs": {
      "get": {
        "operationId": "getV1EvidencePacks",
        "tags": [
          "evidence-packs"
        ],
        "summary": "GET /v1/evidence-packs",
        "x-stack-oauth-scope": "evidence:read",
        "x-stack-gates": [
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "scope",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1EvidencePacks",
        "tags": [
          "evidence-packs"
        ],
        "summary": "POST /v1/evidence-packs",
        "x-stack-oauth-scope": "evidence:write",
        "x-stack-gates": [
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExportBody"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/evidence-packs/{pack_id}": {
      "get": {
        "operationId": "getV1EvidencePacksByPackId",
        "tags": [
          "evidence-packs"
        ],
        "summary": "GET /v1/evidence-packs/:pack_id",
        "x-stack-oauth-scope": "evidence:read",
        "x-stack-gates": [
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "pack_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/evidence-packs/{pack_id}/download": {
      "get": {
        "operationId": "getV1EvidencePacksByPackIdDownload",
        "tags": [
          "evidence-packs"
        ],
        "summary": "GET /v1/evidence-packs/:pack_id/download",
        "x-stack-oauth-scope": "evidence:read",
        "x-stack-gates": [
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "pack_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/flagged-content/settings": {
      "get": {
        "operationId": "getV1FlaggedContentSettings",
        "tags": [
          "flagged-content"
        ],
        "summary": "GET /v1/flagged-content/settings",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "putV1FlaggedContentSettings",
        "tags": [
          "flagged-content"
        ],
        "summary": "PUT /v1/flagged-content/settings",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetFlaggedContentSettingsInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/fleets": {
      "get": {
        "operationId": "getV1Fleets",
        "tags": [
          "fleets"
        ],
        "summary": "GET /v1/fleets",
        "x-stack-oauth-scope": "agents:read",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireControlsGate",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000,
              "default": 1
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1Fleets",
        "tags": [
          "fleets"
        ],
        "summary": "POST /v1/fleets",
        "x-stack-oauth-scope": "agents:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireControlsGate",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FleetPolicyInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/fleets/membership/{agentId}": {
      "get": {
        "operationId": "getV1FleetsMembershipByAgentId",
        "tags": [
          "fleets"
        ],
        "summary": "GET /v1/fleets/membership/:agentId",
        "x-stack-oauth-scope": "agents:read",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireControlsGate",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/fleets/session": {
      "post": {
        "operationId": "postV1FleetsSession",
        "tags": [
          "fleets"
        ],
        "summary": "POST /v1/fleets/session",
        "x-stack-oauth-scope": "none",
        "x-stack-gates": [
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/fleets/{id}": {
      "get": {
        "operationId": "getV1FleetsById",
        "tags": [
          "fleets"
        ],
        "summary": "GET /v1/fleets/:id",
        "x-stack-oauth-scope": "agents:read",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireControlsGate",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "putV1FleetsById",
        "tags": [
          "fleets"
        ],
        "summary": "PUT /v1/fleets/:id",
        "x-stack-oauth-scope": "agents:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireControlsGate",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FleetPolicyInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/fleets/{id}/enroll": {
      "post": {
        "operationId": "postV1FleetsByIdEnroll",
        "tags": [
          "fleets"
        ],
        "summary": "POST /v1/fleets/:id/enroll",
        "x-stack-oauth-scope": "none",
        "x-stack-gates": [
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FleetEnrollmentInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/fleets/{id}/enrollment-challenges": {
      "post": {
        "operationId": "postV1FleetsByIdEnrollmentChallenges",
        "tags": [
          "fleets"
        ],
        "summary": "POST /v1/fleets/:id/enrollment-challenges",
        "x-stack-oauth-scope": "none",
        "x-stack-gates": [
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/fleets/{id}/members": {
      "get": {
        "operationId": "getV1FleetsByIdMembers",
        "tags": [
          "fleets"
        ],
        "summary": "GET /v1/fleets/:id/members",
        "x-stack-oauth-scope": "agents:read",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireControlsGate",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000,
              "default": 1
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/fleets/{id}/members/{agentId}/revoke": {
      "post": {
        "operationId": "postV1FleetsByIdMembersByAgentIdRevoke",
        "tags": [
          "fleets"
        ],
        "summary": "POST /v1/fleets/:id/members/:agentId/revoke",
        "x-stack-oauth-scope": "agents:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireControlsGate",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/fleets/{id}/revoke": {
      "post": {
        "operationId": "postV1FleetsByIdRevoke",
        "tags": [
          "fleets"
        ],
        "summary": "POST /v1/fleets/:id/revoke",
        "x-stack-oauth-scope": "agents:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireControlsGate",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/fleets/{id}/workload/enroll": {
      "post": {
        "operationId": "postV1FleetsByIdWorkloadEnroll",
        "tags": [
          "fleets"
        ],
        "summary": "POST /v1/fleets/:id/workload/enroll",
        "x-stack-oauth-scope": "none",
        "security": [],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FleetEnrollmentInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/fleets/{id}/workload/enrollment-challenges": {
      "post": {
        "operationId": "postV1FleetsByIdWorkloadEnrollmentChallenges",
        "tags": [
          "fleets"
        ],
        "summary": "POST /v1/fleets/:id/workload/enrollment-challenges",
        "x-stack-oauth-scope": "none",
        "security": [],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/governance/approvals": {
      "get": {
        "operationId": "getV1GovernanceApprovals",
        "tags": [
          "governance"
        ],
        "summary": "GET /v1/governance/approvals",
        "x-stack-oauth-scope": "governance:read",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GovernanceApprovalList"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/governance/approvals/{id}": {
      "get": {
        "operationId": "getV1GovernanceApprovalsById",
        "tags": [
          "governance"
        ],
        "summary": "GET /v1/governance/approvals/:id",
        "x-stack-oauth-scope": "governance:read",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^gvr_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GovernanceApprovalDetail"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/governance/approvals/{id}/chat-decision": {
      "post": {
        "operationId": "postV1GovernanceApprovalsByIdChatDecision",
        "tags": [
          "governance"
        ],
        "summary": "POST /v1/governance/approvals/:id/chat-decision",
        "x-stack-oauth-scope": "governance:decide",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^gvr_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GovernanceChatDecisionInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/governance/approvals/{id}/decide": {
      "post": {
        "operationId": "postV1GovernanceApprovalsByIdDecide",
        "tags": [
          "governance"
        ],
        "summary": "POST /v1/governance/approvals/:id/decide",
        "x-stack-oauth-scope": "none",
        "security": [],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GovernanceDecisionInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/identity/claims": {
      "get": {
        "operationId": "getV1IdentityClaims",
        "tags": [
          "identity"
        ],
        "summary": "GET /v1/identity/claims",
        "x-stack-oauth-scope": "identity:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/identity/claims/{id}": {
      "delete": {
        "operationId": "deleteV1IdentityClaimsById",
        "tags": [
          "identity"
        ],
        "summary": "DELETE /v1/identity/claims/:id",
        "x-stack-oauth-scope": "identity:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/identity/delegate": {
      "post": {
        "operationId": "postV1IdentityDelegate",
        "tags": [
          "identity"
        ],
        "summary": "POST /v1/identity/delegate",
        "x-stack-oauth-scope": "identity:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GrantDelegationInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/identity/oidc/config": {
      "get": {
        "operationId": "getV1IdentityOidcConfig",
        "tags": [
          "identity"
        ],
        "summary": "GET /v1/identity/oidc/config",
        "x-stack-oauth-scope": "identity:read",
        "x-stack-gates": [
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1IdentityOidcConfig",
        "tags": [
          "identity"
        ],
        "summary": "POST /v1/identity/oidc/config",
        "x-stack-oauth-scope": "identity:write",
        "x-stack-gates": [
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OidcIdpConfigCreateInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/identity/oidc/config/{id}": {
      "delete": {
        "operationId": "deleteV1IdentityOidcConfigById",
        "tags": [
          "identity"
        ],
        "summary": "DELETE /v1/identity/oidc/config/:id",
        "x-stack-oauth-scope": "identity:write",
        "x-stack-gates": [
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "patch": {
        "operationId": "patchV1IdentityOidcConfigById",
        "tags": [
          "identity"
        ],
        "summary": "PATCH /v1/identity/oidc/config/:id",
        "x-stack-oauth-scope": "identity:write",
        "x-stack-gates": [
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OidcIdpConfigUpdateInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/identity/oidc/config/{id}/test": {
      "post": {
        "operationId": "postV1IdentityOidcConfigByIdTest",
        "tags": [
          "identity"
        ],
        "summary": "POST /v1/identity/oidc/config/:id/test",
        "x-stack-oauth-scope": "identity:write",
        "x-stack-gates": [
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/identity/providers": {
      "get": {
        "operationId": "getV1IdentityProviders",
        "tags": [
          "identity"
        ],
        "summary": "GET /v1/identity/providers",
        "x-stack-oauth-scope": "identity:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/identity/spiffe/trust-domains": {
      "get": {
        "operationId": "getV1IdentitySpiffeTrustDomains",
        "tags": [
          "identity"
        ],
        "summary": "GET /v1/identity/spiffe/trust-domains",
        "x-stack-oauth-scope": "identity:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1IdentitySpiffeTrustDomains",
        "tags": [
          "identity"
        ],
        "summary": "POST /v1/identity/spiffe/trust-domains",
        "x-stack-oauth-scope": "identity:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TrustDomainCreateInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/identity/spiffe/trust-domains/{id}": {
      "delete": {
        "operationId": "deleteV1IdentitySpiffeTrustDomainsById",
        "tags": [
          "identity"
        ],
        "summary": "DELETE /v1/identity/spiffe/trust-domains/:id",
        "x-stack-oauth-scope": "identity:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "get": {
        "operationId": "getV1IdentitySpiffeTrustDomainsById",
        "tags": [
          "identity"
        ],
        "summary": "GET /v1/identity/spiffe/trust-domains/:id",
        "x-stack-oauth-scope": "identity:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "patch": {
        "operationId": "patchV1IdentitySpiffeTrustDomainsById",
        "tags": [
          "identity"
        ],
        "summary": "PATCH /v1/identity/spiffe/trust-domains/:id",
        "x-stack-oauth-scope": "identity:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TrustDomainUpdateInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/identity/sso-domains": {
      "get": {
        "operationId": "getV1IdentitySsoDomains",
        "tags": [
          "identity"
        ],
        "summary": "GET /v1/identity/sso-domains",
        "x-stack-oauth-scope": "identity:read",
        "x-stack-gates": [
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1IdentitySsoDomains",
        "tags": [
          "identity"
        ],
        "summary": "POST /v1/identity/sso-domains",
        "x-stack-oauth-scope": "identity:write",
        "x-stack-gates": [
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SsoDomainAddInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/identity/sso-domains/{id}": {
      "delete": {
        "operationId": "deleteV1IdentitySsoDomainsById",
        "tags": [
          "identity"
        ],
        "summary": "DELETE /v1/identity/sso-domains/:id",
        "x-stack-oauth-scope": "identity:write",
        "x-stack-gates": [
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/identity/sso-domains/{id}/verify": {
      "post": {
        "operationId": "postV1IdentitySsoDomainsByIdVerify",
        "tags": [
          "identity"
        ],
        "summary": "POST /v1/identity/sso-domains/:id/verify",
        "x-stack-oauth-scope": "identity:write",
        "x-stack-gates": [
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/identity/sso/handoff": {
      "post": {
        "operationId": "postV1IdentitySsoHandoff",
        "tags": [
          "identity"
        ],
        "summary": "POST /v1/identity/sso/handoff",
        "x-stack-oauth-scope": "none",
        "security": [],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/identity/sso/{slug}/start": {
      "get": {
        "operationId": "getV1IdentitySsoBySlugStart",
        "tags": [
          "identity"
        ],
        "summary": "GET /v1/identity/sso/:slug/start",
        "x-stack-oauth-scope": "none",
        "security": [],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/identity/verify/complete": {
      "post": {
        "operationId": "postV1IdentityVerifyComplete",
        "tags": [
          "identity"
        ],
        "summary": "POST /v1/identity/verify/complete",
        "x-stack-oauth-scope": "identity:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteVerificationInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/identity/verify/initiate": {
      "post": {
        "operationId": "postV1IdentityVerifyInitiate",
        "tags": [
          "identity"
        ],
        "summary": "POST /v1/identity/verify/initiate",
        "x-stack-oauth-scope": "identity:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InitiateVerificationInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/identity/verify/sessions": {
      "get": {
        "operationId": "getV1IdentityVerifySessions",
        "tags": [
          "identity"
        ],
        "summary": "GET /v1/identity/verify/sessions",
        "x-stack-oauth-scope": "identity:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/identity/verify/sessions/{id}": {
      "get": {
        "operationId": "getV1IdentityVerifySessionsById",
        "tags": [
          "identity"
        ],
        "summary": "GET /v1/identity/verify/sessions/:id",
        "x-stack-oauth-scope": "identity:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/identity/verify/sync": {
      "post": {
        "operationId": "postV1IdentityVerifySync",
        "tags": [
          "identity"
        ],
        "summary": "POST /v1/identity/verify/sync",
        "x-stack-oauth-scope": "identity:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SyncVerificationBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/identity/verify/token": {
      "post": {
        "operationId": "postV1IdentityVerifyToken",
        "tags": [
          "identity"
        ],
        "summary": "POST /v1/identity/verify/token",
        "x-stack-oauth-scope": "identity:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TokenVerificationBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/identity/wimse/issuers": {
      "get": {
        "operationId": "getV1IdentityWimseIssuers",
        "tags": [
          "identity"
        ],
        "summary": "GET /v1/identity/wimse/issuers",
        "x-stack-oauth-scope": "identity:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1IdentityWimseIssuers",
        "tags": [
          "identity"
        ],
        "summary": "POST /v1/identity/wimse/issuers",
        "x-stack-oauth-scope": "identity:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WimseIssuerCreateInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/identity/wimse/issuers/{id}": {
      "delete": {
        "operationId": "deleteV1IdentityWimseIssuersById",
        "tags": [
          "identity"
        ],
        "summary": "DELETE /v1/identity/wimse/issuers/:id",
        "x-stack-oauth-scope": "identity:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "get": {
        "operationId": "getV1IdentityWimseIssuersById",
        "tags": [
          "identity"
        ],
        "summary": "GET /v1/identity/wimse/issuers/:id",
        "x-stack-oauth-scope": "identity:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "patch": {
        "operationId": "patchV1IdentityWimseIssuersById",
        "tags": [
          "identity"
        ],
        "summary": "PATCH /v1/identity/wimse/issuers/:id",
        "x-stack-oauth-scope": "identity:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WimseIssuerUpdateInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/intents/pending": {
      "get": {
        "operationId": "getV1IntentsPending",
        "tags": [
          "intents"
        ],
        "summary": "GET /v1/intents/pending",
        "x-stack-oauth-scope": "intents:read",
        "x-stack-gates": [
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agent_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^agt_[\\w-]+$",
              "maxLength": 256
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/intents/simulate": {
      "post": {
        "operationId": "postV1IntentsSimulate",
        "tags": [
          "intents"
        ],
        "summary": "POST /v1/intents/simulate",
        "x-stack-oauth-scope": "intents:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SimulateBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/intents/submit": {
      "post": {
        "operationId": "postV1IntentsSubmit",
        "tags": [
          "intents"
        ],
        "summary": "POST /v1/intents/submit",
        "x-stack-oauth-scope": "intents:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitBody"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/intents/{id}": {
      "get": {
        "operationId": "getV1IntentsById",
        "tags": [
          "intents"
        ],
        "summary": "GET /v1/intents/:id",
        "x-stack-oauth-scope": "intents:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/intents/{id}/approve": {
      "post": {
        "operationId": "postV1IntentsByIdApprove",
        "tags": [
          "intents"
        ],
        "summary": "POST /v1/intents/:id/approve",
        "x-stack-oauth-scope": "governance:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DecideBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/intents/{id}/reject": {
      "post": {
        "operationId": "postV1IntentsByIdReject",
        "tags": [
          "intents"
        ],
        "summary": "POST /v1/intents/:id/reject",
        "x-stack-oauth-scope": "governance:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DecideBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/licence": {
      "get": {
        "operationId": "getV1Licence",
        "tags": [
          "licence"
        ],
        "summary": "GET /v1/licence",
        "x-stack-oauth-scope": "none",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/llm/anthropic/images": {
      "post": {
        "operationId": "postV1LlmAnthropicImages",
        "tags": [
          "llm"
        ],
        "summary": "POST /v1/llm/anthropic/images",
        "x-stack-oauth-scope": "llm:invoke",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/llm/anthropic/messages": {
      "post": {
        "operationId": "postV1LlmAnthropicMessages",
        "tags": [
          "llm"
        ],
        "summary": "POST /v1/llm/anthropic/messages",
        "x-stack-oauth-scope": "llm:invoke",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/llm/openai/chat/completions": {
      "post": {
        "operationId": "postV1LlmOpenaiChatCompletions",
        "tags": [
          "llm"
        ],
        "summary": "POST /v1/llm/openai/chat/completions",
        "x-stack-oauth-scope": "llm:invoke",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/llm/openai/images": {
      "post": {
        "operationId": "postV1LlmOpenaiImages",
        "tags": [
          "llm"
        ],
        "summary": "POST /v1/llm/openai/images",
        "x-stack-oauth-scope": "llm:invoke",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/llm/openrouter/*": {
      "delete": {
        "operationId": "deleteV1LlmOpenrouter",
        "tags": [
          "llm"
        ],
        "summary": "DELETE /v1/llm/openrouter/*",
        "x-stack-oauth-scope": "llm:invoke",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "get": {
        "operationId": "getV1LlmOpenrouter",
        "tags": [
          "llm"
        ],
        "summary": "GET /v1/llm/openrouter/*",
        "x-stack-oauth-scope": "llm:invoke",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "patch": {
        "operationId": "patchV1LlmOpenrouter",
        "tags": [
          "llm"
        ],
        "summary": "PATCH /v1/llm/openrouter/*",
        "x-stack-oauth-scope": "llm:invoke",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1LlmOpenrouter",
        "tags": [
          "llm"
        ],
        "summary": "POST /v1/llm/openrouter/*",
        "x-stack-oauth-scope": "llm:invoke",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "putV1LlmOpenrouter",
        "tags": [
          "llm"
        ],
        "summary": "PUT /v1/llm/openrouter/*",
        "x-stack-oauth-scope": "llm:invoke",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/llm/usage": {
      "get": {
        "operationId": "getV1LlmUsage",
        "tags": [
          "llm"
        ],
        "summary": "GET /v1/llm/usage",
        "x-stack-oauth-scope": "llm:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "provider",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "anthropic",
                "openai",
                "openrouter"
              ]
            }
          },
          {
            "name": "passport_jti",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mission_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "agent_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "surface",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[a-z][a-z0-9_]{0,63}$"
            }
          },
          {
            "name": "provider_payer",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "customer_provider",
                "stack_plan",
                "stack_wallet",
                "stack_comped"
              ]
            }
          },
          {
            "name": "stack_fee_payer",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "stack_plan",
                "stack_wallet",
                "stack_comped",
                "none"
              ]
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "until",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/llm/usage/summary": {
      "get": {
        "operationId": "getV1LlmUsageSummary",
        "tags": [
          "llm"
        ],
        "summary": "GET /v1/llm/usage/summary",
        "x-stack-oauth-scope": "llm:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "provider",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "anthropic",
                "openai",
                "openrouter"
              ]
            }
          },
          {
            "name": "passport_jti",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mission_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "agent_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "surface",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[a-z][a-z0-9_]{0,63}$"
            }
          },
          {
            "name": "provider_payer",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "customer_provider",
                "stack_plan",
                "stack_wallet",
                "stack_comped"
              ]
            }
          },
          {
            "name": "stack_fee_payer",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "stack_plan",
                "stack_wallet",
                "stack_comped",
                "none"
              ]
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "until",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "group_by_model",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/making/files/{token}": {
      "get": {
        "operationId": "getV1MakingFilesByToken",
        "tags": [
          "making"
        ],
        "summary": "GET /v1/making/files/:token",
        "x-stack-oauth-scope": "none",
        "security": [],
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 20,
              "maxLength": 400
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/memory/entity-types": {
      "get": {
        "operationId": "getV1MemoryEntityTypes",
        "tags": [
          "memory"
        ],
        "summary": "GET /v1/memory/entity-types",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1MemoryEntityTypes",
        "tags": [
          "memory"
        ],
        "summary": "POST /v1/memory/entity-types",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MemoryEntityTypeInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/memory/entity-types/{name}": {
      "delete": {
        "operationId": "deleteV1MemoryEntityTypesByName",
        "tags": [
          "memory"
        ],
        "summary": "DELETE /v1/memory/entity-types/:name",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z][A-Za-z0-9_]*$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "patch": {
        "operationId": "patchV1MemoryEntityTypesByName",
        "tags": [
          "memory"
        ],
        "summary": "PATCH /v1/memory/entity-types/:name",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z][A-Za-z0-9_]*$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MemoryEntityTypeChangeInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/memory/episode-entities": {
      "post": {
        "operationId": "postV1MemoryEpisodeEntities",
        "tags": [
          "memory"
        ],
        "summary": "POST /v1/memory/episode-entities",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MemoryEpisodeEntitiesInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/memory/episodes": {
      "get": {
        "operationId": "getV1MemoryEpisodes",
        "tags": [
          "memory"
        ],
        "summary": "GET /v1/memory/episodes",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "max_episodes",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1MemoryEpisodes",
        "tags": [
          "memory"
        ],
        "summary": "POST /v1/memory/episodes",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MemoryAddInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/memory/episodes/{uuid}": {
      "delete": {
        "operationId": "deleteV1MemoryEpisodesByUuid",
        "tags": [
          "memory"
        ],
        "summary": "DELETE /v1/memory/episodes/:uuid",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/memory/facts/search": {
      "post": {
        "operationId": "postV1MemoryFactsSearch",
        "tags": [
          "memory"
        ],
        "summary": "POST /v1/memory/facts/search",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MemorySearchFactsInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/memory/facts/{uuid}": {
      "delete": {
        "operationId": "deleteV1MemoryFactsByUuid",
        "tags": [
          "memory"
        ],
        "summary": "DELETE /v1/memory/facts/:uuid",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "get": {
        "operationId": "getV1MemoryFactsByUuid",
        "tags": [
          "memory"
        ],
        "summary": "GET /v1/memory/facts/:uuid",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/memory/history": {
      "get": {
        "operationId": "getV1MemoryHistory",
        "tags": [
          "memory"
        ],
        "summary": "GET /v1/memory/history",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "max_writes",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[1-9][0-9]{0,17}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/memory/nodes/search": {
      "post": {
        "operationId": "postV1MemoryNodesSearch",
        "tags": [
          "memory"
        ],
        "summary": "POST /v1/memory/nodes/search",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MemorySearchNodesInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/memory/sagas/summary": {
      "post": {
        "operationId": "postV1MemorySagasSummary",
        "tags": [
          "memory"
        ],
        "summary": "POST /v1/memory/sagas/summary",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MemorySummarizeSagaInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/memory/settings": {
      "get": {
        "operationId": "getV1MemorySettings",
        "tags": [
          "memory"
        ],
        "summary": "GET /v1/memory/settings",
        "x-stack-oauth-scope": "accounts:read",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "putV1MemorySettings",
        "tags": [
          "memory"
        ],
        "summary": "PUT /v1/memory/settings",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MemorySettingsInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/memory/triplets": {
      "post": {
        "operationId": "postV1MemoryTriplets",
        "tags": [
          "memory"
        ],
        "summary": "POST /v1/memory/triplets",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MemoryTripletInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/memory/writes/{id}/undo": {
      "post": {
        "operationId": "postV1MemoryWritesByIdUndo",
        "tags": [
          "memory"
        ],
        "summary": "POST /v1/memory/writes/:id/undo",
        "x-stack-oauth-scope": "accounts:act",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^mmo_[\\w-]{8,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MemoryUndoInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/message-access": {
      "get": {
        "operationId": "getV1MessageAccess",
        "tags": [
          "message-access"
        ],
        "summary": "GET /v1/message-access",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "putV1MessageAccess",
        "tags": [
          "message-access"
        ],
        "summary": "PUT /v1/message-access",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetMessageAccessInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/messages": {
      "get": {
        "operationId": "getV1Messages",
        "tags": [
          "messages"
        ],
        "summary": "GET /v1/messages",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agent_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          {
            "name": "channel",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "email",
                "sms",
                "voicemail",
                "call",
                "telegram",
                "post",
                "meeting"
              ]
            }
          },
          {
            "name": "sender",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 320
            }
          },
          {
            "name": "recipient",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 320
            }
          },
          {
            "name": "thread_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 25
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 300
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/missions": {
      "get": {
        "operationId": "getV1Missions",
        "tags": [
          "missions"
        ],
        "summary": "GET /v1/missions",
        "x-stack-oauth-scope": "missions:read",
        "x-stack-gates": [
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agent_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^agt_[\\w-]+$",
              "maxLength": 256
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "active",
                "completed",
                "revoked",
                "paused"
              ]
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1Missions",
        "tags": [
          "missions"
        ],
        "summary": "POST /v1/missions",
        "x-stack-oauth-scope": "missions:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/FleetStartProbe"
                  },
                  {
                    "$ref": "#/components/schemas/FleetMissionStartInput"
                  },
                  {
                    "$ref": "#/components/schemas/OpenBody"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/missions/start": {
      "post": {
        "operationId": "postV1MissionsStart",
        "tags": [
          "missions"
        ],
        "summary": "POST /v1/missions/start",
        "x-stack-oauth-scope": "missions:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/OperatorMissionStartInput"
                  },
                  {
                    "$ref": "#/components/schemas/FleetMissionStartInput"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/missions/{id}": {
      "get": {
        "operationId": "getV1MissionsById",
        "tags": [
          "missions"
        ],
        "summary": "GET /v1/missions/:id",
        "x-stack-oauth-scope": "missions:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/missions/{id}/complete": {
      "post": {
        "operationId": "postV1MissionsByIdComplete",
        "tags": [
          "missions"
        ],
        "summary": "POST /v1/missions/:id/complete",
        "x-stack-oauth-scope": "missions:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/missions/{id}/dossier": {
      "post": {
        "operationId": "postV1MissionsByIdDossier",
        "tags": [
          "missions"
        ],
        "summary": "POST /v1/missions/:id/dossier",
        "x-stack-oauth-scope": "missions:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DossierBody"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/missions/{id}/dossiers": {
      "get": {
        "operationId": "getV1MissionsByIdDossiers",
        "tags": [
          "missions"
        ],
        "summary": "GET /v1/missions/:id/dossiers",
        "x-stack-oauth-scope": "missions:read",
        "x-stack-gates": [
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/missions/{id}/making-allowance": {
      "put": {
        "operationId": "putV1MissionsByIdMakingAllowance",
        "tags": [
          "missions"
        ],
        "summary": "PUT /v1/missions/:id/making-allowance",
        "x-stack-oauth-scope": "missions:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetMissionMakingAllowanceInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/missions/{id}/operator-review-source": {
      "get": {
        "operationId": "getV1MissionsByIdOperatorReviewSource",
        "tags": [
          "missions"
        ],
        "summary": "GET /v1/missions/:id/operator-review-source",
        "x-stack-oauth-scope": "reviews:read",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ms_[\\w-]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/missions/{id}/operator-reviews": {
      "get": {
        "operationId": "getV1MissionsByIdOperatorReviews",
        "tags": [
          "missions"
        ],
        "summary": "GET /v1/missions/:id/operator-reviews",
        "x-stack-oauth-scope": "reviews:read",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ms_[\\w-]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1MissionsByIdOperatorReviews",
        "tags": [
          "missions"
        ],
        "summary": "POST /v1/missions/:id/operator-reviews",
        "x-stack-oauth-scope": "reviews:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ms_[\\w-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OperatorReviewInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/missions/{id}/operator-reviews/{claim_id}/download": {
      "get": {
        "operationId": "getV1MissionsByIdOperatorReviewsByClaimIdDownload",
        "tags": [
          "missions"
        ],
        "summary": "GET /v1/missions/:id/operator-reviews/:claim_id/download",
        "x-stack-oauth-scope": "reviews:read",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ms_[\\w-]+$"
            }
          },
          {
            "name": "claim_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^pc_[\\w-]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/missions/{id}/operator-reviews/{claim_id}/revisions": {
      "post": {
        "operationId": "postV1MissionsByIdOperatorReviewsByClaimIdRevisions",
        "tags": [
          "missions"
        ],
        "summary": "POST /v1/missions/:id/operator-reviews/:claim_id/revisions",
        "x-stack-oauth-scope": "reviews:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ms_[\\w-]+$"
            }
          },
          {
            "name": "claim_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^pc_[\\w-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OperatorReviewInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/missions/{id}/passports": {
      "get": {
        "operationId": "getV1MissionsByIdPassports",
        "tags": [
          "missions"
        ],
        "summary": "GET /v1/missions/:id/passports",
        "x-stack-oauth-scope": "missions:read",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/missions/{id}/recipients": {
      "post": {
        "operationId": "postV1MissionsByIdRecipients",
        "tags": [
          "missions"
        ],
        "summary": "POST /v1/missions/:id/recipients",
        "x-stack-oauth-scope": "missions:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddRecipientsBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/missions/{id}/renew": {
      "post": {
        "operationId": "postV1MissionsByIdRenew",
        "tags": [
          "missions"
        ],
        "summary": "POST /v1/missions/:id/renew",
        "x-stack-oauth-scope": "none",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/missions/{id}/replay": {
      "get": {
        "operationId": "getV1MissionsByIdReplay",
        "tags": [
          "missions"
        ],
        "summary": "GET /v1/missions/:id/replay",
        "x-stack-oauth-scope": "missions:read",
        "x-stack-gates": [
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/missions/{id}/review": {
      "post": {
        "operationId": "postV1MissionsByIdReview",
        "tags": [
          "missions"
        ],
        "summary": "POST /v1/missions/:id/review",
        "x-stack-oauth-scope": "missions:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MissionReviewInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/missions/{id}/revoke": {
      "post": {
        "operationId": "postV1MissionsByIdRevoke",
        "tags": [
          "missions"
        ],
        "summary": "POST /v1/missions/:id/revoke",
        "x-stack-oauth-scope": "missions:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RevokeBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/notifications/channels": {
      "get": {
        "operationId": "getV1NotificationsChannels",
        "tags": [
          "notifications"
        ],
        "summary": "GET /v1/notifications/channels",
        "x-stack-oauth-scope": "notifications:read",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1NotificationsChannels",
        "tags": [
          "notifications"
        ],
        "summary": "POST /v1/notifications/channels",
        "x-stack-oauth-scope": "notifications:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NotificationRuleRequestBody"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/notifications/channels/{id}": {
      "delete": {
        "operationId": "deleteV1NotificationsChannelsById",
        "tags": [
          "notifications"
        ],
        "summary": "DELETE /v1/notifications/channels/:id",
        "x-stack-oauth-scope": "notifications:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "patch": {
        "operationId": "patchV1NotificationsChannelsById",
        "tags": [
          "notifications"
        ],
        "summary": "PATCH /v1/notifications/channels/:id",
        "x-stack-oauth-scope": "notifications:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateNotificationRuleInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/notifications/channels/{id}/send-code": {
      "post": {
        "operationId": "postV1NotificationsChannelsByIdSendCode",
        "tags": [
          "notifications"
        ],
        "summary": "POST /v1/notifications/channels/:id/send-code",
        "x-stack-oauth-scope": "notifications:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/notifications/channels/{id}/test": {
      "post": {
        "operationId": "postV1NotificationsChannelsByIdTest",
        "tags": [
          "notifications"
        ],
        "summary": "POST /v1/notifications/channels/:id/test",
        "x-stack-oauth-scope": "notifications:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/notifications/channels/{id}/verify": {
      "post": {
        "operationId": "postV1NotificationsChannelsByIdVerify",
        "tags": [
          "notifications"
        ],
        "summary": "POST /v1/notifications/channels/:id/verify",
        "x-stack-oauth-scope": "notifications:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyCodeBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/notifications/destinations": {
      "get": {
        "operationId": "getV1NotificationsDestinations",
        "tags": [
          "notifications"
        ],
        "summary": "GET /v1/notifications/destinations",
        "x-stack-oauth-scope": "notifications:read",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1NotificationsDestinations",
        "tags": [
          "notifications"
        ],
        "summary": "POST /v1/notifications/destinations",
        "x-stack-oauth-scope": "notifications:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddDeliveryMethodInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/notifications/destinations/{id}": {
      "delete": {
        "operationId": "deleteV1NotificationsDestinationsById",
        "tags": [
          "notifications"
        ],
        "summary": "DELETE /v1/notifications/destinations/:id",
        "x-stack-oauth-scope": "notifications:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/notifications/destinations/{id}/rotate-secret": {
      "post": {
        "operationId": "postV1NotificationsDestinationsByIdRotateSecret",
        "tags": [
          "notifications"
        ],
        "summary": "POST /v1/notifications/destinations/:id/rotate-secret",
        "x-stack-oauth-scope": "notifications:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/notifications/destinations/{id}/send-code": {
      "post": {
        "operationId": "postV1NotificationsDestinationsByIdSendCode",
        "tags": [
          "notifications"
        ],
        "summary": "POST /v1/notifications/destinations/:id/send-code",
        "x-stack-oauth-scope": "notifications:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/notifications/destinations/{id}/test": {
      "post": {
        "operationId": "postV1NotificationsDestinationsByIdTest",
        "tags": [
          "notifications"
        ],
        "summary": "POST /v1/notifications/destinations/:id/test",
        "x-stack-oauth-scope": "notifications:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/notifications/destinations/{id}/verify": {
      "post": {
        "operationId": "postV1NotificationsDestinationsByIdVerify",
        "tags": [
          "notifications"
        ],
        "summary": "POST /v1/notifications/destinations/:id/verify",
        "x-stack-oauth-scope": "notifications:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyCodeBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/oauth-apps": {
      "get": {
        "operationId": "getV1OauthApps",
        "tags": [
          "oauth-apps"
        ],
        "summary": "GET /v1/oauth-apps",
        "x-stack-oauth-scope": "oauth-apps:read",
        "x-stack-gates": [
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1OauthApps",
        "tags": [
          "oauth-apps"
        ],
        "summary": "POST /v1/oauth-apps",
        "x-stack-oauth-scope": "oauth-apps:write",
        "x-stack-gates": [
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOauthAppInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/oauth-apps/{provider}": {
      "delete": {
        "operationId": "deleteV1OauthAppsByProvider",
        "tags": [
          "oauth-apps"
        ],
        "summary": "DELETE /v1/oauth-apps/:provider",
        "x-stack-oauth-scope": "oauth-apps:write",
        "x-stack-gates": [
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/operator-decisions": {
      "post": {
        "operationId": "postV1OperatorDecisions",
        "tags": [
          "operator-decisions"
        ],
        "summary": "POST /v1/operator-decisions",
        "x-stack-oauth-scope": "reviews:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DecisionBody"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/operator/cmek": {
      "delete": {
        "operationId": "deleteV1OperatorCmek",
        "tags": [
          "operator"
        ],
        "summary": "DELETE /v1/operator/cmek",
        "x-stack-oauth-scope": "cmek:write",
        "x-stack-gates": [
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "get": {
        "operationId": "getV1OperatorCmek",
        "tags": [
          "operator"
        ],
        "summary": "GET /v1/operator/cmek",
        "x-stack-oauth-scope": "cmek:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1OperatorCmek",
        "tags": [
          "operator"
        ],
        "summary": "POST /v1/operator/cmek",
        "x-stack-oauth-scope": "cmek:write",
        "x-stack-gates": [
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/operator/inbound-webhooks": {
      "get": {
        "operationId": "getV1OperatorInboundWebhooks",
        "tags": [
          "operator"
        ],
        "summary": "GET /v1/operator/inbound-webhooks",
        "x-stack-oauth-scope": "inbound-webhooks:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1OperatorInboundWebhooks",
        "tags": [
          "operator"
        ],
        "summary": "POST /v1/operator/inbound-webhooks",
        "x-stack-oauth-scope": "inbound-webhooks:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInboundWebhookInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/operator/inbound-webhooks/{id}": {
      "delete": {
        "operationId": "deleteV1OperatorInboundWebhooksById",
        "tags": [
          "operator"
        ],
        "summary": "DELETE /v1/operator/inbound-webhooks/:id",
        "x-stack-oauth-scope": "inbound-webhooks:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "get": {
        "operationId": "getV1OperatorInboundWebhooksById",
        "tags": [
          "operator"
        ],
        "summary": "GET /v1/operator/inbound-webhooks/:id",
        "x-stack-oauth-scope": "inbound-webhooks:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/operator/inbound-webhooks/{id}/provider-signing-secret": {
      "put": {
        "operationId": "putV1OperatorInboundWebhooksByIdProviderSigningSecret",
        "tags": [
          "operator"
        ],
        "summary": "PUT /v1/operator/inbound-webhooks/:id/provider-signing-secret",
        "x-stack-oauth-scope": "none",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/operator/inbound-webhooks/{id}/rotate-secret": {
      "post": {
        "operationId": "postV1OperatorInboundWebhooksByIdRotateSecret",
        "tags": [
          "operator"
        ],
        "summary": "POST /v1/operator/inbound-webhooks/:id/rotate-secret",
        "x-stack-oauth-scope": "none",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/operator/partner-management": {
      "get": {
        "operationId": "getV1OperatorPartnerManagement",
        "tags": [
          "operator"
        ],
        "summary": "GET /v1/operator/partner-management",
        "x-stack-oauth-scope": "none",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireBrowserSession"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/operator/partner-release": {
      "post": {
        "operationId": "postV1OperatorPartnerRelease",
        "tags": [
          "operator"
        ],
        "summary": "POST /v1/operator/partner-release",
        "x-stack-oauth-scope": "none",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireBrowserSession"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/operators/email-change/cancel": {
      "post": {
        "operationId": "postV1OperatorsEmailChangeCancel",
        "tags": [
          "operators"
        ],
        "summary": "POST /v1/operators/email-change/cancel",
        "x-stack-oauth-scope": "none",
        "security": [],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/operators/email-change/confirm": {
      "post": {
        "operationId": "postV1OperatorsEmailChangeConfirm",
        "tags": [
          "operators"
        ],
        "summary": "POST /v1/operators/email-change/confirm",
        "x-stack-oauth-scope": "none",
        "security": [],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/operators/me": {
      "delete": {
        "operationId": "deleteV1OperatorsMe",
        "tags": [
          "operators"
        ],
        "summary": "DELETE /v1/operators/me",
        "x-stack-oauth-scope": "none",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteAccountBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "get": {
        "operationId": "getV1OperatorsMe",
        "tags": [
          "operators"
        ],
        "summary": "GET /v1/operators/me",
        "x-stack-oauth-scope": "account:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/operators/me/email-change": {
      "get": {
        "operationId": "getV1OperatorsMeEmailChange",
        "tags": [
          "operators"
        ],
        "summary": "GET /v1/operators/me/email-change",
        "x-stack-oauth-scope": "account:read",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1OperatorsMeEmailChange",
        "tags": [
          "operators"
        ],
        "summary": "POST /v1/operators/me/email-change",
        "x-stack-oauth-scope": "none",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/operators/me/identity-settings": {
      "get": {
        "operationId": "getV1OperatorsMeIdentitySettings",
        "tags": [
          "operators"
        ],
        "summary": "GET /v1/operators/me/identity-settings",
        "x-stack-oauth-scope": "account:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "patch": {
        "operationId": "patchV1OperatorsMeIdentitySettings",
        "tags": [
          "operators"
        ],
        "summary": "PATCH /v1/operators/me/identity-settings",
        "x-stack-oauth-scope": "account:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateIdentitySettingsInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/operators/me/mcp-sessions": {
      "get": {
        "operationId": "getV1OperatorsMeMcpSessions",
        "tags": [
          "operators"
        ],
        "summary": "GET /v1/operators/me/mcp-sessions",
        "x-stack-oauth-scope": "account:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/operators/me/mcp-sessions/{familyId}": {
      "delete": {
        "operationId": "deleteV1OperatorsMeMcpSessionsByFamilyId",
        "tags": [
          "operators"
        ],
        "summary": "DELETE /v1/operators/me/mcp-sessions/:familyId",
        "x-stack-oauth-scope": "account:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "familyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/operators/{operator_id}/jwks.json": {
      "get": {
        "operationId": "getV1OperatorsByOperatorIdJwksJson",
        "tags": [
          "operators"
        ],
        "summary": "GET /v1/operators/:operator_id/jwks.json",
        "x-stack-oauth-scope": "none",
        "security": [],
        "parameters": [
          {
            "name": "operator_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/opt-outs": {
      "get": {
        "operationId": "getV1OptOuts",
        "tags": [
          "opt-outs"
        ],
        "summary": "GET /v1/opt-outs",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "adminOrAgent"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1OptOuts",
        "tags": [
          "opt-outs"
        ],
        "summary": "POST /v1/opt-outs",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "adminOrAgent"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddOptOutInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/opt-outs/{id}": {
      "delete": {
        "operationId": "deleteV1OptOutsById",
        "tags": [
          "opt-outs"
        ],
        "summary": "DELETE /v1/opt-outs/:id",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^aoo_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/partner/accounts": {
      "get": {
        "operationId": "getV1PartnerAccounts",
        "tags": [
          "partner"
        ],
        "summary": "GET /v1/partner/accounts",
        "x-stack-oauth-scope": "partner:read",
        "x-stack-gates": [
          "requirePartner"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "external_ref",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1PartnerAccounts",
        "tags": [
          "partner"
        ],
        "summary": "POST /v1/partner/accounts",
        "x-stack-oauth-scope": "partner:write",
        "x-stack-gates": [
          "requirePartner"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAccountBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/partner/accounts/{account_id}/controls": {
      "put": {
        "operationId": "putV1PartnerAccountsByAccountIdControls",
        "tags": [
          "partner"
        ],
        "summary": "PUT /v1/partner/accounts/:account_id/controls",
        "x-stack-oauth-scope": "partner:write",
        "x-stack-gates": [
          "requireOperatorAdmin",
          "requirePartner"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "account_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerAccountControlsInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/partner/accounts/{account_id}/inbound-webhooks": {
      "get": {
        "operationId": "getV1PartnerAccountsByAccountIdInboundWebhooks",
        "tags": [
          "partner"
        ],
        "summary": "GET /v1/partner/accounts/:account_id/inbound-webhooks",
        "x-stack-oauth-scope": "partner:read",
        "x-stack-gates": [
          "requirePartner"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "account_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1PartnerAccountsByAccountIdInboundWebhooks",
        "tags": [
          "partner"
        ],
        "summary": "POST /v1/partner/accounts/:account_id/inbound-webhooks",
        "x-stack-oauth-scope": "partner:write",
        "x-stack-gates": [
          "requirePartner"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "account_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInboundWebhookInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/partner/accounts/{account_id}/inbound-webhooks/{wh_id}": {
      "delete": {
        "operationId": "deleteV1PartnerAccountsByAccountIdInboundWebhooksByWhId",
        "tags": [
          "partner"
        ],
        "summary": "DELETE /v1/partner/accounts/:account_id/inbound-webhooks/:wh_id",
        "x-stack-oauth-scope": "partner:write",
        "x-stack-gates": [
          "requirePartner"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "account_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "wh_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/partner/accounts/{account_id}/inbound-webhooks/{wh_id}/provider-signing-secret": {
      "put": {
        "operationId": "putV1PartnerAccountsByAccountIdInboundWebhooksByWhIdProviderSigningSecret",
        "tags": [
          "partner"
        ],
        "summary": "PUT /v1/partner/accounts/:account_id/inbound-webhooks/:wh_id/provider-signing-secret",
        "x-stack-oauth-scope": "none",
        "x-stack-gates": [
          "requireOperatorAdmin",
          "requirePartner"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "account_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "wh_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/partner/accounts/{account_id}/inbound-webhooks/{wh_id}/rotate-secret": {
      "post": {
        "operationId": "postV1PartnerAccountsByAccountIdInboundWebhooksByWhIdRotateSecret",
        "tags": [
          "partner"
        ],
        "summary": "POST /v1/partner/accounts/:account_id/inbound-webhooks/:wh_id/rotate-secret",
        "x-stack-oauth-scope": "none",
        "x-stack-gates": [
          "requireOperatorAdmin",
          "requirePartner"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "account_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "wh_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/partner/accounts/{account_id}/invite": {
      "post": {
        "operationId": "postV1PartnerAccountsByAccountIdInvite",
        "tags": [
          "partner"
        ],
        "summary": "POST /v1/partner/accounts/:account_id/invite",
        "x-stack-oauth-scope": "partner:write",
        "x-stack-gates": [
          "requirePartner"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "account_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerAccountInviteInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/partner/accounts/{account_id}/passports/issue": {
      "post": {
        "operationId": "postV1PartnerAccountsByAccountIdPassportsIssue",
        "tags": [
          "partner"
        ],
        "summary": "POST /v1/partner/accounts/:account_id/passports/issue",
        "x-stack-oauth-scope": "partner:write",
        "x-stack-gates": [
          "requirePartner"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "account_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IssuePassportInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/partner/accounts/{account_id}/release": {
      "delete": {
        "operationId": "deleteV1PartnerAccountsByAccountIdRelease",
        "tags": [
          "partner"
        ],
        "summary": "DELETE /v1/partner/accounts/:account_id/release",
        "x-stack-oauth-scope": "partner:write",
        "x-stack-gates": [
          "requirePartner"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "account_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "get": {
        "operationId": "getV1PartnerAccountsByAccountIdRelease",
        "tags": [
          "partner"
        ],
        "summary": "GET /v1/partner/accounts/:account_id/release",
        "x-stack-oauth-scope": "partner:read",
        "x-stack-gates": [
          "requirePartner"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "account_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1PartnerAccountsByAccountIdRelease",
        "tags": [
          "partner"
        ],
        "summary": "POST /v1/partner/accounts/:account_id/release",
        "x-stack-oauth-scope": "partner:write",
        "x-stack-gates": [
          "requirePartner"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "account_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerReleaseInput"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/partner/accounts/{account_id}/rotate-key": {
      "post": {
        "operationId": "postV1PartnerAccountsByAccountIdRotateKey",
        "tags": [
          "partner"
        ],
        "summary": "POST /v1/partner/accounts/:account_id/rotate-key",
        "x-stack-oauth-scope": "none",
        "x-stack-gates": [
          "requireOperatorAdmin",
          "requirePartner"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "account_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/partner/accounts/{id}": {
      "delete": {
        "operationId": "deleteV1PartnerAccountsById",
        "tags": [
          "partner"
        ],
        "summary": "DELETE /v1/partner/accounts/:id",
        "x-stack-oauth-scope": "partner:write",
        "x-stack-gates": [
          "requirePartner"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "get": {
        "operationId": "getV1PartnerAccountsById",
        "tags": [
          "partner"
        ],
        "summary": "GET /v1/partner/accounts/:id",
        "x-stack-oauth-scope": "partner:read",
        "x-stack-gates": [
          "requirePartner"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/partner/releases": {
      "get": {
        "operationId": "getV1PartnerReleases",
        "tags": [
          "partner"
        ],
        "summary": "GET /v1/partner/releases",
        "x-stack-oauth-scope": "partner:read",
        "x-stack-gates": [
          "requirePartner"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/passports/active": {
      "get": {
        "operationId": "getV1PassportsActive",
        "tags": [
          "passports"
        ],
        "summary": "GET /v1/passports/active",
        "x-stack-oauth-scope": "passports:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agent_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "session_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/passports/delegate": {
      "post": {
        "operationId": "postV1PassportsDelegate",
        "tags": [
          "passports"
        ],
        "summary": "POST /v1/passports/delegate",
        "x-stack-oauth-scope": "passports:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DelegatePassportInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/passports/issue": {
      "post": {
        "operationId": "postV1PassportsIssue",
        "tags": [
          "passports"
        ],
        "summary": "POST /v1/passports/issue",
        "x-stack-oauth-scope": "passports:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IssuePassportInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/passports/refresh": {
      "post": {
        "operationId": "postV1PassportsRefresh",
        "tags": [
          "passports"
        ],
        "summary": "POST /v1/passports/refresh",
        "x-stack-oauth-scope": "passports:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshPassportInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/passports/reviews": {
      "get": {
        "operationId": "getV1PassportsReviews",
        "tags": [
          "passports"
        ],
        "summary": "GET /v1/passports/reviews",
        "x-stack-oauth-scope": "reviews:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/passports/reviews/{checkoutId}/decide": {
      "post": {
        "operationId": "postV1PassportsReviewsByCheckoutIdDecide",
        "tags": [
          "passports"
        ],
        "summary": "POST /v1/passports/reviews/:checkoutId/decide",
        "x-stack-oauth-scope": "reviews:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "checkoutId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewDecisionInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/passports/revoke": {
      "post": {
        "operationId": "postV1PassportsRevoke",
        "tags": [
          "passports"
        ],
        "summary": "POST /v1/passports/revoke",
        "x-stack-oauth-scope": "passports:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RevokePassportBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/passports/revoke-agent/{agentId}": {
      "post": {
        "operationId": "postV1PassportsRevokeAgentByAgentId",
        "tags": [
          "passports"
        ],
        "summary": "POST /v1/passports/revoke-agent/:agentId",
        "x-stack-oauth-scope": "passports:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RevokeReasonBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/passports/revoke-all": {
      "post": {
        "operationId": "postV1PassportsRevokeAll",
        "tags": [
          "passports"
        ],
        "summary": "POST /v1/passports/revoke-all",
        "x-stack-oauth-scope": "passports:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RevokeAllInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/passports/revoke-session/{sessionId}": {
      "post": {
        "operationId": "postV1PassportsRevokeSessionBySessionId",
        "tags": [
          "passports"
        ],
        "summary": "POST /v1/passports/revoke-session/:sessionId",
        "x-stack-oauth-scope": "passports:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "sessionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RevokeReasonBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/passports/verify": {
      "post": {
        "operationId": "postV1PassportsVerify",
        "tags": [
          "passports"
        ],
        "summary": "POST /v1/passports/verify",
        "x-stack-oauth-scope": "passports:read",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyPassportInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/passports/{jti}/checkout": {
      "post": {
        "operationId": "postV1PassportsByJtiCheckout",
        "tags": [
          "passports"
        ],
        "summary": "POST /v1/passports/:jti/checkout",
        "x-stack-oauth-scope": "passports:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "jti",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckoutInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/passports/{jti}/checkpoint": {
      "post": {
        "operationId": "postV1PassportsByJtiCheckpoint",
        "tags": [
          "passports"
        ],
        "summary": "POST /v1/passports/:jti/checkpoint",
        "x-stack-oauth-scope": "passports:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "jti",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckpointInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/passports/{jti}/report": {
      "get": {
        "operationId": "getV1PassportsByJtiReport",
        "tags": [
          "passports"
        ],
        "summary": "GET /v1/passports/:jti/report",
        "x-stack-oauth-scope": "reviews:read",
        "x-stack-gates": [
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "jti",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/payouts/earnings": {
      "get": {
        "operationId": "getV1PayoutsEarnings",
        "tags": [
          "payouts"
        ],
        "summary": "GET /v1/payouts/earnings",
        "x-stack-oauth-scope": "payouts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/payouts/history": {
      "get": {
        "operationId": "getV1PayoutsHistory",
        "tags": [
          "payouts"
        ],
        "summary": "GET /v1/payouts/history",
        "x-stack-oauth-scope": "payouts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/payouts/stripe-connect/onboard": {
      "post": {
        "operationId": "postV1PayoutsStripeConnectOnboard",
        "tags": [
          "payouts"
        ],
        "summary": "POST /v1/payouts/stripe-connect/onboard",
        "x-stack-oauth-scope": "payouts:write",
        "x-stack-gates": [
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/payouts/stripe-connect/status": {
      "get": {
        "operationId": "getV1PayoutsStripeConnectStatus",
        "tags": [
          "payouts"
        ],
        "summary": "GET /v1/payouts/stripe-connect/status",
        "x-stack-oauth-scope": "payouts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/pii/config": {
      "delete": {
        "operationId": "deleteV1PiiConfig",
        "tags": [
          "pii"
        ],
        "summary": "DELETE /v1/pii/config",
        "x-stack-oauth-scope": "pii:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "get": {
        "operationId": "getV1PiiConfig",
        "tags": [
          "pii"
        ],
        "summary": "GET /v1/pii/config",
        "x-stack-oauth-scope": "pii:read",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "putV1PiiConfig",
        "tags": [
          "pii"
        ],
        "summary": "PUT /v1/pii/config",
        "x-stack-oauth-scope": "pii:write",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireControlsGate"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PiiConfigUpsertInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/post/address": {
      "delete": {
        "operationId": "deleteV1PostAddress",
        "tags": [
          "post"
        ],
        "summary": "DELETE /v1/post/address",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "get": {
        "operationId": "getV1PostAddress",
        "tags": [
          "post"
        ],
        "summary": "GET /v1/post/address",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1PostAddress",
        "tags": [
          "post"
        ],
        "summary": "POST /v1/post/address",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/post/address/connect": {
      "post": {
        "operationId": "postV1PostAddressConnect",
        "tags": [
          "post"
        ],
        "summary": "POST /v1/post/address/connect",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConnectPostalAddressInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/post/address/pause": {
      "post": {
        "operationId": "postV1PostAddressPause",
        "tags": [
          "post"
        ],
        "summary": "POST /v1/post/address/pause",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/post/address/refresh": {
      "post": {
        "operationId": "postV1PostAddressRefresh",
        "tags": [
          "post"
        ],
        "summary": "POST /v1/post/address/refresh",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/post/address/resume": {
      "post": {
        "operationId": "postV1PostAddressResume",
        "tags": [
          "post"
        ],
        "summary": "POST /v1/post/address/resume",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/post/items": {
      "get": {
        "operationId": "getV1PostItems",
        "tags": [
          "post"
        ],
        "summary": "GET /v1/post/items",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 20
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 256
            }
          },
          {
            "name": "routing",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "routed",
                "pending",
                "unassigned"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/post/items/{itemId}/assign": {
      "post": {
        "operationId": "postV1PostItemsByItemIdAssign",
        "tags": [
          "post"
        ],
        "summary": "POST /v1/post/items/:itemId/assign",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^pit_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssignPostalItemInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/proxy": {
      "post": {
        "operationId": "postV1Proxy",
        "tags": [
          "proxy"
        ],
        "summary": "POST /v1/proxy",
        "x-stack-oauth-scope": "proxy:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProxyRequestInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/proxy/operations/authorize-replacement": {
      "post": {
        "operationId": "postV1ProxyOperationsAuthorizeReplacement",
        "tags": [
          "proxy"
        ],
        "summary": "POST /v1/proxy/operations/authorize-replacement",
        "x-stack-oauth-scope": "none",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReplacementAuthorizationInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/proxy/operations/get": {
      "post": {
        "operationId": "postV1ProxyOperationsGet",
        "tags": [
          "proxy"
        ],
        "summary": "POST /v1/proxy/operations/get",
        "x-stack-oauth-scope": "proxy:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProxyOperationLookupInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/proxy/operations/reconcile": {
      "post": {
        "operationId": "postV1ProxyOperationsReconcile",
        "tags": [
          "proxy"
        ],
        "summary": "POST /v1/proxy/operations/reconcile",
        "x-stack-oauth-scope": "none",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HumanOperationLookupInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/proxy/usage": {
      "get": {
        "operationId": "getV1ProxyUsage",
        "tags": [
          "proxy"
        ],
        "summary": "GET /v1/proxy/usage",
        "x-stack-oauth-scope": "proxy:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/scan": {
      "post": {
        "operationId": "postV1Scan",
        "tags": [
          "scan"
        ],
        "summary": "POST /v1/scan",
        "x-stack-oauth-scope": "scan:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScanRequestInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/scan/usage": {
      "get": {
        "operationId": "getV1ScanUsage",
        "tags": [
          "scan"
        ],
        "summary": "GET /v1/scan/usage",
        "x-stack-oauth-scope": "scan:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/security-events": {
      "get": {
        "operationId": "getV1SecurityEvents",
        "tags": [
          "security-events"
        ],
        "summary": "GET /v1/security-events",
        "x-stack-oauth-scope": "security-events:read",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/security-events/{id}": {
      "get": {
        "operationId": "getV1SecurityEventsById",
        "tags": [
          "security-events"
        ],
        "summary": "GET /v1/security-events/:id",
        "x-stack-oauth-scope": "security-events:read",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/security-events/{id}/resolve": {
      "post": {
        "operationId": "postV1SecurityEventsByIdResolve",
        "tags": [
          "security-events"
        ],
        "summary": "POST /v1/security-events/:id/resolve",
        "x-stack-oauth-scope": "security-events:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/services": {
      "get": {
        "operationId": "getV1Services",
        "tags": [
          "services"
        ],
        "summary": "GET /v1/services",
        "x-stack-oauth-scope": "services:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/services/agents/{agentId}/revoke": {
      "delete": {
        "operationId": "deleteV1ServicesAgentsByAgentIdRevoke",
        "tags": [
          "services"
        ],
        "summary": "DELETE /v1/services/agents/:agentId/revoke",
        "x-stack-oauth-scope": "services:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/services/configurations": {
      "get": {
        "operationId": "getV1ServicesConfigurations",
        "tags": [
          "services"
        ],
        "summary": "GET /v1/services/configurations",
        "x-stack-oauth-scope": "services:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/services/configurations/{provider}": {
      "delete": {
        "operationId": "deleteV1ServicesConfigurationsByProvider",
        "tags": [
          "services"
        ],
        "summary": "DELETE /v1/services/configurations/:provider",
        "x-stack-oauth-scope": "services:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/services/configure": {
      "post": {
        "operationId": "postV1ServicesConfigure",
        "tags": [
          "services"
        ],
        "summary": "POST /v1/services/configure",
        "x-stack-oauth-scope": "services:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigureBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/services/connect": {
      "post": {
        "operationId": "postV1ServicesConnect",
        "tags": [
          "services"
        ],
        "summary": "POST /v1/services/connect",
        "x-stack-oauth-scope": "services:connect",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConnectServiceBody"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/services/connect-application": {
      "post": {
        "operationId": "postV1ServicesConnectApplication",
        "tags": [
          "services"
        ],
        "summary": "POST /v1/services/connect-application",
        "x-stack-oauth-scope": "services:connect",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConnectApplicationBody"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/services/connect-links": {
      "get": {
        "operationId": "getV1ServicesConnectLinks",
        "tags": [
          "services"
        ],
        "summary": "GET /v1/services/connect-links",
        "x-stack-oauth-scope": "services:read",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectLinkList"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1ServicesConnectLinks",
        "tags": [
          "services"
        ],
        "summary": "POST /v1/services/connect-links",
        "x-stack-oauth-scope": "services:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateConnectLinkInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/services/connect-links/{id}": {
      "get": {
        "operationId": "getV1ServicesConnectLinksById",
        "tags": [
          "services"
        ],
        "summary": "GET /v1/services/connect-links/:id",
        "x-stack-oauth-scope": "services:read",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/services/connected": {
      "get": {
        "operationId": "getV1ServicesConnected",
        "tags": [
          "services"
        ],
        "summary": "GET /v1/services/connected",
        "x-stack-oauth-scope": "services:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/services/custom": {
      "post": {
        "operationId": "postV1ServicesCustom",
        "tags": [
          "services"
        ],
        "summary": "POST /v1/services/custom",
        "x-stack-oauth-scope": "services:connect",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/ConnectCustomServiceInput"
                  },
                  {
                    "$ref": "#/components/schemas/MemberIdBody"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/services/grant": {
      "post": {
        "operationId": "postV1ServicesGrant",
        "tags": [
          "services"
        ],
        "summary": "POST /v1/services/grant",
        "x-stack-oauth-scope": "services:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GrantAgentAccessInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/services/templates": {
      "get": {
        "operationId": "getV1ServicesTemplates",
        "tags": [
          "services"
        ],
        "summary": "GET /v1/services/templates",
        "x-stack-oauth-scope": "services:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/services/{id}": {
      "patch": {
        "operationId": "patchV1ServicesById",
        "tags": [
          "services"
        ],
        "summary": "PATCH /v1/services/:id",
        "x-stack-oauth-scope": "services:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RenameConnectionBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/services/{id}/allowed-hosts": {
      "post": {
        "operationId": "postV1ServicesByIdAllowedHosts",
        "tags": [
          "services"
        ],
        "summary": "POST /v1/services/:id/allowed-hosts",
        "x-stack-oauth-scope": "services:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AllowedHostsBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/services/{id}/disconnect": {
      "delete": {
        "operationId": "deleteV1ServicesByIdDisconnect",
        "tags": [
          "services"
        ],
        "summary": "DELETE /v1/services/:id/disconnect",
        "x-stack-oauth-scope": "services:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/services/{id}/proxy-toggle": {
      "post": {
        "operationId": "postV1ServicesByIdProxyToggle",
        "tags": [
          "services"
        ],
        "summary": "POST /v1/services/:id/proxy-toggle",
        "x-stack-oauth-scope": "services:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProxyToggleBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/services/{id}/requirements": {
      "get": {
        "operationId": "getV1ServicesByIdRequirements",
        "tags": [
          "services"
        ],
        "summary": "GET /v1/services/:id/requirements",
        "x-stack-oauth-scope": "services:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1ServicesByIdRequirements",
        "tags": [
          "services"
        ],
        "summary": "POST /v1/services/:id/requirements",
        "x-stack-oauth-scope": "services:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetServiceRequirementInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "putV1ServicesByIdRequirements",
        "tags": [
          "services"
        ],
        "summary": "PUT /v1/services/:id/requirements",
        "x-stack-oauth-scope": "services:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReplaceServiceRequirementBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/services/{id}/requirements/{reqId}": {
      "delete": {
        "operationId": "deleteV1ServicesByIdRequirementsByReqId",
        "tags": [
          "services"
        ],
        "summary": "DELETE /v1/services/:id/requirements/:reqId",
        "x-stack-oauth-scope": "services:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "reqId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/services/{id}/verify": {
      "post": {
        "operationId": "postV1ServicesByIdVerify",
        "tags": [
          "services"
        ],
        "summary": "POST /v1/services/:id/verify",
        "x-stack-oauth-scope": "services:write",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/skill-requests": {
      "get": {
        "operationId": "getV1SkillRequests",
        "tags": [
          "skill-requests"
        ],
        "summary": "GET /v1/skill-requests",
        "x-stack-oauth-scope": "skills:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1SkillRequests",
        "tags": [
          "skill-requests"
        ],
        "summary": "POST /v1/skill-requests",
        "x-stack-oauth-scope": "skills:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostSkillRequestInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/skill-requests/{id}": {
      "get": {
        "operationId": "getV1SkillRequestsById",
        "tags": [
          "skill-requests"
        ],
        "summary": "GET /v1/skill-requests/:id",
        "x-stack-oauth-scope": "skills:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "patch": {
        "operationId": "patchV1SkillRequestsById",
        "tags": [
          "skill-requests"
        ],
        "summary": "PATCH /v1/skill-requests/:id",
        "x-stack-oauth-scope": "skills:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSkillRequestBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/skill-requests/{id}/matches": {
      "get": {
        "operationId": "getV1SkillRequestsByIdMatches",
        "tags": [
          "skill-requests"
        ],
        "summary": "GET /v1/skill-requests/:id/matches",
        "x-stack-oauth-scope": "skills:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/skill-requests/{id}/suggest": {
      "get": {
        "operationId": "getV1SkillRequestsByIdSuggest",
        "tags": [
          "skill-requests"
        ],
        "summary": "GET /v1/skill-requests/:id/suggest",
        "x-stack-oauth-scope": "skills:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/skills": {
      "get": {
        "operationId": "getV1Skills",
        "tags": [
          "skills"
        ],
        "summary": "GET /v1/skills",
        "x-stack-oauth-scope": "skills:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "active",
                "suspended",
                "unlisted",
                "pending_review"
              ]
            }
          },
          {
            "name": "trust_level",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "L0",
                "L1",
                "L2"
              ]
            }
          },
          {
            "name": "tags",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1Skills",
        "tags": [
          "skills"
        ],
        "summary": "POST /v1/skills",
        "x-stack-oauth-scope": "skills:publish",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublishSkillInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/skills/favorites": {
      "get": {
        "operationId": "getV1SkillsFavorites",
        "tags": [
          "skills"
        ],
        "summary": "GET /v1/skills/favorites",
        "x-stack-oauth-scope": "skills:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/skills/invocations/mine": {
      "get": {
        "operationId": "getV1SkillsInvocationsMine",
        "tags": [
          "skills"
        ],
        "summary": "GET /v1/skills/invocations/mine",
        "x-stack-oauth-scope": "skills:invoke",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/skills/invocations/pending": {
      "get": {
        "operationId": "getV1SkillsInvocationsPending",
        "tags": [
          "skills"
        ],
        "summary": "GET /v1/skills/invocations/pending",
        "x-stack-oauth-scope": "skills:invoke",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "skill_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/skills/invocations/{id}": {
      "get": {
        "operationId": "getV1SkillsInvocationsById",
        "tags": [
          "skills"
        ],
        "summary": "GET /v1/skills/invocations/:id",
        "x-stack-oauth-scope": "skills:invoke",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/skills/invocations/{id}/claim": {
      "post": {
        "operationId": "postV1SkillsInvocationsByIdClaim",
        "tags": [
          "skills"
        ],
        "summary": "POST /v1/skills/invocations/:id/claim",
        "x-stack-oauth-scope": "skills:invoke",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/skills/invocations/{id}/complete": {
      "post": {
        "operationId": "postV1SkillsInvocationsByIdComplete",
        "tags": [
          "skills"
        ],
        "summary": "POST /v1/skills/invocations/:id/complete",
        "x-stack-oauth-scope": "skills:invoke",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/skills/invocations/{id}/fail": {
      "post": {
        "operationId": "postV1SkillsInvocationsByIdFail",
        "tags": [
          "skills"
        ],
        "summary": "POST /v1/skills/invocations/:id/fail",
        "x-stack-oauth-scope": "skills:invoke",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/skills/mine": {
      "get": {
        "operationId": "getV1SkillsMine",
        "tags": [
          "skills"
        ],
        "summary": "GET /v1/skills/mine",
        "x-stack-oauth-scope": "skills:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/skills/{id}": {
      "get": {
        "operationId": "getV1SkillsById",
        "tags": [
          "skills"
        ],
        "summary": "GET /v1/skills/:id",
        "x-stack-oauth-scope": "skills:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "patch": {
        "operationId": "patchV1SkillsById",
        "tags": [
          "skills"
        ],
        "summary": "PATCH /v1/skills/:id",
        "x-stack-oauth-scope": "skills:publish",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSkillInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/skills/{id}/activate": {
      "post": {
        "operationId": "postV1SkillsByIdActivate",
        "tags": [
          "skills"
        ],
        "summary": "POST /v1/skills/:id/activate",
        "x-stack-oauth-scope": "skills:publish",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/skills/{id}/check-trust": {
      "post": {
        "operationId": "postV1SkillsByIdCheckTrust",
        "tags": [
          "skills"
        ],
        "summary": "POST /v1/skills/:id/check-trust",
        "x-stack-oauth-scope": "skills:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/skills/{id}/favorite": {
      "delete": {
        "operationId": "deleteV1SkillsByIdFavorite",
        "tags": [
          "skills"
        ],
        "summary": "DELETE /v1/skills/:id/favorite",
        "x-stack-oauth-scope": "skills:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1SkillsByIdFavorite",
        "tags": [
          "skills"
        ],
        "summary": "POST /v1/skills/:id/favorite",
        "x-stack-oauth-scope": "skills:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/skills/{id}/invoke": {
      "post": {
        "operationId": "postV1SkillsByIdInvoke",
        "tags": [
          "skills"
        ],
        "summary": "POST /v1/skills/:id/invoke",
        "x-stack-oauth-scope": "skills:invoke",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvokeBody"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/skills/{id}/rate": {
      "post": {
        "operationId": "postV1SkillsByIdRate",
        "tags": [
          "skills"
        ],
        "summary": "POST /v1/skills/:id/rate",
        "x-stack-oauth-scope": "skills:write",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RateSkillInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/skills/{id}/ratings": {
      "get": {
        "operationId": "getV1SkillsByIdRatings",
        "tags": [
          "skills"
        ],
        "summary": "GET /v1/skills/:id/ratings",
        "x-stack-oauth-scope": "skills:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/skills/{id}/suspend": {
      "post": {
        "operationId": "postV1SkillsByIdSuspend",
        "tags": [
          "skills"
        ],
        "summary": "POST /v1/skills/:id/suspend",
        "x-stack-oauth-scope": "skills:publish",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/team/invites/accept": {
      "post": {
        "operationId": "postV1TeamInvitesAccept",
        "tags": [
          "team"
        ],
        "summary": "POST /v1/team/invites/accept",
        "x-stack-oauth-scope": "none",
        "security": [],
        "x-stack-body": "not described",
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/team/members": {
      "get": {
        "operationId": "getV1TeamMembers",
        "tags": [
          "team"
        ],
        "summary": "GET /v1/team/members",
        "x-stack-oauth-scope": "team:read",
        "x-stack-gates": [
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1TeamMembers",
        "tags": [
          "team"
        ],
        "summary": "POST /v1/team/members",
        "x-stack-oauth-scope": "team:write",
        "x-stack-gates": [
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InviteMemberInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/team/members/{id}": {
      "delete": {
        "operationId": "deleteV1TeamMembersById",
        "tags": [
          "team"
        ],
        "summary": "DELETE /v1/team/members/:id",
        "x-stack-oauth-scope": "team:write",
        "x-stack-gates": [
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "patch": {
        "operationId": "patchV1TeamMembersById",
        "tags": [
          "team"
        ],
        "summary": "PATCH /v1/team/members/:id",
        "x-stack-oauth-scope": "team:write",
        "x-stack-gates": [
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateMemberInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/team/sso-bindings/clear": {
      "post": {
        "operationId": "postV1TeamSsoBindingsClear",
        "tags": [
          "team"
        ],
        "summary": "POST /v1/team/sso-bindings/clear",
        "x-stack-oauth-scope": "team:write",
        "x-stack-gates": [
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClearSsoBindingsInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/trust": {
      "get": {
        "operationId": "getV1Trust",
        "tags": [
          "trust"
        ],
        "summary": "GET /v1/trust",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "putV1Trust",
        "tags": [
          "trust"
        ],
        "summary": "PUT /v1/trust",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetTrustInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/usage": {
      "get": {
        "operationId": "getV1Usage",
        "tags": [
          "usage"
        ],
        "summary": "GET /v1/usage",
        "x-stack-oauth-scope": "billing:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "since",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "number"
              ]
            }
          },
          {
            "name": "until",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "number"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/wake/rules": {
      "get": {
        "operationId": "getV1WakeRules",
        "tags": [
          "wake"
        ],
        "summary": "GET /v1/wake/rules",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "postV1WakeRules",
        "tags": [
          "wake"
        ],
        "summary": "POST /v1/wake/rules",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetWakeRuleInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/wake/rules/{ruleId}": {
      "delete": {
        "operationId": "deleteV1WakeRulesByRuleId",
        "tags": [
          "wake"
        ],
        "summary": "DELETE /v1/wake/rules/:ruleId",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "ruleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^wkr_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "putV1WakeRulesByRuleId",
        "tags": [
          "wake"
        ],
        "summary": "PUT /v1/wake/rules/:ruleId",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "ruleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^wkr_[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetWakeRuleInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/wake/settings": {
      "get": {
        "operationId": "getV1WakeSettings",
        "tags": [
          "wake"
        ],
        "summary": "GET /v1/wake/settings",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "putV1WakeSettings",
        "tags": [
          "wake"
        ],
        "summary": "PUT /v1/wake/settings",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetWakeSettingsInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/website/uploads/{token}": {
      "put": {
        "operationId": "putV1WebsiteUploadsByToken",
        "tags": [
          "website"
        ],
        "summary": "PUT /v1/website/uploads/:token",
        "x-stack-oauth-scope": "none",
        "security": [],
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 20,
              "maxLength": 200,
              "pattern": "^[\\w-]+$"
            }
          }
        ],
        "x-stack-body": "not described",
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/websites/suspend-all": {
      "post": {
        "operationId": "postV1WebsitesSuspendAll",
        "tags": [
          "websites"
        ],
        "summary": "POST /v1/websites/suspend-all",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SiteSuspendInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/workload/passport": {
      "post": {
        "operationId": "postV1WorkloadPassport",
        "tags": [
          "workload"
        ],
        "summary": "POST /v1/workload/passport",
        "x-stack-oauth-scope": "none",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkloadPassportBody"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/workload/wit": {
      "post": {
        "operationId": "postV1WorkloadWit",
        "tags": [
          "workload"
        ],
        "summary": "POST /v1/workload/wit",
        "x-stack-oauth-scope": "none",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkloadPassportBody"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/workspace/settings": {
      "get": {
        "operationId": "getV1WorkspaceSettings",
        "tags": [
          "workspace"
        ],
        "summary": "GET /v1/workspace/settings",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "putV1WorkspaceSettings",
        "tags": [
          "workspace"
        ],
        "summary": "PUT /v1/workspace/settings",
        "x-stack-oauth-scope": "accounts:manage",
        "x-stack-gates": [
          "denyAgentContexts",
          "requireOperatorAdmin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetWorkspaceSettingsInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/workspaces": {
      "get": {
        "operationId": "getV1Workspaces",
        "tags": [
          "workspaces"
        ],
        "summary": "GET /v1/workspaces",
        "x-stack-oauth-scope": "accounts:read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success. The body is not described by this document."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "An API key (`sk_live_...`), an OAuth access token, a dashboard session or an agent credential, sent as `Authorization: Bearer <token>`."
      }
    },
    "responses": {
      "Error": {
        "description": "Any other error. The body is the error envelope.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorEnvelope"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "No credential, or one the server does not accept: `error.code` is `INVALID_API_KEY`.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorEnvelope"
            }
          }
        }
      },
      "ValidationError": {
        "description": "The request failed validation: `error.code` is `VALIDATION_ERROR` (or `INVALID_JSON`, `EMPTY_BODY`, `INVALID_REQUEST`, `UNSUPPORTED_MEDIA_TYPE`).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorEnvelope"
            }
          }
        }
      }
    },
    "schemas": {
      "AccountCallVoiceInput": {
        "type": "object",
        "properties": {
          "tts_provider": {
            "type": "string",
            "enum": [
              "Google",
              "Amazon",
              "ElevenLabs"
            ]
          },
          "voice": {
            "type": "string",
            "minLength": 1
          },
          "language": {
            "type": "string",
            "pattern": "^[A-Za-z]{2,8}(?:-[A-Za-z0-9]{1,8})*$"
          },
          "voicemail_greeting": {
            "type": "string",
            "minLength": 1
          }
        },
        "additionalProperties": false
      },
      "AddAccountPieceInput": {
        "type": "object",
        "properties": {
          "piece": {
            "type": "string",
            "enum": [
              "inbox",
              "phone",
              "browser",
              "card",
              "wallet",
              "making",
              "workspace"
            ]
          },
          "inbox": {
            "type": "object",
            "properties": {
              "domain": {
                "type": "string",
                "minLength": 4,
                "maxLength": 253,
                "pattern": "^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"
              }
            },
            "required": [
              "domain"
            ],
            "additionalProperties": false
          },
          "phone": {
            "type": "object",
            "properties": {
              "country": {
                "type": "string",
                "enum": [
                  "US",
                  "CA"
                ]
              },
              "area_code": {
                "type": "string",
                "pattern": "^\\d{3}$"
              },
              "number_type": {
                "type": "string",
                "enum": [
                  "local",
                  "toll_free"
                ]
              }
            },
            "required": [
              "country"
            ],
            "additionalProperties": false
          },
          "wallet": {
            "type": "object",
            "properties": {
              "agent_public_key": {
                "type": "string",
                "pattern": "^[A-Za-z0-9+/]{86,90}={0,2}$"
              },
              "per_payment_cap_usdc": {
                "type": "number",
                "minimum": 0.000001,
                "maximum": 9007199254.740992
              },
              "daily_cap_usdc": {
                "type": "number",
                "minimum": 0.000001,
                "maximum": 9007199254.740992
              }
            },
            "required": [
              "agent_public_key"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "piece"
        ],
        "additionalProperties": false
      },
      "AddAuthorityReceiverKeyInput": {
        "type": "object",
        "properties": {
          "key_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "use": {
            "type": "string",
            "enum": [
              "request_signing",
              "response_encryption",
              "receipt_signing",
              "transport_mtls"
            ]
          },
          "algorithm": {
            "type": "string",
            "enum": [
              "EdDSA",
              "ES256",
              "ECDH-ES+A256KW"
            ]
          },
          "public_jwk": {
            "type": "object",
            "additionalProperties": {
              "anyOf": [
                {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                {
                  "type": "array",
                  "items": {}
                },
                {
                  "type": "object",
                  "additionalProperties": {}
                }
              ]
            }
          },
          "valid_from": {
            "type": "string",
            "format": "date-time"
          },
          "valid_until": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "key_id",
          "use",
          "algorithm",
          "public_jwk",
          "valid_from"
        ],
        "additionalProperties": false
      },
      "AddBlockedCallerInput": {
        "type": "object",
        "properties": {
          "number": {
            "type": "string",
            "pattern": "^\\+[1-9]\\d{7,14}$"
          }
        },
        "required": [
          "number"
        ],
        "additionalProperties": false
      },
      "AddDeliveryMethodInput": {
        "type": "object",
        "properties": {
          "channel_type": {
            "type": "string",
            "enum": [
              "email",
              "sms",
              "webhook"
            ]
          },
          "destination": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "channel_type",
          "destination"
        ],
        "additionalProperties": false
      },
      "AddOptOutInput": {
        "type": "object",
        "properties": {
          "number": {
            "type": "string",
            "pattern": "^\\+[1-9]\\d{7,14}$"
          }
        },
        "required": [
          "number"
        ],
        "additionalProperties": false
      },
      "AddRecipientsBody": {
        "type": "object",
        "properties": {
          "recipients": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1024
            },
            "minItems": 1,
            "maxItems": 1000
          },
          "recipient_pins": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "path": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128
                },
                "op": {
                  "type": "string",
                  "enum": [
                    "eq",
                    "in"
                  ]
                },
                "value": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 1024
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 1024
                      },
                      "minItems": 1,
                      "maxItems": 2000
                    }
                  ]
                }
              },
              "required": [
                "path",
                "op",
                "value"
              ],
              "additionalProperties": false
            },
            "minItems": 1,
            "maxItems": 64
          },
          "reply_to_message": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "additionalProperties": false
      },
      "AddSiteHostnameInput": {
        "type": "object",
        "properties": {
          "hostname": {
            "type": "string",
            "minLength": 4,
            "maxLength": 253,
            "pattern": "^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"
          }
        },
        "required": [
          "hostname"
        ],
        "additionalProperties": false
      },
      "AgentCallPressKeysInput": {
        "type": "object",
        "properties": {
          "digits": {
            "type": "string",
            "pattern": "^[0-9*#w]+$"
          }
        },
        "required": [
          "digits"
        ],
        "additionalProperties": false
      },
      "AgentCallSayInput": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "minLength": 1
          },
          "wait_seconds": {
            "type": "integer",
            "minimum": 0,
            "maximum": 60
          }
        },
        "additionalProperties": false
      },
      "AgentCallSetVoiceInput": {
        "type": "object",
        "properties": {
          "voice": {
            "type": "object",
            "properties": {
              "tts_provider": {
                "type": "string",
                "enum": [
                  "Google",
                  "Amazon",
                  "ElevenLabs"
                ]
              },
              "voice": {
                "type": "string",
                "minLength": 1
              },
              "language": {
                "type": "string",
                "pattern": "^[A-Za-z]{2,8}(?:-[A-Za-z0-9]{1,8})*$"
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "voice"
        ],
        "additionalProperties": false
      },
      "AgentEnrollInput": {
        "type": "object",
        "properties": {
          "public_key": {
            "type": "object",
            "properties": {
              "kty": {
                "type": "string",
                "const": "OKP"
              },
              "crv": {
                "type": "string",
                "const": "Ed25519"
              },
              "x": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{43}$"
              }
            },
            "required": [
              "kty",
              "crv",
              "x"
            ],
            "additionalProperties": true
          },
          "challenge_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "signed_challenge": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          }
        },
        "required": [
          "public_key",
          "challenge_id",
          "signed_challenge"
        ],
        "additionalProperties": true
      },
      "AgentMessageEnvelope": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "thread_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "subject": {
            "type": [
              "string",
              "null"
            ]
          },
          "body_text": {
            "type": "string"
          },
          "attachments": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "filename": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "content_type": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "size_bytes": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "file_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "not_saved": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "filename",
                "content_type",
                "size_bytes"
              ],
              "additionalProperties": false
            }
          },
          "truncated": {
            "type": "boolean"
          },
          "details": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          }
        },
        "required": [
          "from",
          "to",
          "cc",
          "subject",
          "body_text",
          "attachments",
          "truncated",
          "details"
        ],
        "additionalProperties": false
      },
      "AgentMessageSendView": {
        "type": "object",
        "properties": {
          "message_id": {
            "type": "string"
          },
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "sms",
              "telegram"
            ]
          },
          "provider_message_id": {
            "type": "string"
          },
          "thread_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "attachments": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "filename": {
                  "type": "string"
                },
                "content_type": {
                  "type": "string"
                },
                "size_bytes": {
                  "type": "integer",
                  "minimum": 0
                },
                "file_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "filename",
                "content_type",
                "size_bytes",
                "file_id"
              ],
              "additionalProperties": false
            }
          },
          "dropped": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "value": {
                  "type": "string"
                },
                "reason": {
                  "type": "string",
                  "enum": [
                    "not_an_address"
                  ]
                }
              },
              "required": [
                "value",
                "reason"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "message_id",
          "channel",
          "provider_message_id",
          "thread_id",
          "status"
        ],
        "additionalProperties": false
      },
      "AgentMessageView": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "account_id": {
            "type": "string"
          },
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "sms",
              "voicemail",
              "call",
              "telegram",
              "post",
              "meeting"
            ]
          },
          "direction": {
            "type": "string",
            "enum": [
              "inbound",
              "outbound"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "delivered",
              "withheld"
            ]
          },
          "received_at": {
            "type": "string"
          },
          "read_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "sender_tags": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "new_sender",
                    "new_domain",
                    "lookalike_domain",
                    "name_matches_known_contact",
                    "payment_details",
                    "organizer_not_sender",
                    "unverified_sender"
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "sender_resembles": {
            "type": [
              "string",
              "null"
            ]
          },
          "content": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AgentMessageEnvelope"
              },
              {
                "type": "null"
              }
            ]
          },
          "withheld": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "verdict": {
                    "type": "string",
                    "enum": [
                      "flagged",
                      "blocked"
                    ]
                  },
                  "security_event_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "reason": {
                    "type": "string"
                  }
                },
                "required": [
                  "verdict",
                  "security_event_id",
                  "reason"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "flag": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "severity": {
                    "type": "string",
                    "enum": [
                      "warning",
                      "critical"
                    ]
                  },
                  "security_event_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "reason": {
                    "type": "string"
                  }
                },
                "required": [
                  "severity",
                  "security_event_id",
                  "reason"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "account_id",
          "channel",
          "direction",
          "status",
          "received_at",
          "read_at",
          "sender_tags",
          "sender_resembles",
          "content",
          "withheld",
          "flag"
        ],
        "additionalProperties": false
      },
      "AgentSetupInput": {
        "type": "object",
        "properties": {
          "agent": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64,
                "pattern": "^[a-z0-9_][a-z0-9_-]*[a-z0-9_]$"
              },
              "description": {
                "type": "string",
                "maxLength": 256
              },
              "profile": {
                "type": "string",
                "enum": [
                  "proxied-llm-bot"
                ]
              },
              "accountability_mode": {
                "type": "string",
                "enum": [
                  "enforced",
                  "logged",
                  "standard"
                ]
              },
              "on_warning": {
                "type": "string",
                "enum": [
                  "notify",
                  "block"
                ]
              },
              "on_critical": {
                "type": "string",
                "enum": [
                  "notify",
                  "block"
                ]
              },
              "credential_access": {
                "type": "string",
                "enum": [
                  "direct",
                  "proxy_preferred",
                  "proxy_only"
                ]
              },
              "icon_url": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 100000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "skill_access_mode": {
                "type": "string",
                "enum": [
                  "none",
                  "custom",
                  "all"
                ]
              },
              "allowed_skills": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "key_mode": {
                "type": "string",
                "enum": [
                  "stack_managed",
                  "customer_managed",
                  "co_signed"
                ]
              },
              "twin_policy": {
                "type": "string",
                "enum": [
                  "always",
                  "high_stakes_only",
                  "never",
                  "per_mission"
                ]
              },
              "twin_llm_model": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/@+-]*$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_synthetic": {
                "type": "boolean"
              },
              "eval_traffic": {
                "type": "boolean"
              },
              "llm_inject_system_prompt": {
                "type": "boolean"
              },
              "llm_redact_pii": {
                "type": "boolean"
              }
            },
            "required": [
              "name"
            ],
            "additionalProperties": false
          },
          "grants": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "service_connection_id": {
                  "type": "string"
                },
                "scopes": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "minItems": 1
                },
                "constraints": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "path": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "op": {
                            "type": "string",
                            "enum": [
                              "eq",
                              "not_eq",
                              "in",
                              "not_in",
                              "matches",
                              "starts_with",
                              "lt",
                              "lte",
                              "gt",
                              "gte",
                              "exists",
                              "not_exists"
                            ]
                          },
                          "value": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 1024
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "maxLength": 1024
                                },
                                "maxItems": 256
                              }
                            ]
                          }
                        },
                        "required": [
                          "path",
                          "op",
                          "value"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "path": {
                            "type": "string",
                            "const": "any_of"
                          },
                          "op": {
                            "type": "string",
                            "const": "any_of"
                          },
                          "value": {
                            "type": "array",
                            "items": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "path": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  },
                                  "op": {
                                    "type": "string",
                                    "enum": [
                                      "eq",
                                      "not_eq",
                                      "in",
                                      "not_in",
                                      "matches",
                                      "starts_with",
                                      "lt",
                                      "lte",
                                      "gt",
                                      "gte",
                                      "exists",
                                      "not_exists"
                                    ]
                                  },
                                  "value": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "maxLength": 1024
                                      },
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "maxLength": 1024
                                        },
                                        "maxItems": 256
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "path",
                                  "op",
                                  "value"
                                ],
                                "additionalProperties": false
                              },
                              "minItems": 1,
                              "maxItems": 32
                            },
                            "minItems": 2,
                            "maxItems": 16
                          }
                        },
                        "required": [
                          "path",
                          "op",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "maxItems": 32
                },
                "intents": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "params": {
                        "type": "object",
                        "additionalProperties": {},
                        "default": {}
                      }
                    },
                    "required": [
                      "name"
                    ],
                    "additionalProperties": false
                  },
                  "maxItems": 32
                },
                "alternatives": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "intents": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "params": {
                              "type": "object",
                              "additionalProperties": {},
                              "default": {}
                            }
                          },
                          "required": [
                            "name"
                          ],
                          "additionalProperties": false
                        },
                        "maxItems": 32
                      },
                      "constraints": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "path": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "op": {
                              "type": "string",
                              "enum": [
                                "eq",
                                "not_eq",
                                "in",
                                "not_in",
                                "matches",
                                "starts_with",
                                "lt",
                                "lte",
                                "gt",
                                "gte",
                                "exists",
                                "not_exists"
                              ]
                            },
                            "value": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 1024
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "maxLength": 1024
                                  },
                                  "maxItems": 256
                                }
                              ]
                            }
                          },
                          "required": [
                            "path",
                            "op",
                            "value"
                          ],
                          "additionalProperties": false
                        },
                        "maxItems": 32
                      }
                    },
                    "additionalProperties": false
                  },
                  "minItems": 1,
                  "maxItems": 16
                },
                "allow_data_from": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "maxItems": 32
                }
              },
              "required": [
                "service_connection_id",
                "scopes"
              ],
              "additionalProperties": false
            },
            "default": []
          },
          "allowed_hosts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "service_connection_id": {
                  "type": "string",
                  "minLength": 1
                },
                "allowed_hosts": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 253
                  },
                  "minItems": 1
                }
              },
              "required": [
                "service_connection_id",
                "allowed_hosts"
              ],
              "additionalProperties": false
            },
            "default": []
          }
        },
        "required": [
          "agent"
        ],
        "additionalProperties": false
      },
      "AllowedHostsBody": {
        "type": "object",
        "properties": {
          "allowed_hosts": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "allowed_hosts"
        ],
        "additionalProperties": false
      },
      "AnswerAgentCallInput": {
        "type": "object",
        "properties": {
          "max_seconds": {
            "type": "integer",
            "minimum": 30,
            "maximum": 14400,
            "default": 14400
          },
          "voice": {
            "type": "object",
            "properties": {
              "tts_provider": {
                "type": "string",
                "enum": [
                  "Google",
                  "Amazon",
                  "ElevenLabs"
                ]
              },
              "voice": {
                "type": "string",
                "minLength": 1
              },
              "language": {
                "type": "string",
                "pattern": "^[A-Za-z]{2,8}(?:-[A-Za-z0-9]{1,8})*$"
              }
            },
            "additionalProperties": false
          },
          "greeting": {
            "type": "string"
          },
          "wait_seconds": {
            "type": "integer",
            "minimum": 0,
            "maximum": 60
          },
          "on_behalf_of": {
            "type": "string",
            "pattern": "^[\\p{L}\\p{N}][\\p{L}\\p{N} .,&'-]{0,59}$"
          },
          "brief": {
            "type": "string",
            "minLength": 1
          }
        },
        "additionalProperties": false
      },
      "AssignPostalItemInput": {
        "type": "object",
        "properties": {
          "account_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          }
        },
        "required": [
          "account_id"
        ],
        "additionalProperties": false
      },
      "AttachAuthorityProofInput": {
        "type": "object",
        "properties": {
          "subject_principal_id": {
            "type": "string",
            "pattern": "^prn_[\\w-]+$"
          },
          "represented_principal_id": {
            "type": "string",
            "pattern": "^prn_[\\w-]+$"
          },
          "profile_version_id": {
            "type": "string",
            "pattern": "^apv_[\\w-]+$"
          },
          "proof_kind": {
            "type": "string",
            "enum": [
              "identity",
              "capacity",
              "mandate",
              "consent",
              "signature",
              "domain",
              "workload"
            ]
          },
          "issuer_identifier": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024
          },
          "schema_uri": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024
          },
          "schema_version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "native_format": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "native_evidence": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000000
          }
        },
        "required": [
          "subject_principal_id",
          "profile_version_id",
          "proof_kind",
          "issuer_identifier",
          "schema_uri",
          "schema_version",
          "native_format",
          "native_evidence"
        ],
        "additionalProperties": false
      },
      "AuthorityApprovalDecisionInput": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "pattern": "^apr_[\\w-]+$"
          },
          "decision": {
            "type": "string",
            "enum": [
              "approve",
              "reject"
            ]
          },
          "request_hash": {
            "type": "string",
            "pattern": "^sha256:[0-9a-f]{64}$"
          },
          "signed_decision": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000000
          }
        },
        "required": [
          "request_id",
          "decision",
          "request_hash",
          "signed_decision"
        ],
        "additionalProperties": false
      },
      "AuthoritySetupCompleteBody": {
        "type": "object",
        "properties": {
          "session_ref": {
            "type": "string",
            "minLength": 43,
            "maxLength": 43,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "browser_binding": {
            "type": "string",
            "minLength": 43,
            "maxLength": 43,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "method": {
            "type": "string",
            "enum": [
              "company_sign_in",
              "stripe_identity"
            ]
          }
        },
        "required": [
          "session_ref",
          "browser_binding",
          "method"
        ],
        "additionalProperties": false
      },
      "AuthoritySetupStartBody": {
        "type": "object",
        "properties": {
          "browser_binding": {
            "type": "string",
            "minLength": 43,
            "maxLength": 43,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "method": {
            "type": "string",
            "enum": [
              "company_sign_in",
              "stripe_identity"
            ]
          }
        },
        "required": [
          "browser_binding",
          "method"
        ],
        "additionalProperties": false
      },
      "AuthorityStatusCheckInput": {
        "type": "object",
        "properties": {
          "binding_id": {
            "type": "string",
            "pattern": "^abn_[\\w-]+$"
          },
          "binding_claim_id": {
            "type": "string",
            "pattern": "^pc_[\\w-]+$"
          },
          "agent_id": {
            "type": "string",
            "pattern": "^(ag|agt)_[\\w-]+$"
          },
          "agent_key_thumbprint": {
            "type": "string",
            "pattern": "^sha256:[0-9a-f]{64}$"
          },
          "mission_id": {
            "type": "string",
            "pattern": "^ms_[\\w-]+$"
          },
          "action_uri": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024,
            "pattern": "^[A-Za-z][A-Za-z0-9._:/-]*$"
          },
          "receiver_request_id": {
            "type": "string",
            "minLength": 22,
            "maxLength": 256,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "resource_ref": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "request_hash": {
            "type": "string",
            "pattern": "^sha256:[0-9a-f]{64}$"
          },
          "normalized_request": {
            "type": "object",
            "additionalProperties": {
              "anyOf": [
                {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                {
                  "type": "array",
                  "items": {}
                },
                {
                  "type": "object",
                  "additionalProperties": {}
                }
              ]
            }
          }
        },
        "required": [
          "binding_id",
          "binding_claim_id",
          "agent_id",
          "agent_key_thumbprint",
          "action_uri",
          "receiver_request_id",
          "request_hash",
          "normalized_request"
        ],
        "additionalProperties": false
      },
      "BrainAddInput": {
        "type": "object",
        "properties": {
          "file_id": {
            "type": "string",
            "pattern": "^drv_[\\w-]{8,64}$"
          },
          "file_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^drv_[\\w-]{8,64}$"
            },
            "minItems": 1
          },
          "name_prefix": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "additionalProperties": false
      },
      "BrainNoteInput": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10485760
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "required": [
          "text"
        ],
        "additionalProperties": false
      },
      "BrainRemoveInput": {
        "type": "object",
        "properties": {
          "file_id": {
            "type": "string",
            "pattern": "^drv_[\\w-]{8,64}$"
          },
          "file_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^drv_[\\w-]{8,64}$"
            },
            "minItems": 1
          },
          "name_prefix": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "additionalProperties": false
      },
      "BrainSearchInput": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000
          }
        },
        "required": [
          "query"
        ],
        "additionalProperties": false
      },
      "BrowserActInput": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "const": "click"
              },
              "target": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "role": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 40,
                        "description": "ARIA role, for example link, button, textbox, checkbox, heading, tab, menuitem"
                      },
                      "name": {
                        "type": "string",
                        "maxLength": 200,
                        "description": "The element's accessible name (its text for a link or button). A case-insensitive part of it matches unless exact is true"
                      },
                      "exact": {
                        "type": "boolean",
                        "description": "true: the whole name must be equal, in the same case"
                      }
                    },
                    "required": [
                      "role"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "text": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200,
                        "description": "Text shown on the page. A case-insensitive part of the element text matches unless exact is true"
                      },
                      "exact": {
                        "type": "boolean",
                        "description": "true: the whole text must be equal, in the same case"
                      }
                    },
                    "required": [
                      "text"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200,
                        "description": "A form field's label text. A case-insensitive part of it matches unless exact is true"
                      },
                      "exact": {
                        "type": "boolean",
                        "description": "true: the whole label must be equal, in the same case"
                      }
                    },
                    "required": [
                      "label"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "selector": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 500,
                        "description": "A CSS selector, for example a, #pay or form input[name=email]"
                      }
                    },
                    "required": [
                      "selector"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "required": [
              "action",
              "target"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "const": "type"
              },
              "target": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "role": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 40,
                        "description": "ARIA role, for example link, button, textbox, checkbox, heading, tab, menuitem"
                      },
                      "name": {
                        "type": "string",
                        "maxLength": 200,
                        "description": "The element's accessible name (its text for a link or button). A case-insensitive part of it matches unless exact is true"
                      },
                      "exact": {
                        "type": "boolean",
                        "description": "true: the whole name must be equal, in the same case"
                      }
                    },
                    "required": [
                      "role"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "text": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200,
                        "description": "Text shown on the page. A case-insensitive part of the element text matches unless exact is true"
                      },
                      "exact": {
                        "type": "boolean",
                        "description": "true: the whole text must be equal, in the same case"
                      }
                    },
                    "required": [
                      "text"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200,
                        "description": "A form field's label text. A case-insensitive part of it matches unless exact is true"
                      },
                      "exact": {
                        "type": "boolean",
                        "description": "true: the whole label must be equal, in the same case"
                      }
                    },
                    "required": [
                      "label"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "selector": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 500,
                        "description": "A CSS selector, for example a, #pay or form input[name=email]"
                      }
                    },
                    "required": [
                      "selector"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "value": {
                "type": "string",
                "maxLength": 10000
              },
              "sensitive": {
                "type": "boolean"
              }
            },
            "required": [
              "action",
              "target",
              "value"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "const": "select"
              },
              "target": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "role": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 40,
                        "description": "ARIA role, for example link, button, textbox, checkbox, heading, tab, menuitem"
                      },
                      "name": {
                        "type": "string",
                        "maxLength": 200,
                        "description": "The element's accessible name (its text for a link or button). A case-insensitive part of it matches unless exact is true"
                      },
                      "exact": {
                        "type": "boolean",
                        "description": "true: the whole name must be equal, in the same case"
                      }
                    },
                    "required": [
                      "role"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "text": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200,
                        "description": "Text shown on the page. A case-insensitive part of the element text matches unless exact is true"
                      },
                      "exact": {
                        "type": "boolean",
                        "description": "true: the whole text must be equal, in the same case"
                      }
                    },
                    "required": [
                      "text"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200,
                        "description": "A form field's label text. A case-insensitive part of it matches unless exact is true"
                      },
                      "exact": {
                        "type": "boolean",
                        "description": "true: the whole label must be equal, in the same case"
                      }
                    },
                    "required": [
                      "label"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "selector": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 500,
                        "description": "A CSS selector, for example a, #pay or form input[name=email]"
                      }
                    },
                    "required": [
                      "selector"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "value": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 500
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 500
                    },
                    "minItems": 1,
                    "maxItems": 20
                  }
                ]
              }
            },
            "required": [
              "action",
              "target",
              "value"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "const": "press"
              },
              "key": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50
              },
              "target": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "role": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 40,
                        "description": "ARIA role, for example link, button, textbox, checkbox, heading, tab, menuitem"
                      },
                      "name": {
                        "type": "string",
                        "maxLength": 200,
                        "description": "The element's accessible name (its text for a link or button). A case-insensitive part of it matches unless exact is true"
                      },
                      "exact": {
                        "type": "boolean",
                        "description": "true: the whole name must be equal, in the same case"
                      }
                    },
                    "required": [
                      "role"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "text": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200,
                        "description": "Text shown on the page. A case-insensitive part of the element text matches unless exact is true"
                      },
                      "exact": {
                        "type": "boolean",
                        "description": "true: the whole text must be equal, in the same case"
                      }
                    },
                    "required": [
                      "text"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200,
                        "description": "A form field's label text. A case-insensitive part of it matches unless exact is true"
                      },
                      "exact": {
                        "type": "boolean",
                        "description": "true: the whole label must be equal, in the same case"
                      }
                    },
                    "required": [
                      "label"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "selector": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 500,
                        "description": "A CSS selector, for example a, #pay or form input[name=email]"
                      }
                    },
                    "required": [
                      "selector"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "required": [
              "action",
              "key"
            ],
            "additionalProperties": false
          }
        ]
      },
      "BrowserCheckoutInput": {
        "type": "object",
        "properties": {
          "merchant_origin": {
            "type": "string",
            "minLength": 8,
            "maxLength": 255
          },
          "amount_minor": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "currency": {
            "type": "string",
            "pattern": "^[A-Za-z]{3}$"
          }
        },
        "required": [
          "merchant_origin",
          "amount_minor",
          "currency"
        ],
        "additionalProperties": false
      },
      "BrowserNavigateInput": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          }
        },
        "required": [
          "url"
        ],
        "additionalProperties": false
      },
      "CancelCalendarEventInput": {
        "type": "object",
        "properties": {
          "occurrence": {
            "type": "string",
            "minLength": 1
          },
          "scope": {
            "type": "string",
            "enum": [
              "series",
              "occurrence",
              "following"
            ]
          }
        },
        "additionalProperties": false
      },
      "ChatMeetingInput": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "text"
        ],
        "additionalProperties": false
      },
      "CheckoutInput": {
        "type": "object",
        "properties": {
          "services_used": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "tool_calls": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "service": {
                  "type": "string"
                },
                "method": {
                  "type": "string"
                },
                "target": {
                  "type": "string"
                }
              },
              "required": [
                "service",
                "method"
              ],
              "additionalProperties": false
            }
          },
          "actions_count": {
            "type": "integer",
            "minimum": 0
          },
          "delegated_to": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "summary": {
            "type": "string",
            "maxLength": 2000
          }
        },
        "required": [
          "services_used",
          "actions_count"
        ],
        "additionalProperties": false
      },
      "CheckpointInput": {
        "type": "object",
        "properties": {
          "services_used": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "tool_calls": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "service": {
                  "type": "string"
                },
                "method": {
                  "type": "string"
                },
                "target": {
                  "type": "string"
                }
              },
              "required": [
                "service",
                "method"
              ],
              "additionalProperties": false
            }
          },
          "actions_count": {
            "type": "integer",
            "minimum": 0
          },
          "delegated_to": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "summary": {
            "type": "string",
            "maxLength": 1000
          }
        },
        "required": [
          "services_used",
          "actions_count"
        ],
        "additionalProperties": false
      },
      "ClearSsoBindingsInput": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "member_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            },
            "required": [
              "member_id"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "issuer": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048
              }
            },
            "required": [
              "issuer"
            ],
            "additionalProperties": false
          }
        ]
      },
      "ClientMetadata": {
        "type": "object",
        "additionalProperties": {}
      },
      "CollectBody": {
        "type": "object",
        "properties": {
          "agent_id": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "agent_id"
        ],
        "additionalProperties": false
      },
      "CompleteBody": {
        "type": "object",
        "properties": {
          "output": {
            "type": "object",
            "additionalProperties": {}
          }
        },
        "additionalProperties": false
      },
      "CompleteVerificationInput": {
        "type": "object",
        "properties": {
          "provider_key": {
            "type": "string"
          },
          "session_ref": {
            "type": "string"
          }
        },
        "required": [
          "provider_key",
          "session_ref"
        ],
        "additionalProperties": false
      },
      "ConfigureBody": {
        "type": "object",
        "properties": {
          "service_id": {
            "type": "string",
            "minLength": 1
          },
          "provider": {
            "type": "string",
            "minLength": 1
          },
          "mode": {
            "type": "string",
            "enum": [
              "shared",
              "per_member"
            ]
          }
        },
        "required": [
          "service_id",
          "provider",
          "mode"
        ],
        "additionalProperties": false
      },
      "ConnectApplicationBody": {
        "type": "object",
        "properties": {
          "service_id": {
            "type": "string",
            "minLength": 1
          },
          "credential": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "minLength": 1
            },
            "propertyNames": {
              "minLength": 1
            }
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "allowed_hosts": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 253
            }
          },
          "mcp_url": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "connection_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 40,
            "pattern": "^[A-Za-z0-9 -]+$"
          }
        },
        "required": [
          "service_id",
          "credential"
        ],
        "additionalProperties": false
      },
      "ConnectCustomServiceInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "description": {
            "type": "string",
            "maxLength": 500
          },
          "credential": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "object",
                "additionalProperties": {
                  "type": "string",
                  "minLength": 1
                }
              }
            ]
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "template": {
            "type": "string"
          },
          "oauth_auth_url": {
            "type": "string",
            "format": "uri"
          },
          "oauth_token_url": {
            "type": "string",
            "format": "uri"
          },
          "allowed_hosts": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 253
            }
          },
          "mcp_url": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "connection_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 40,
            "pattern": "^[A-Za-z0-9 -]+$"
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false
      },
      "ConnectLinkList": {
        "type": "object",
        "properties": {
          "links": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "link_id": {
                  "type": "string"
                },
                "provider": {
                  "type": "string"
                },
                "service_id": {
                  "type": "string"
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "oauth",
                    "key"
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "connected",
                    "expired"
                  ]
                },
                "connection_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "expires_at": {
                  "type": "string"
                },
                "created_at": {
                  "type": "string"
                },
                "completed_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "link_id",
                "provider",
                "service_id",
                "method",
                "status",
                "connection_id",
                "expires_at",
                "created_at",
                "completed_at"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "links"
        ],
        "additionalProperties": false
      },
      "ConnectPostalAddressInput": {
        "type": "object",
        "properties": {
          "api_key": {
            "type": "string",
            "minLength": 20,
            "maxLength": 200,
            "pattern": "^[\\x21-\\x7E]+$"
          },
          "webhook_secret": {
            "type": "string",
            "minLength": 16,
            "maxLength": 200,
            "pattern": "^[\\x21-\\x7E]+$"
          }
        },
        "required": [
          "api_key"
        ],
        "additionalProperties": false
      },
      "ConnectServiceBody": {
        "type": "object",
        "properties": {
          "service_id": {
            "type": "string"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "minItems": 1
          },
          "redirect_uri": {
            "type": "string",
            "format": "uri"
          },
          "allowed_hosts": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 253
            }
          },
          "mcp_url": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "connection_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 40,
            "pattern": "^[A-Za-z0-9 -]+$"
          },
          "oauth_token": {
            "type": "string"
          },
          "member_id": {}
        },
        "required": [
          "service_id",
          "scopes",
          "oauth_token"
        ],
        "additionalProperties": false
      },
      "ConnectTelegramBotInput": {
        "type": "object",
        "properties": {
          "bot_token": {
            "type": "string",
            "pattern": "^\\d{6,12}:[A-Za-z0-9_-]{30,50}$"
          }
        },
        "required": [
          "bot_token"
        ],
        "additionalProperties": false
      },
      "CreateAccountBody": {
        "type": "object",
        "properties": {
          "external_ref": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "controls": {
            "type": "boolean"
          },
          "tier": {}
        },
        "required": [
          "external_ref"
        ],
        "additionalProperties": false
      },
      "CreateAuthorityApprovalRequestsInput": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "phase": {
                "type": "string",
                "const": "activation"
              }
            },
            "required": [
              "phase"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "phase": {
                "type": "string",
                "enum": [
                  "action",
                  "presentation"
                ]
              },
              "authority_use_id": {
                "type": "string",
                "pattern": "^aus_[\\w-]+$"
              }
            },
            "required": [
              "phase",
              "authority_use_id"
            ],
            "additionalProperties": false
          }
        ]
      },
      "CreateAuthorityBindingInput": {
        "type": "object",
        "properties": {
          "principal_id": {
            "type": "string",
            "pattern": "^prn_[\\w-]+$"
          },
          "agent_id": {
            "type": "string",
            "pattern": "^(ag|agt)_[\\w-]+$"
          },
          "agent_key_thumbprint": {
            "type": "string",
            "pattern": "^sha256:[0-9a-f]{64}$"
          },
          "receiver_id": {
            "type": "string",
            "pattern": "^rcv_[\\w-]+$"
          },
          "receiver_profile_version_id": {
            "type": "string",
            "pattern": "^apv_[\\w-]+$"
          },
          "domain_profile_version_id": {
            "type": "string",
            "pattern": "^apv_[\\w-]+$"
          },
          "mission_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^ms_[\\w-]+$"
            },
            "maxItems": 64,
            "default": []
          },
          "purpose_code": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$"
          },
          "purpose_statement": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "scope": {
            "type": "object",
            "properties": {
              "actions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "action_uri": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 1024,
                      "pattern": "^[A-Za-z][A-Za-z0-9._:/-]*$"
                    },
                    "resource_refs": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 512
                      },
                      "maxItems": 256,
                      "default": []
                    },
                    "constraints": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "path": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "op": {
                            "type": "string",
                            "enum": [
                              "eq",
                              "not_eq",
                              "in",
                              "not_in",
                              "lt",
                              "lte",
                              "gt",
                              "gte",
                              "exists",
                              "not_exists"
                            ]
                          },
                          "value": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 2048
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "array",
                                "items": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "maxLength": 2048
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean"
                                    }
                                  ]
                                },
                                "maxItems": 256
                              }
                            ]
                          },
                          "value_ref": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 512
                          }
                        },
                        "required": [
                          "path",
                          "op"
                        ],
                        "additionalProperties": false
                      },
                      "maxItems": 64,
                      "default": []
                    }
                  },
                  "required": [
                    "action_uri"
                  ],
                  "additionalProperties": false
                },
                "minItems": 1,
                "maxItems": 128
              },
              "limits": {
                "type": "object",
                "additionalProperties": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    {
                      "type": "array",
                      "items": {}
                    },
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                },
                "default": {}
              }
            },
            "required": [
              "actions"
            ],
            "additionalProperties": false
          },
          "approval_policy": {
            "type": "object",
            "additionalProperties": {
              "anyOf": [
                {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                {
                  "type": "array",
                  "items": {}
                },
                {
                  "type": "object",
                  "additionalProperties": {}
                }
              ]
            }
          },
          "disclosure_policy": {
            "type": "object",
            "properties": {
              "rules": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "fact_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 512
                    },
                    "mode": {
                      "type": "string",
                      "enum": [
                        "predicate",
                        "pairwise",
                        "exact_private",
                        "issuer_evidence",
                        "status_only"
                      ]
                    },
                    "profile_version_id": {
                      "type": "string",
                      "pattern": "^apv_[\\w-]+$"
                    },
                    "required": {
                      "type": "boolean",
                      "default": true
                    }
                  },
                  "required": [
                    "fact_id",
                    "mode"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 128,
                "default": []
              },
              "principal_confirmation_required": {
                "type": "boolean",
                "default": false
              },
              "max_retention_seconds": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null
              },
              "live_status_required": {
                "type": "boolean",
                "default": true
              }
            },
            "additionalProperties": false
          },
          "delegation_policy": {
            "type": "object",
            "properties": {
              "allow_further_delegation": {
                "type": "boolean"
              },
              "max_delegation_depth": {
                "type": "integer",
                "minimum": 0,
                "maximum": 4
              }
            },
            "required": [
              "allow_further_delegation",
              "max_delegation_depth"
            ],
            "additionalProperties": false
          },
          "valid_from": {
            "type": "string",
            "format": "date-time"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "proofs": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "proof_id": {
                  "type": "string",
                  "pattern": "^prf_[\\w-]+$"
                },
                "proof_version": {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "principal_identity",
                    "authoriser_identity",
                    "authoriser_capacity",
                    "mandate",
                    "consent",
                    "domain"
                  ]
                },
                "authoriser_principal_id": {
                  "type": "string",
                  "pattern": "^prn_[\\w-]+$"
                },
                "group_key": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$"
                },
                "weight": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "default": 1
                },
                "required": {
                  "type": "boolean",
                  "default": true
                },
                "ordinal": {
                  "type": "integer",
                  "minimum": 0,
                  "default": 0
                }
              },
              "required": [
                "proof_id",
                "proof_version",
                "role",
                "group_key"
              ],
              "additionalProperties": false
            },
            "minItems": 1,
            "maxItems": 128
          }
        },
        "required": [
          "principal_id",
          "agent_id",
          "receiver_id",
          "receiver_profile_version_id",
          "purpose_code",
          "scope",
          "approval_policy",
          "disclosure_policy",
          "delegation_policy",
          "valid_from",
          "expires_at",
          "proofs"
        ],
        "additionalProperties": false
      },
      "CreateAuthorityPrincipalInput": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "person",
              "organisation"
            ]
          },
          "label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "required": [
          "kind"
        ],
        "additionalProperties": false
      },
      "CreateAuthorityProfileVersionInput": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "profile_kind": {
                "type": "string",
                "const": "proof"
              },
              "profile_key": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "version": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "schema_uri": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1024
              },
              "schema_version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "adapter_key": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "adapter_version": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "config_json": {
                "type": "object",
                "properties": {
                  "proof_kind": {
                    "type": "string",
                    "enum": [
                      "identity",
                      "capacity",
                      "mandate",
                      "consent",
                      "signature",
                      "domain",
                      "workload"
                    ]
                  },
                  "schema": {
                    "type": "object",
                    "properties": {
                      "uri": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 1024
                      },
                      "version": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      }
                    },
                    "required": [
                      "uri",
                      "version"
                    ],
                    "additionalProperties": false
                  },
                  "adapter": {
                    "type": "object",
                    "properties": {
                      "key": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "version": {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      }
                    },
                    "required": [
                      "key",
                      "version"
                    ],
                    "additionalProperties": false
                  },
                  "accepted_native_formats": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    },
                    "minItems": 1,
                    "maxItems": 64
                  },
                  "validation": {
                    "type": "object",
                    "properties": {
                      "accepted_issuer_ids": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 1024
                        },
                        "maxItems": 256
                      },
                      "accepted_signature_algs": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "maxItems": 32
                      },
                      "signature_required": {
                        "type": "boolean"
                      },
                      "required_claim_paths": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 512
                        },
                        "maxItems": 256
                      },
                      "subject_binding": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          {
                            "type": "array",
                            "items": {}
                          },
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "status_method": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          {
                            "type": "array",
                            "items": {}
                          },
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      }
                    },
                    "required": [
                      "accepted_issuer_ids",
                      "accepted_signature_algs",
                      "signature_required",
                      "required_claim_paths",
                      "subject_binding",
                      "status_method"
                    ],
                    "additionalProperties": false
                  },
                  "assurance_mapping": {
                    "type": "object",
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        {
                          "type": "array",
                          "items": {}
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "freshness": {
                    "type": "object",
                    "properties": {
                      "maximum_age_seconds": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "live_status_required": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "maximum_age_seconds",
                      "live_status_required"
                    ],
                    "additionalProperties": false
                  },
                  "disclosable_facts": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "fact_id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 512
                        },
                        "native_path": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 512
                        },
                        "allowed_modes": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "predicate",
                              "pairwise",
                              "exact_private",
                              "issuer_evidence",
                              "status_only"
                            ]
                          },
                          "minItems": 1,
                          "maxItems": 5
                        }
                      },
                      "required": [
                        "fact_id",
                        "native_path",
                        "allowed_modes"
                      ],
                      "additionalProperties": false
                    },
                    "maxItems": 256
                  }
                },
                "required": [
                  "proof_kind",
                  "schema",
                  "adapter",
                  "accepted_native_formats",
                  "validation",
                  "assurance_mapping",
                  "freshness",
                  "disclosable_facts"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "profile_kind",
              "profile_key",
              "version",
              "schema_uri",
              "schema_version",
              "adapter_key",
              "adapter_version",
              "config_json"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "profile_kind": {
                "type": "string",
                "const": "domain"
              },
              "profile_key": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "version": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "schema_uri": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1024
              },
              "schema_version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "adapter_key": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "adapter_version": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "config_json": {
                "type": "object",
                "properties": {
                  "domain": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "actions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "action_uri": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 1024,
                          "pattern": "^[A-Za-z][A-Za-z0-9._:/-]*$"
                        },
                        "resource_types": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "maxItems": 256
                        },
                        "normalized_request_schema": {
                          "type": "object",
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              {
                                "type": "array",
                                "items": {}
                              },
                              {
                                "type": "object",
                                "additionalProperties": {}
                              }
                            ]
                          }
                        },
                        "constraint_paths": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 512
                          },
                          "maxItems": 256
                        }
                      },
                      "required": [
                        "action_uri",
                        "resource_types",
                        "normalized_request_schema",
                        "constraint_paths"
                      ],
                      "additionalProperties": false
                    },
                    "minItems": 1,
                    "maxItems": 256
                  },
                  "approval_templates": {
                    "type": "object",
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        {
                          "type": "array",
                          "items": {}
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "disclosure_templates": {
                    "type": "object",
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        {
                          "type": "array",
                          "items": {}
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "receipt_requirements": {
                    "type": "object",
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        {
                          "type": "array",
                          "items": {}
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "domain",
                  "actions",
                  "approval_templates",
                  "disclosure_templates",
                  "receipt_requirements"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "profile_kind",
              "profile_key",
              "version",
              "schema_uri",
              "schema_version",
              "adapter_key",
              "adapter_version",
              "config_json"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "profile_kind": {
                "type": "string",
                "const": "receiver"
              },
              "profile_key": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "version": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "receiver_id": {
                "type": "string",
                "pattern": "^rcv_[\\w-]+$"
              },
              "schema_uri": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1024
              },
              "schema_version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "adapter_key": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "adapter_version": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "config_json": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "receiver_id": {
                        "type": "string",
                        "pattern": "^rcv_[\\w-]+$"
                      },
                      "protocol": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "version": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          }
                        },
                        "required": [
                          "key",
                          "version"
                        ],
                        "additionalProperties": false
                      },
                      "audience": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 1024
                      },
                      "request_authentication": {
                        "type": "object",
                        "properties": {
                          "method": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "signing_key_ids": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "minItems": 1,
                            "maxItems": 64
                          },
                          "allowed_algs": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "EdDSA",
                                "ES256"
                              ]
                            },
                            "minItems": 1,
                            "maxItems": 2
                          },
                          "maximum_age_seconds": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 120
                          }
                        },
                        "required": [
                          "method",
                          "signing_key_ids",
                          "allowed_algs",
                          "maximum_age_seconds"
                        ],
                        "additionalProperties": false
                      },
                      "delivery": {
                        "type": "object",
                        "properties": {
                          "endpoint": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https:\\/\\/"
                          },
                          "mode": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "encryption_key_ids": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "minItems": 1,
                            "maxItems": 64
                          },
                          "allowed_key_management_algs": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "const": "ECDH-ES+A256KW"
                            },
                            "minItems": 1,
                            "maxItems": 1
                          },
                          "allowed_content_encryption_algs": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "const": "A256GCM"
                            },
                            "minItems": 1,
                            "maxItems": 1
                          }
                        },
                        "required": [
                          "endpoint",
                          "mode",
                          "encryption_key_ids",
                          "allowed_key_management_algs",
                          "allowed_content_encryption_algs"
                        ],
                        "additionalProperties": false
                      },
                      "accepted_proofs": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "proof_kind": {
                              "type": "string",
                              "enum": [
                                "identity",
                                "capacity",
                                "mandate",
                                "consent",
                                "signature",
                                "domain",
                                "workload"
                              ]
                            },
                            "profile_version_ids": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^apv_[\\w-]+$"
                              },
                              "minItems": 1,
                              "maxItems": 64
                            },
                            "issuer_ids": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 1024
                              },
                              "maxItems": 256
                            },
                            "minimum_assurance_uri": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 1024
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "maximum_age_seconds": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "live_status_required": {
                              "type": "boolean"
                            },
                            "evidence_modes": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "predicate",
                                  "pairwise",
                                  "exact_private",
                                  "issuer_evidence",
                                  "status_only"
                                ]
                              },
                              "minItems": 1,
                              "maxItems": 5
                            }
                          },
                          "required": [
                            "proof_kind",
                            "profile_version_ids",
                            "issuer_ids",
                            "minimum_assurance_uri",
                            "maximum_age_seconds",
                            "live_status_required",
                            "evidence_modes"
                          ],
                          "additionalProperties": false
                        },
                        "maxItems": 128
                      },
                      "required_facts": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "fact_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 512
                            },
                            "allowed_modes": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "predicate",
                                  "pairwise",
                                  "exact_private",
                                  "issuer_evidence",
                                  "status_only"
                                ]
                              },
                              "minItems": 1,
                              "maxItems": 5
                            },
                            "purpose": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 1024
                            },
                            "lawful_basis": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 512
                            },
                            "retention_rule": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                {
                                  "type": "array",
                                  "items": {}
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                }
                              ]
                            }
                          },
                          "required": [
                            "fact_id",
                            "allowed_modes",
                            "purpose",
                            "lawful_basis",
                            "retention_rule"
                          ],
                          "additionalProperties": false
                        },
                        "maxItems": 256
                      },
                      "approval_policy": {
                        "type": "object",
                        "additionalProperties": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            {
                              "type": "array",
                              "items": {}
                            },
                            {
                              "type": "object",
                              "additionalProperties": {}
                            }
                          ]
                        }
                      },
                      "receipt": {
                        "type": "object",
                        "properties": {
                          "required": {
                            "type": "boolean"
                          },
                          "signing_key_ids": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "maxItems": 64
                          },
                          "allowed_algs": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "EdDSA",
                                "ES256"
                              ]
                            },
                            "maxItems": 2
                          }
                        },
                        "required": [
                          "required",
                          "signing_key_ids",
                          "allowed_algs"
                        ],
                        "additionalProperties": false
                      },
                      "live_status_required": {
                        "type": "boolean",
                        "default": true
                      }
                    },
                    "required": [
                      "receiver_id",
                      "protocol",
                      "audience",
                      "request_authentication",
                      "delivery",
                      "accepted_proofs",
                      "required_facts",
                      "approval_policy",
                      "receipt"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "receiver_id": {
                        "type": "string",
                        "pattern": "^rcv_[\\w-]+$"
                      },
                      "protocol": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "const": "stack.proxy_bridge"
                          },
                          "version": {
                            "type": "string",
                            "const": "1"
                          }
                        },
                        "required": [
                          "key",
                          "version"
                        ],
                        "additionalProperties": false
                      },
                      "audience": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 1024
                      },
                      "service_connection_id": {
                        "type": "string",
                        "pattern": "^scon_[\\w-]+$"
                      },
                      "approval_policy": {
                        "type": "object",
                        "additionalProperties": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            {
                              "type": "array",
                              "items": {}
                            },
                            {
                              "type": "object",
                              "additionalProperties": {}
                            }
                          ]
                        }
                      },
                      "live_status_required": {
                        "type": "boolean",
                        "const": true
                      }
                    },
                    "required": [
                      "receiver_id",
                      "protocol",
                      "audience",
                      "service_connection_id",
                      "approval_policy",
                      "live_status_required"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "receiver_id": {
                        "type": "string",
                        "pattern": "^rcv_[\\w-]+$"
                      },
                      "protocol": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "const": "stack.internal_runtime"
                          },
                          "version": {
                            "type": "string",
                            "const": "1"
                          }
                        },
                        "required": [
                          "key",
                          "version"
                        ],
                        "additionalProperties": false
                      },
                      "audience": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 1024
                      },
                      "canonical_identifier": {
                        "type": "string",
                        "pattern": "^stack:(skill|agent|dropoff):[A-Za-z0-9_-]+$"
                      },
                      "approval_policy": {
                        "type": "object",
                        "additionalProperties": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            {
                              "type": "array",
                              "items": {}
                            },
                            {
                              "type": "object",
                              "additionalProperties": {}
                            }
                          ]
                        }
                      },
                      "live_status_required": {
                        "type": "boolean",
                        "const": true
                      }
                    },
                    "required": [
                      "receiver_id",
                      "protocol",
                      "audience",
                      "canonical_identifier",
                      "approval_policy",
                      "live_status_required"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "required": [
              "profile_kind",
              "profile_key",
              "version",
              "receiver_id",
              "schema_uri",
              "schema_version",
              "adapter_key",
              "adapter_version",
              "config_json"
            ],
            "additionalProperties": false
          }
        ]
      },
      "CreateAuthorityProofCollectionSessionInput": {
        "type": "object",
        "properties": {
          "subject_principal_id": {
            "type": "string",
            "pattern": "^prn_[\\w-]+$"
          },
          "represented_principal_id": {
            "type": "string",
            "pattern": "^prn_[\\w-]+$"
          },
          "profile_version_id": {
            "type": "string",
            "pattern": "^apv_[\\w-]+$"
          },
          "issuer_identifier": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024
          },
          "native_format": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          }
        },
        "required": [
          "subject_principal_id",
          "profile_version_id",
          "issuer_identifier",
          "native_format"
        ],
        "additionalProperties": false
      },
      "CreateAuthorityReceiverInput": {
        "type": "object",
        "properties": {
          "mode": {
            "type": "string",
            "enum": [
              "native",
              "proxy_bridge",
              "internal"
            ]
          },
          "canonical_identifier": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024
          },
          "display_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "proxy_service_connection_id": {
            "type": "string",
            "pattern": "^scon_[\\w-]+$"
          }
        },
        "required": [
          "mode",
          "canonical_identifier",
          "display_name"
        ],
        "additionalProperties": false
      },
      "CreateCalendarEventInput": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1
          },
          "start": {
            "type": "string",
            "minLength": 1
          },
          "end": {
            "type": "string",
            "minLength": 1
          },
          "time_zone": {
            "type": "string",
            "minLength": 1
          },
          "repeat": {
            "type": "object",
            "properties": {
              "rule": {
                "type": "string",
                "minLength": 1
              },
              "except": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "also": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                }
              }
            },
            "required": [
              "rule"
            ],
            "additionalProperties": false
          },
          "location": {
            "type": "string"
          },
          "meeting_link": {
            "type": "string",
            "pattern": "^[A-Za-z][A-Za-z0-9+.-]*:[^\\s\\u0000-\\u001f\\u007f]+$"
          },
          "description": {
            "type": "string"
          },
          "guests": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "email"
                },
                {
                  "type": "object",
                  "properties": {
                    "email": {
                      "type": "string",
                      "format": "email"
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "required": [
                    "email"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "wake_minutes_before": {
            "type": "integer",
            "minimum": 0
          },
          "meeting": {
            "type": "boolean"
          },
          "attend": {
            "type": "boolean"
          },
          "max_seconds": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "meeting_voice": {
            "type": "object",
            "properties": {
              "voice": {
                "type": "string",
                "minLength": 1
              },
              "language": {
                "type": "string",
                "pattern": "^[A-Za-z]{2,8}(?:-[A-Za-z0-9]{1,8})*$"
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "title",
          "start"
        ],
        "additionalProperties": false
      },
      "CreateChatIdentityInput": {
        "type": "object",
        "properties": {
          "channel": {
            "type": "string",
            "enum": [
              "telegram",
              "sms",
              "slack"
            ]
          },
          "phone": {
            "type": "string",
            "pattern": "^\\+[1-9]\\d{7,14}$"
          }
        },
        "required": [
          "channel"
        ],
        "additionalProperties": false
      },
      "CreateCheckoutSessionInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "amount_minor": {
            "type": "integer",
            "minimum": 50,
            "maximum": 99999999
          },
          "currency": {
            "type": "string",
            "pattern": "^[a-z]{3}$",
            "default": "usd"
          },
          "item": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "success_url": {
            "type": "string",
            "format": "uri",
            "maxLength": 500
          },
          "cancel_url": {
            "type": "string",
            "format": "uri",
            "maxLength": 500
          }
        },
        "required": [
          "name",
          "amount_minor",
          "success_url"
        ],
        "additionalProperties": false
      },
      "CreateConnectLinkInput": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "service_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "scopes": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 512
                },
                "maxItems": 100
              },
              "connection_name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 40,
                "pattern": "^[A-Za-z0-9 -]+$"
              }
            },
            "required": [
              "service_id"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "custom": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "allowed_hosts": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 253
                    },
                    "minItems": 1,
                    "maxItems": 100
                  },
                  "template": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "mcp_url": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "connection_name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 40,
                    "pattern": "^[A-Za-z0-9 -]+$"
                  }
                },
                "required": [
                  "name",
                  "allowed_hosts"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "custom"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "connect": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "making_supplier"
                      },
                      "supplier": {
                        "type": "string",
                        "enum": [
                          "gelato",
                          "prodigi",
                          "printful",
                          "lulu"
                        ]
                      }
                    },
                    "required": [
                      "kind",
                      "supplier"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "telegram_bot"
                      },
                      "account_id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      }
                    },
                    "required": [
                      "kind",
                      "account_id"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "post_address"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "required": [
              "connect"
            ],
            "additionalProperties": false
          }
        ]
      },
      "CreateDropoffInput": {
        "type": "object",
        "properties": {
          "from_agent": {
            "type": "string"
          },
          "to_agent": {
            "type": "string"
          },
          "to_agents": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "minItems": 1
          },
          "schema": {
            "type": "object",
            "additionalProperties": {}
          },
          "ttl_seconds": {
            "type": "integer",
            "minimum": 60,
            "maximum": 2147483647
          },
          "on_expire": {
            "type": "string",
            "enum": [
              "notify",
              "retry",
              "fail"
            ],
            "default": "notify"
          }
        },
        "required": [
          "from_agent",
          "schema"
        ],
        "additionalProperties": false
      },
      "CreateEnterpriseOidcAuthoritySetupInput": {
        "type": "object",
        "properties": {
          "organisation_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "role_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "role_claim_path": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "pattern": "^[A-Za-z_][A-Za-z0-9_-]*(?:\\.[A-Za-z_][A-Za-z0-9_-]*)*$"
          },
          "role_claim_value": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "agent_id": {
            "type": "string",
            "pattern": "^(ag|agt)_[\\w-]+$"
          },
          "mission_id": {
            "type": "string",
            "pattern": "^ms_[\\w-]+$"
          },
          "service_connection_id": {
            "type": "string",
            "pattern": "^scon_[\\w-]+$"
          },
          "provider": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$"
          },
          "purpose": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024
          },
          "http_method": {
            "type": "string",
            "enum": [
              "GET",
              "POST",
              "PUT",
              "PATCH",
              "DELETE"
            ]
          },
          "resource_path": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024,
            "pattern": "^\\/[A-Za-z0-9._~!$&'()*+,;=:@%/-]*$"
          },
          "constraints": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "path": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "op": {
                  "type": "string",
                  "enum": [
                    "eq",
                    "not_eq",
                    "in",
                    "not_in",
                    "lt",
                    "lte",
                    "gt",
                    "gte",
                    "exists",
                    "not_exists"
                  ]
                },
                "value": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 2048
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 2048
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean"
                          }
                        ]
                      },
                      "maxItems": 256
                    }
                  ]
                },
                "value_ref": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 512
                }
              },
              "required": [
                "path",
                "op"
              ],
              "additionalProperties": false
            },
            "maxItems": 16,
            "default": []
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "organisation_name",
          "role_name",
          "role_claim_path",
          "role_claim_value",
          "agent_id",
          "service_connection_id",
          "provider",
          "purpose",
          "http_method",
          "resource_path",
          "expires_at"
        ],
        "additionalProperties": false
      },
      "CreateInboundWebhookInput": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "agentmail",
              "generic"
            ]
          },
          "agent_id": {
            "type": "string",
            "minLength": 1
          },
          "forward_url": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "generic_config": {
            "type": "object",
            "properties": {
              "signature_header": {
                "type": "string",
                "minLength": 1,
                "default": "X-Webhook-Signature"
              },
              "signature_algorithm": {
                "type": "string",
                "enum": [
                  "hmac-sha256",
                  "hmac-sha1"
                ],
                "default": "hmac-sha256"
              },
              "dedupe_key_path": {
                "type": "string",
                "minLength": 1,
                "default": "id"
              },
              "content_paths": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                },
                "default": []
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "provider",
          "agent_id"
        ],
        "additionalProperties": false
      },
      "CreateOauthAppInput": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "client_id": {
            "type": "string",
            "minLength": 1
          },
          "client_secret": {
            "type": "string",
            "minLength": 1
          },
          "scopes": {
            "type": "string"
          },
          "tenant": {
            "type": "string",
            "pattern": "^[A-Za-z0-9][A-Za-z0-9.-]{0,127}$"
          }
        },
        "required": [
          "provider",
          "client_id",
          "client_secret"
        ],
        "additionalProperties": false
      },
      "CreatePaymentLinkInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "amount_minor": {
            "type": "integer",
            "minimum": 50,
            "maximum": 99999999
          },
          "currency": {
            "type": "string",
            "pattern": "^[a-z]{3}$",
            "default": "usd"
          },
          "item": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "after_payment_url": {
            "type": "string",
            "format": "uri",
            "maxLength": 500
          }
        },
        "required": [
          "name",
          "amount_minor"
        ],
        "additionalProperties": false
      },
      "DecideBody": {
        "type": "object",
        "properties": {
          "notes": {
            "type": "string",
            "maxLength": 1000
          },
          "block_future": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "DecisionBody": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "checkout_approved",
              "checkout_blocked",
              "security_events_dismissed",
              "agent_suspended",
              "future_warning_block_enabled",
              "future_critical_block_enabled"
            ]
          },
          "source_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "minItems": 1,
            "maxItems": 100
          }
        },
        "required": [
          "action",
          "source_ids"
        ],
        "additionalProperties": false
      },
      "DeclineCalendarCounterInput": {
        "type": "object",
        "properties": {
          "comment": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "DelegateAuthorityBindingInput": {
        "type": "object",
        "properties": {
          "child_agent_id": {
            "type": "string",
            "pattern": "^(ag|agt)_[\\w-]+$"
          },
          "child_agent_key_thumbprint": {
            "type": "string",
            "pattern": "^sha256:[0-9a-f]{64}$"
          },
          "mission_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^ms_[\\w-]+$"
            },
            "maxItems": 64,
            "default": []
          },
          "scope": {
            "type": "object",
            "properties": {
              "actions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "action_uri": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 1024,
                      "pattern": "^[A-Za-z][A-Za-z0-9._:/-]*$"
                    },
                    "resource_refs": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 512
                      },
                      "maxItems": 256,
                      "default": []
                    },
                    "constraints": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "path": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "op": {
                            "type": "string",
                            "enum": [
                              "eq",
                              "not_eq",
                              "in",
                              "not_in",
                              "lt",
                              "lte",
                              "gt",
                              "gte",
                              "exists",
                              "not_exists"
                            ]
                          },
                          "value": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 2048
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "array",
                                "items": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "maxLength": 2048
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean"
                                    }
                                  ]
                                },
                                "maxItems": 256
                              }
                            ]
                          },
                          "value_ref": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 512
                          }
                        },
                        "required": [
                          "path",
                          "op"
                        ],
                        "additionalProperties": false
                      },
                      "maxItems": 64,
                      "default": []
                    }
                  },
                  "required": [
                    "action_uri"
                  ],
                  "additionalProperties": false
                },
                "minItems": 1,
                "maxItems": 128
              },
              "limits": {
                "type": "object",
                "additionalProperties": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    {
                      "type": "array",
                      "items": {}
                    },
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                },
                "default": {}
              }
            },
            "required": [
              "actions"
            ],
            "additionalProperties": false
          },
          "disclosure_policy": {
            "type": "object",
            "properties": {
              "rules": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "fact_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 512
                    },
                    "mode": {
                      "type": "string",
                      "enum": [
                        "predicate",
                        "pairwise",
                        "exact_private",
                        "issuer_evidence",
                        "status_only"
                      ]
                    },
                    "profile_version_id": {
                      "type": "string",
                      "pattern": "^apv_[\\w-]+$"
                    },
                    "required": {
                      "type": "boolean",
                      "default": true
                    }
                  },
                  "required": [
                    "fact_id",
                    "mode"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 128,
                "default": []
              },
              "principal_confirmation_required": {
                "type": "boolean",
                "default": false
              },
              "max_retention_seconds": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null
              },
              "live_status_required": {
                "type": "boolean",
                "default": true
              }
            },
            "additionalProperties": false
          },
          "allow_further_delegation": {
            "type": "boolean",
            "default": false
          },
          "max_delegation_depth": {
            "type": "integer",
            "minimum": 0,
            "maximum": 4
          },
          "valid_from": {
            "type": "string",
            "format": "date-time"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "child_agent_id",
          "scope",
          "disclosure_policy",
          "max_delegation_depth",
          "valid_from",
          "expires_at"
        ],
        "additionalProperties": false
      },
      "DelegatePassportInput": {
        "type": "object",
        "properties": {
          "parent_passport_token": {
            "type": "string"
          },
          "child_agent_id": {
            "type": "string"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "service_connection_id": {
                  "type": "string"
                },
                "scopes": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "constraints": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "path": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "op": {
                            "type": "string",
                            "enum": [
                              "eq",
                              "not_eq",
                              "in",
                              "not_in",
                              "matches",
                              "starts_with",
                              "lt",
                              "lte",
                              "gt",
                              "gte",
                              "exists",
                              "not_exists"
                            ]
                          },
                          "value": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 1024
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "maxLength": 1024
                                },
                                "maxItems": 256
                              }
                            ]
                          }
                        },
                        "required": [
                          "path",
                          "op",
                          "value"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "path": {
                            "type": "string",
                            "const": "any_of"
                          },
                          "op": {
                            "type": "string",
                            "const": "any_of"
                          },
                          "value": {
                            "type": "array",
                            "items": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "path": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  },
                                  "op": {
                                    "type": "string",
                                    "enum": [
                                      "eq",
                                      "not_eq",
                                      "in",
                                      "not_in",
                                      "matches",
                                      "starts_with",
                                      "lt",
                                      "lte",
                                      "gt",
                                      "gte",
                                      "exists",
                                      "not_exists"
                                    ]
                                  },
                                  "value": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "maxLength": 1024
                                      },
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "maxLength": 1024
                                        },
                                        "maxItems": 256
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "path",
                                  "op",
                                  "value"
                                ],
                                "additionalProperties": false
                              },
                              "minItems": 1,
                              "maxItems": 32
                            },
                            "minItems": 2,
                            "maxItems": 16
                          }
                        },
                        "required": [
                          "path",
                          "op",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "maxItems": 32
                },
                "intents": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "params": {
                        "type": "object",
                        "additionalProperties": {},
                        "default": {}
                      }
                    },
                    "required": [
                      "name"
                    ],
                    "additionalProperties": false
                  },
                  "maxItems": 32
                },
                "allow_data_from": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "maxItems": 32
                }
              },
              "required": [
                "service_connection_id",
                "scopes"
              ],
              "additionalProperties": false
            }
          },
          "ttl_seconds": {
            "type": "integer",
            "minimum": 60,
            "maximum": 3600
          }
        },
        "required": [
          "parent_passport_token",
          "child_agent_id",
          "scopes"
        ],
        "additionalProperties": false
      },
      "DeleteAccountBody": {
        "type": "object",
        "properties": {
          "confirm_email": {
            "type": "string"
          }
        },
        "required": [
          "confirm_email"
        ],
        "additionalProperties": false
      },
      "DepositBody": {
        "type": "object",
        "properties": {
          "agent_id": {
            "type": "string",
            "minLength": 1
          },
          "payload": {
            "type": "object",
            "additionalProperties": {}
          },
          "passport_jti": {
            "type": "string",
            "minLength": 1
          },
          "mission_id": {
            "type": "string",
            "pattern": "^ms_"
          },
          "drive_files": {}
        },
        "required": [
          "agent_id",
          "payload"
        ],
        "additionalProperties": true
      },
      "DetectorConfigUpsertInput": {
        "type": "object",
        "properties": {
          "custom_patterns": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64
                },
                "regex": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 512
                },
                "severity": {
                  "type": "string",
                  "enum": [
                    "warning",
                    "critical"
                  ]
                },
                "description": {
                  "type": "string",
                  "maxLength": 256
                }
              },
              "required": [
                "id",
                "regex",
                "severity",
                "description"
              ],
              "additionalProperties": false
            },
            "maxItems": 50
          },
          "whitelist_patterns": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64
                },
                "regex": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 512
                },
                "description": {
                  "type": "string",
                  "maxLength": 256
                }
              },
              "required": [
                "id",
                "regex",
                "description"
              ],
              "additionalProperties": false
            },
            "maxItems": 50
          },
          "severity_overrides": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "enum": [
                "warning",
                "critical"
              ]
            }
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "DossierBody": {
        "type": "object",
        "properties": {
          "narrative": {
            "type": "string",
            "maxLength": 50000
          },
          "decision_tree": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "checkpoint_id": {
                  "type": "string",
                  "pattern": "^chk_[\\w-]+$"
                },
                "decision": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "rationale": {
                  "type": "string",
                  "maxLength": 4096
                }
              },
              "required": [
                "checkpoint_id",
                "decision",
                "rationale"
              ],
              "additionalProperties": false
            }
          },
          "alerts_walkthrough": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "detector_signal_claim_id": {
                  "type": "string",
                  "pattern": "^pc_[\\w-]+$"
                },
                "severity": {
                  "type": "string",
                  "enum": [
                    "low",
                    "medium",
                    "high",
                    "critical"
                  ]
                },
                "narrative": {
                  "type": "string",
                  "maxLength": 8192
                }
              },
              "required": [
                "detector_signal_claim_id",
                "severity",
                "narrative"
              ],
              "additionalProperties": false
            }
          },
          "lessons_learned": {
            "type": "string",
            "maxLength": 50000
          },
          "incident_classification": {
            "type": "string",
            "enum": [
              "false_positive",
              "true_positive_handled",
              "true_positive_escalated",
              "inconclusive"
            ]
          }
        },
        "required": [
          "narrative",
          "lessons_learned",
          "incident_classification"
        ],
        "additionalProperties": false
      },
      "DriveCopyInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "visibility": {
            "type": "string",
            "enum": [
              "agent",
              "account"
            ]
          },
          "expires_in_seconds": {
            "type": "integer",
            "minimum": 60,
            "maximum": 2147483647
          }
        },
        "additionalProperties": false
      },
      "DriveHandoffInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "content_base64": {
            "type": "string",
            "minLength": 4,
            "maxLength": 13981020
          }
        },
        "required": [
          "name",
          "content_base64"
        ],
        "additionalProperties": false
      },
      "DriveShareInput": {
        "type": "object",
        "properties": {
          "ttl_seconds": {
            "type": "integer",
            "minimum": 60,
            "maximum": 2147483647
          },
          "max_downloads": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          }
        },
        "additionalProperties": false
      },
      "DriveUpdateInput": {
        "type": "object",
        "properties": {
          "visibility": {
            "type": "string",
            "enum": [
              "agent",
              "account"
            ]
          },
          "expires_in_seconds": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 60,
                "maximum": 2147483647
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "DriveUploadInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "content_type": {
            "type": "string",
            "maxLength": 255,
            "pattern": "^[a-z0-9][a-z0-9!#$&^_.+-]*\\/[a-z0-9][a-z0-9!#$&^_.+-]*(?:[ \\t]*;[ \\t]*[a-z0-9!#$&^_.+-]+=(?:[a-z0-9!#$&^_.+-]+|\"[\\u0020\\u0021\\u0023-\\u005b\\u005d-\\u007e]*\"))*$",
            "default": "application/octet-stream"
          },
          "content_text": {
            "type": "string",
            "maxLength": 10485760
          },
          "content_base64": {
            "type": "string",
            "maxLength": 13981020
          },
          "visibility": {
            "type": "string",
            "enum": [
              "agent",
              "account"
            ]
          },
          "expires_in_seconds": {
            "type": "integer",
            "minimum": 60,
            "maximum": 2147483647
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false
      },
      "DriveUploadLinkInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "content_type": {
            "type": "string",
            "maxLength": 255,
            "pattern": "^[a-z0-9][a-z0-9!#$&^_.+-]*\\/[a-z0-9][a-z0-9!#$&^_.+-]*(?:[ \\t]*;[ \\t]*[a-z0-9!#$&^_.+-]+=(?:[a-z0-9!#$&^_.+-]+|\"[\\u0020\\u0021\\u0023-\\u005b\\u005d-\\u007e]*\"))*$",
            "default": "application/octet-stream"
          },
          "size_bytes": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1073741824
          },
          "visibility": {
            "type": "string",
            "enum": [
              "agent",
              "account"
            ]
          },
          "expires_in_seconds": {
            "type": "integer",
            "minimum": 60,
            "maximum": 2147483647
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false
      },
      "Empty": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "EmptyBody": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "ErrorEnvelope": {
        "type": "object",
        "description": "The body of every error answer: one object with one property, `error`.",
        "required": [
          "error"
        ],
        "additionalProperties": false,
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message"
            ],
            "properties": {
              "code": {
                "type": "string",
                "pattern": "^[A-Z][A-Z0-9_]*$",
                "description": "A stable code in upper case with underscores. A client decides what to do by the code, never by the message."
              },
              "message": {
                "type": "string",
                "description": "A sentence for a person. It can change between versions."
              },
              "details": {
                "type": "object",
                "description": "Fields that depend on the code. Absent when a code has none. Never a secret, a credential or text a caller sent."
              }
            }
          }
        }
      },
      "ExportBody": {
        "type": "object",
        "properties": {
          "scope": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "mission",
                  "session",
                  "incident",
                  "period"
                ]
              },
              "ref": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": [
              "kind",
              "ref"
            ],
            "additionalProperties": false
          },
          "supersedes": {
            "type": "string",
            "pattern": "^pck_[\\w-]+$"
          },
          "air_gap": {
            "type": "boolean"
          }
        },
        "required": [
          "scope"
        ],
        "additionalProperties": false
      },
      "FleetEnrollmentInput": {
        "type": "object",
        "properties": {
          "idempotency_key": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "public_key": {
            "type": "object",
            "properties": {
              "kty": {
                "type": "string",
                "const": "OKP"
              },
              "crv": {
                "type": "string",
                "const": "Ed25519"
              },
              "x": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{43}$"
              }
            },
            "required": [
              "kty",
              "crv",
              "x"
            ],
            "additionalProperties": false
          },
          "challenge_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "proof": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024
          },
          "previous_key_proof": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024
          }
        },
        "required": [
          "idempotency_key",
          "name",
          "public_key",
          "challenge_id",
          "proof"
        ],
        "additionalProperties": false
      },
      "FleetMissionStartInput": {
        "type": "object",
        "properties": {
          "fleet_policy_id": {
            "type": "string",
            "pattern": "^flp_[\\w-]+$"
          },
          "idempotency_key": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128
          },
          "intent_summary": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "requested_access": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "connection_id": {
                  "type": "string",
                  "pattern": "^scon_[\\w-]+$"
                },
                "scopes": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "minItems": 1,
                  "maxItems": 64
                },
                "intents": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "params": {
                        "type": "object",
                        "additionalProperties": {},
                        "default": {}
                      }
                    },
                    "required": [
                      "name"
                    ],
                    "additionalProperties": false
                  },
                  "maxItems": 32,
                  "default": []
                },
                "constraints": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "path": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "op": {
                            "type": "string",
                            "enum": [
                              "eq",
                              "not_eq",
                              "in",
                              "not_in",
                              "matches",
                              "starts_with",
                              "lt",
                              "lte",
                              "gt",
                              "gte",
                              "exists",
                              "not_exists"
                            ]
                          },
                          "value": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 1024
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "maxLength": 1024
                                },
                                "maxItems": 256
                              }
                            ]
                          }
                        },
                        "required": [
                          "path",
                          "op",
                          "value"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "path": {
                            "type": "string",
                            "const": "any_of"
                          },
                          "op": {
                            "type": "string",
                            "const": "any_of"
                          },
                          "value": {
                            "type": "array",
                            "items": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "path": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  },
                                  "op": {
                                    "type": "string",
                                    "enum": [
                                      "eq",
                                      "not_eq",
                                      "in",
                                      "not_in",
                                      "matches",
                                      "starts_with",
                                      "lt",
                                      "lte",
                                      "gt",
                                      "gte",
                                      "exists",
                                      "not_exists"
                                    ]
                                  },
                                  "value": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "maxLength": 1024
                                      },
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "maxLength": 1024
                                        },
                                        "maxItems": 256
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "path",
                                  "op",
                                  "value"
                                ],
                                "additionalProperties": false
                              },
                              "minItems": 1,
                              "maxItems": 32
                            },
                            "minItems": 2,
                            "maxItems": 16
                          }
                        },
                        "required": [
                          "path",
                          "op",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "maxItems": 32,
                  "default": []
                },
                "allow_data_from": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "maxItems": 64,
                  "default": []
                }
              },
              "required": [
                "connection_id",
                "scopes"
              ],
              "additionalProperties": false
            },
            "maxItems": 32,
            "default": []
          },
          "requested_operations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "producer": {
                  "type": "string",
                  "enum": [
                    "skill",
                    "a2a",
                    "dropoff"
                  ]
                },
                "target_id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[\\w.-]+$"
                },
                "action": {
                  "type": "string",
                  "enum": [
                    "invoke",
                    "tasks/send",
                    "create",
                    "deposit",
                    "collect"
                  ]
                },
                "constraints": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "path": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "op": {
                            "type": "string",
                            "enum": [
                              "eq",
                              "not_eq",
                              "in",
                              "not_in",
                              "matches",
                              "starts_with",
                              "lt",
                              "lte",
                              "gt",
                              "gte",
                              "exists",
                              "not_exists"
                            ]
                          },
                          "value": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 1024
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "maxLength": 1024
                                },
                                "maxItems": 256
                              }
                            ]
                          }
                        },
                        "required": [
                          "path",
                          "op",
                          "value"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "path": {
                            "type": "string",
                            "const": "any_of"
                          },
                          "op": {
                            "type": "string",
                            "const": "any_of"
                          },
                          "value": {
                            "type": "array",
                            "items": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "path": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  },
                                  "op": {
                                    "type": "string",
                                    "enum": [
                                      "eq",
                                      "not_eq",
                                      "in",
                                      "not_in",
                                      "matches",
                                      "starts_with",
                                      "lt",
                                      "lte",
                                      "gt",
                                      "gte",
                                      "exists",
                                      "not_exists"
                                    ]
                                  },
                                  "value": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "maxLength": 1024
                                      },
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "maxLength": 1024
                                        },
                                        "maxItems": 256
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "path",
                                  "op",
                                  "value"
                                ],
                                "additionalProperties": false
                              },
                              "minItems": 1,
                              "maxItems": 32
                            },
                            "minItems": 2,
                            "maxItems": 16
                          }
                        },
                        "required": [
                          "path",
                          "op",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "maxItems": 32,
                  "default": []
                }
              },
              "required": [
                "producer",
                "target_id",
                "action"
              ],
              "additionalProperties": false
            },
            "maxItems": 32,
            "default": []
          },
          "limits": {
            "type": "object",
            "properties": {
              "max_actions": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 1000000
              },
              "max_concurrent_actions": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 10000
              },
              "max_duration_seconds": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 2147483647
              },
              "max_dropoff_bytes": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "max_spend_cents": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100000000
              }
            },
            "required": [
              "max_actions",
              "max_concurrent_actions",
              "max_duration_seconds"
            ],
            "additionalProperties": false
          },
          "expected_output_shape": {
            "type": "object",
            "additionalProperties": {}
          },
          "authority_binding_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^abn_[\\w-]+$"
            },
            "maxItems": 8
          }
        },
        "required": [
          "fleet_policy_id",
          "idempotency_key",
          "intent_summary",
          "limits"
        ],
        "additionalProperties": false
      },
      "FleetPolicyInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "rules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[\\w.-]+$"
                },
                "effect": {
                  "type": "string",
                  "enum": [
                    "allow",
                    "review",
                    "deny"
                  ]
                },
                "access": {
                  "type": "object",
                  "properties": {
                    "connection_id": {
                      "type": "string",
                      "pattern": "^scon_[\\w-]+$"
                    },
                    "scopes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "minItems": 1,
                      "maxItems": 64
                    },
                    "intents": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "params": {
                            "type": "object",
                            "additionalProperties": {},
                            "default": {}
                          }
                        },
                        "required": [
                          "name"
                        ],
                        "additionalProperties": false
                      },
                      "maxItems": 32,
                      "default": []
                    },
                    "constraints": {
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "op": {
                                "type": "string",
                                "enum": [
                                  "eq",
                                  "not_eq",
                                  "in",
                                  "not_in",
                                  "matches",
                                  "starts_with",
                                  "lt",
                                  "lte",
                                  "gt",
                                  "gte",
                                  "exists",
                                  "not_exists"
                                ]
                              },
                              "value": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "maxLength": 1024
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean"
                                  },
                                  {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "maxLength": 1024
                                    },
                                    "maxItems": 256
                                  }
                                ]
                              }
                            },
                            "required": [
                              "path",
                              "op",
                              "value"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string",
                                "const": "any_of"
                              },
                              "op": {
                                "type": "string",
                                "const": "any_of"
                              },
                              "value": {
                                "type": "array",
                                "items": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "path": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      },
                                      "op": {
                                        "type": "string",
                                        "enum": [
                                          "eq",
                                          "not_eq",
                                          "in",
                                          "not_in",
                                          "matches",
                                          "starts_with",
                                          "lt",
                                          "lte",
                                          "gt",
                                          "gte",
                                          "exists",
                                          "not_exists"
                                        ]
                                      },
                                      "value": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "maxLength": 1024
                                          },
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "boolean"
                                          },
                                          {
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "maxLength": 1024
                                            },
                                            "maxItems": 256
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "path",
                                      "op",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 1,
                                  "maxItems": 32
                                },
                                "minItems": 2,
                                "maxItems": 16
                              }
                            },
                            "required": [
                              "path",
                              "op",
                              "value"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      },
                      "maxItems": 32,
                      "default": []
                    },
                    "allow_data_from": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "maxItems": 64,
                      "default": []
                    }
                  },
                  "required": [
                    "connection_id",
                    "scopes"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "id",
                "effect",
                "access"
              ],
              "additionalProperties": false
            },
            "maxItems": 64,
            "default": []
          },
          "operation_rules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[\\w.-]+$"
                },
                "effect": {
                  "type": "string",
                  "enum": [
                    "allow",
                    "review",
                    "deny"
                  ]
                },
                "access": {
                  "type": "object",
                  "properties": {
                    "producer": {
                      "type": "string",
                      "enum": [
                        "skill",
                        "a2a",
                        "dropoff"
                      ]
                    },
                    "target_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "^[\\w.-]+$"
                    },
                    "action": {
                      "type": "string",
                      "enum": [
                        "invoke",
                        "tasks/send",
                        "create",
                        "deposit",
                        "collect"
                      ]
                    },
                    "constraints": {
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "op": {
                                "type": "string",
                                "enum": [
                                  "eq",
                                  "not_eq",
                                  "in",
                                  "not_in",
                                  "matches",
                                  "starts_with",
                                  "lt",
                                  "lte",
                                  "gt",
                                  "gte",
                                  "exists",
                                  "not_exists"
                                ]
                              },
                              "value": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "maxLength": 1024
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean"
                                  },
                                  {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "maxLength": 1024
                                    },
                                    "maxItems": 256
                                  }
                                ]
                              }
                            },
                            "required": [
                              "path",
                              "op",
                              "value"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string",
                                "const": "any_of"
                              },
                              "op": {
                                "type": "string",
                                "const": "any_of"
                              },
                              "value": {
                                "type": "array",
                                "items": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "path": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      },
                                      "op": {
                                        "type": "string",
                                        "enum": [
                                          "eq",
                                          "not_eq",
                                          "in",
                                          "not_in",
                                          "matches",
                                          "starts_with",
                                          "lt",
                                          "lte",
                                          "gt",
                                          "gte",
                                          "exists",
                                          "not_exists"
                                        ]
                                      },
                                      "value": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "maxLength": 1024
                                          },
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "boolean"
                                          },
                                          {
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "maxLength": 1024
                                            },
                                            "maxItems": 256
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "path",
                                      "op",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 1,
                                  "maxItems": 32
                                },
                                "minItems": 2,
                                "maxItems": 16
                              }
                            },
                            "required": [
                              "path",
                              "op",
                              "value"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      },
                      "maxItems": 32,
                      "default": []
                    }
                  },
                  "required": [
                    "producer",
                    "target_id",
                    "action"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "id",
                "effect",
                "access"
              ],
              "additionalProperties": false
            },
            "maxItems": 64,
            "default": []
          },
          "limits": {
            "type": "object",
            "properties": {
              "max_actions": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 1000000
              },
              "max_concurrent_actions": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 10000
              },
              "max_duration_seconds": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 2147483647
              },
              "max_dropoff_bytes": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "max_spend_cents": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100000000
              }
            },
            "required": [
              "max_actions",
              "max_concurrent_actions",
              "max_duration_seconds"
            ],
            "additionalProperties": false
          },
          "window_seconds": {
            "type": "integer",
            "minimum": 60,
            "maximum": 2678400
          },
          "max_members": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "max_enrollments_per_hour": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "identity_lease_seconds": {
            "type": "integer",
            "minimum": 60,
            "maximum": 86400
          },
          "provisioner_agent_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^agt_[\\w-]+$"
            },
            "maxItems": 64,
            "default": []
          },
          "workload_trust": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "spiffe",
                    "wimse"
                  ]
                },
                "issuer": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 512
                },
                "audience": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 512
                },
                "subjects": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1024
                  },
                  "minItems": 1,
                  "maxItems": 256
                }
              },
              "required": [
                "kind",
                "issuer",
                "audience",
                "subjects"
              ],
              "additionalProperties": false
            },
            "maxItems": 16,
            "default": []
          },
          "allow_delegation": {
            "type": "boolean",
            "default": false
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "name",
          "limits",
          "window_seconds",
          "max_members",
          "max_enrollments_per_hour",
          "identity_lease_seconds",
          "expires_at"
        ],
        "additionalProperties": false
      },
      "FleetStartProbe": {
        "type": "object",
        "additionalProperties": {}
      },
      "ForwardAgentEmailInput": {
        "type": "object",
        "properties": {
          "to": {
            "anyOf": [
              {
                "type": "string",
                "format": "email",
                "maxLength": 320
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "email",
                  "maxLength": 320
                },
                "minItems": 1
              }
            ]
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "email",
              "maxLength": 320
            }
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "email",
              "maxLength": 320
            }
          },
          "body": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100000
          },
          "include_attachments": {
            "type": "boolean"
          },
          "attachments": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "file_id": {
                      "type": "string",
                      "pattern": "^drv_[\\w-]{8,64}$"
                    },
                    "filename": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    }
                  },
                  "required": [
                    "file_id"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "filename": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    "content_type": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9][\\w.+-]*\\/[A-Za-z0-9][\\w.+-]*$",
                      "maxLength": 127
                    },
                    "content_base64": {
                      "type": "string",
                      "maxLength": 13981020
                    }
                  },
                  "required": [
                    "filename",
                    "content_type",
                    "content_base64"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "include_quote": {
            "type": "boolean"
          }
        },
        "required": [
          "to"
        ],
        "additionalProperties": false
      },
      "GovernanceApprovalDetail": {
        "type": "object",
        "properties": {
          "approval": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "action": {
                "type": "string",
                "enum": [
                  "fleet_policy_activate",
                  "detector_config_upsert",
                  "detector_config_reset",
                  "review_decide_approve",
                  "agent_unblock",
                  "agent_register",
                  "agent_setup",
                  "agent_authority_expand",
                  "agent_skill_allow",
                  "agent_key_enroll",
                  "agent_enrollment_ticket_mint",
                  "service_grant_expand",
                  "service_proxy_disable",
                  "service_allowed_hosts_expand",
                  "notification_config_mutate",
                  "billing_mutate",
                  "pii_config_upsert",
                  "pii_config_reset",
                  "authority_binding_activate",
                  "authority_principal_erase",
                  "authority_binding_erase",
                  "authority_proof_erase",
                  "authority_presentation_erase",
                  "authority_receiver_profile_activate",
                  "authority_profile_activate",
                  "authority_receiver_key_add",
                  "account_open",
                  "account_contact_consent_add",
                  "account_piece_resume",
                  "account_toll_free_verification_submit",
                  "account_email_change",
                  "account_delete",
                  "control_socket_change",
                  "account_control_loosen",
                  "control_review",
                  "network_install_key_add",
                  "making_order_approve",
                  "member_sso_binding_clear",
                  "sso_domain_add",
                  "sso_config_change",
                  "trust_widen",
                  "intent_approve",
                  "intent_approve_payment",
                  "identity_settings_loosen",
                  "service_requirement_loosen",
                  "agent_warnings_dismiss"
                ]
              },
              "resource_id": {
                "type": "string"
              },
              "summary": {
                "type": "string"
              },
              "policy_preview": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": {}
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "account_preview": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string"
                      },
                      "monthly_budget_cents": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "pieces": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "name",
                      "monthly_budget_cents",
                      "pieces"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "setup_preview": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": {}
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "grant_preview": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": {}
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "intent_preview": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": {}
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "requested_via": {
                "type": "string",
                "enum": [
                  "operator_key",
                  "member_session",
                  "oauth",
                  "member_key"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "pending",
                  "approved",
                  "rejected",
                  "consumed",
                  "expired"
                ]
              },
              "expires_at": {
                "type": "string"
              },
              "created_at": {
                "type": "string"
              },
              "decided_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "decided_via": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "tenant": {
                "type": "object",
                "properties": {
                  "operator_id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "operator_id",
                  "name"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "id",
              "action",
              "resource_id",
              "summary",
              "requested_via",
              "status",
              "expires_at",
              "created_at",
              "decided_at"
            ],
            "additionalProperties": false
          },
          "payload_hash": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "approval_url": {
            "type": "string"
          }
        },
        "required": [
          "approval",
          "payload_hash",
          "approval_url"
        ],
        "additionalProperties": false
      },
      "GovernanceApprovalList": {
        "type": "object",
        "properties": {
          "approvals": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "action": {
                  "type": "string",
                  "enum": [
                    "fleet_policy_activate",
                    "detector_config_upsert",
                    "detector_config_reset",
                    "review_decide_approve",
                    "agent_unblock",
                    "agent_register",
                    "agent_setup",
                    "agent_authority_expand",
                    "agent_skill_allow",
                    "agent_key_enroll",
                    "agent_enrollment_ticket_mint",
                    "service_grant_expand",
                    "service_proxy_disable",
                    "service_allowed_hosts_expand",
                    "notification_config_mutate",
                    "billing_mutate",
                    "pii_config_upsert",
                    "pii_config_reset",
                    "authority_binding_activate",
                    "authority_principal_erase",
                    "authority_binding_erase",
                    "authority_proof_erase",
                    "authority_presentation_erase",
                    "authority_receiver_profile_activate",
                    "authority_profile_activate",
                    "authority_receiver_key_add",
                    "account_open",
                    "account_contact_consent_add",
                    "account_piece_resume",
                    "account_toll_free_verification_submit",
                    "account_email_change",
                    "account_delete",
                    "control_socket_change",
                    "account_control_loosen",
                    "control_review",
                    "network_install_key_add",
                    "making_order_approve",
                    "member_sso_binding_clear",
                    "sso_domain_add",
                    "sso_config_change",
                    "trust_widen",
                    "intent_approve",
                    "intent_approve_payment",
                    "identity_settings_loosen",
                    "service_requirement_loosen",
                    "agent_warnings_dismiss"
                  ]
                },
                "resource_id": {
                  "type": "string"
                },
                "summary": {
                  "type": "string"
                },
                "policy_preview": {
                  "anyOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "account_preview": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "monthly_budget_cents": {
                          "anyOf": [
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "pieces": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "name",
                        "monthly_budget_cents",
                        "pieces"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "setup_preview": {
                  "anyOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "grant_preview": {
                  "anyOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "intent_preview": {
                  "anyOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "requested_via": {
                  "type": "string",
                  "enum": [
                    "operator_key",
                    "member_session",
                    "oauth",
                    "member_key"
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "approved",
                    "rejected",
                    "consumed",
                    "expired"
                  ]
                },
                "expires_at": {
                  "type": "string"
                },
                "created_at": {
                  "type": "string"
                },
                "decided_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "decided_via": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "tenant": {
                  "type": "object",
                  "properties": {
                    "operator_id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "operator_id",
                    "name"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "id",
                "action",
                "resource_id",
                "summary",
                "requested_via",
                "status",
                "expires_at",
                "created_at",
                "decided_at"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "approvals"
        ],
        "additionalProperties": false
      },
      "GovernanceChatDecisionInput": {
        "type": "object",
        "properties": {
          "decision": {
            "type": "string",
            "enum": [
              "approve",
              "reject"
            ]
          },
          "payload_hash": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "mcp_session_hash": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "elicitation_id": {
            "type": "string",
            "format": "uuid"
          },
          "issued_at": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "attestation": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          }
        },
        "required": [
          "decision"
        ],
        "additionalProperties": false
      },
      "GovernanceDecisionInput": {
        "type": "object",
        "properties": {
          "decision": {
            "type": "string",
            "enum": [
              "approve",
              "reject"
            ]
          }
        },
        "required": [
          "decision"
        ],
        "additionalProperties": false
      },
      "GrantAgentAccessInput": {
        "type": "object",
        "properties": {
          "agent_id": {
            "type": "string"
          },
          "service_connection_id": {
            "type": "string"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "minItems": 1
          },
          "constraints": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "path": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    },
                    "op": {
                      "type": "string",
                      "enum": [
                        "eq",
                        "not_eq",
                        "in",
                        "not_in",
                        "matches",
                        "starts_with",
                        "lt",
                        "lte",
                        "gt",
                        "gte",
                        "exists",
                        "not_exists"
                      ]
                    },
                    "value": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 1024
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 1024
                          },
                          "maxItems": 256
                        }
                      ]
                    }
                  },
                  "required": [
                    "path",
                    "op",
                    "value"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "path": {
                      "type": "string",
                      "const": "any_of"
                    },
                    "op": {
                      "type": "string",
                      "const": "any_of"
                    },
                    "value": {
                      "type": "array",
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "path": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "op": {
                              "type": "string",
                              "enum": [
                                "eq",
                                "not_eq",
                                "in",
                                "not_in",
                                "matches",
                                "starts_with",
                                "lt",
                                "lte",
                                "gt",
                                "gte",
                                "exists",
                                "not_exists"
                              ]
                            },
                            "value": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 1024
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "maxLength": 1024
                                  },
                                  "maxItems": 256
                                }
                              ]
                            }
                          },
                          "required": [
                            "path",
                            "op",
                            "value"
                          ],
                          "additionalProperties": false
                        },
                        "minItems": 1,
                        "maxItems": 32
                      },
                      "minItems": 2,
                      "maxItems": 16
                    }
                  },
                  "required": [
                    "path",
                    "op",
                    "value"
                  ],
                  "additionalProperties": false
                }
              ]
            },
            "maxItems": 32
          },
          "intents": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128
                },
                "params": {
                  "type": "object",
                  "additionalProperties": {},
                  "default": {}
                }
              },
              "required": [
                "name"
              ],
              "additionalProperties": false
            },
            "maxItems": 32
          },
          "alternatives": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "intents": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "params": {
                        "type": "object",
                        "additionalProperties": {},
                        "default": {}
                      }
                    },
                    "required": [
                      "name"
                    ],
                    "additionalProperties": false
                  },
                  "maxItems": 32
                },
                "constraints": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "path": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "op": {
                        "type": "string",
                        "enum": [
                          "eq",
                          "not_eq",
                          "in",
                          "not_in",
                          "matches",
                          "starts_with",
                          "lt",
                          "lte",
                          "gt",
                          "gte",
                          "exists",
                          "not_exists"
                        ]
                      },
                      "value": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 1024
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "maxLength": 1024
                            },
                            "maxItems": 256
                          }
                        ]
                      }
                    },
                    "required": [
                      "path",
                      "op",
                      "value"
                    ],
                    "additionalProperties": false
                  },
                  "maxItems": 32
                }
              },
              "additionalProperties": false
            },
            "minItems": 1,
            "maxItems": 16
          },
          "allow_data_from": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "maxItems": 32
          }
        },
        "required": [
          "agent_id",
          "service_connection_id",
          "scopes"
        ],
        "additionalProperties": false
      },
      "GrantDelegationInput": {
        "type": "object",
        "properties": {
          "delegated_scopes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "minItems": 1
          }
        },
        "required": [
          "delegated_scopes"
        ],
        "additionalProperties": false
      },
      "HumanOperationLookupInput": {
        "type": "object",
        "properties": {
          "operation_id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{22,256}$"
          }
        },
        "required": [
          "operation_id"
        ],
        "additionalProperties": false
      },
      "InitiateVerificationInput": {
        "type": "object",
        "properties": {
          "provider_key": {
            "type": "string"
          },
          "requested_claims": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "minItems": 1
          },
          "return_url": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "provider_key",
          "requested_claims"
        ],
        "additionalProperties": false
      },
      "InstallSlackInput": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "redirect_uri": {
            "type": "string",
            "format": "uri",
            "maxLength": 512
          }
        },
        "required": [
          "code",
          "redirect_uri"
        ],
        "additionalProperties": false
      },
      "InviteMemberInput": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "format": "email"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "role": {
            "type": "string",
            "enum": [
              "readonly",
              "standard",
              "admin"
            ],
            "default": "standard"
          },
          "allowed_connections": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "email",
          "name"
        ],
        "additionalProperties": false
      },
      "InvokeBody": {
        "type": "object",
        "properties": {
          "agent_id": {
            "type": "string",
            "minLength": 1
          },
          "input": {
            "type": "object",
            "additionalProperties": {}
          },
          "passport_id": {
            "type": "string"
          },
          "credential_connection_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "maxItems": 0
          }
        },
        "required": [
          "input"
        ],
        "additionalProperties": false
      },
      "IssuePassportInput": {
        "type": "object",
        "properties": {
          "agent_id": {
            "type": "string"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "service_connection_id": {
                  "type": "string"
                },
                "scopes": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "constraints": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "path": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "op": {
                            "type": "string",
                            "enum": [
                              "eq",
                              "not_eq",
                              "in",
                              "not_in",
                              "matches",
                              "starts_with",
                              "lt",
                              "lte",
                              "gt",
                              "gte",
                              "exists",
                              "not_exists"
                            ]
                          },
                          "value": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 1024
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "maxLength": 1024
                                },
                                "maxItems": 256
                              }
                            ]
                          }
                        },
                        "required": [
                          "path",
                          "op",
                          "value"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "path": {
                            "type": "string",
                            "const": "any_of"
                          },
                          "op": {
                            "type": "string",
                            "const": "any_of"
                          },
                          "value": {
                            "type": "array",
                            "items": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "path": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  },
                                  "op": {
                                    "type": "string",
                                    "enum": [
                                      "eq",
                                      "not_eq",
                                      "in",
                                      "not_in",
                                      "matches",
                                      "starts_with",
                                      "lt",
                                      "lte",
                                      "gt",
                                      "gte",
                                      "exists",
                                      "not_exists"
                                    ]
                                  },
                                  "value": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "maxLength": 1024
                                      },
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "maxLength": 1024
                                        },
                                        "maxItems": 256
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "path",
                                  "op",
                                  "value"
                                ],
                                "additionalProperties": false
                              },
                              "minItems": 1,
                              "maxItems": 32
                            },
                            "minItems": 2,
                            "maxItems": 16
                          }
                        },
                        "required": [
                          "path",
                          "op",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "maxItems": 32
                },
                "intents": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "params": {
                        "type": "object",
                        "additionalProperties": {},
                        "default": {}
                      }
                    },
                    "required": [
                      "name"
                    ],
                    "additionalProperties": false
                  },
                  "maxItems": 32
                },
                "allow_data_from": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "maxItems": 32
                }
              },
              "required": [
                "service_connection_id",
                "scopes"
              ],
              "additionalProperties": false
            }
          },
          "ttl_seconds": {
            "type": "integer",
            "minimum": 60,
            "maximum": 3600
          },
          "identity_claim_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "intent": {
            "type": "object",
            "properties": {
              "summary": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "services": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "will_delegate": {
                "type": "boolean"
              },
              "estimated_duration_seconds": {
                "type": "integer",
                "minimum": 60,
                "maximum": 86400
              },
              "refs": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    },
                    "params": {
                      "type": "object",
                      "additionalProperties": {},
                      "default": {}
                    }
                  },
                  "required": [
                    "name"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 64
              },
              "platform_intent": {
                "type": "string",
                "enum": [
                  "staff",
                  "monitor"
                ]
              }
            },
            "required": [
              "summary",
              "services"
            ],
            "additionalProperties": false
          },
          "checkpoint_interval_seconds": {
            "type": "integer",
            "minimum": 60,
            "maximum": 3600
          },
          "mission_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^ms_[\\w-]+$"
            }
          },
          "authority_binding_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^abn_[\\w-]+$"
            },
            "maxItems": 8
          }
        },
        "required": [
          "agent_id"
        ],
        "additionalProperties": false
      },
      "JoinMeetingInput": {
        "type": "object",
        "properties": {
          "event_id": {
            "type": "string",
            "pattern": "^cev_[A-Za-z0-9_-]{1,64}$"
          },
          "max_seconds": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "wait_seconds": {
            "type": "integer",
            "minimum": 0,
            "maximum": 60
          }
        },
        "required": [
          "event_id"
        ],
        "additionalProperties": false
      },
      "JsonRpcIdProbe": {
        "type": "object",
        "properties": {
          "id": {
            "type": [
              "string",
              "number",
              "null"
            ]
          }
        },
        "additionalProperties": false
      },
      "JsonRpcRequestSchema": {
        "type": "object",
        "properties": {
          "jsonrpc": {
            "type": "string",
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "number",
              "null"
            ]
          },
          "method": {
            "type": "string"
          },
          "params": {}
        },
        "required": [
          "jsonrpc",
          "method"
        ],
        "additionalProperties": false
      },
      "ListAgentMessagesResult": {
        "type": "object",
        "properties": {
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AgentMessageView"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "messages",
          "next_cursor"
        ],
        "additionalProperties": false
      },
      "MakingOrderInput": {
        "type": "object",
        "properties": {
          "quote_id": {
            "type": "string",
            "pattern": "^mkq_[\\w-]{8,64}$"
          }
        },
        "required": [
          "quote_id"
        ],
        "additionalProperties": false
      },
      "MakingQuoteInput": {
        "type": "object",
        "properties": {
          "design_id": {
            "type": "string",
            "pattern": "^mkd_[\\w-]{8,64}$"
          },
          "supplier": {
            "type": "string",
            "enum": [
              "afn",
              "craftcloud",
              "gelato",
              "prodigi",
              "printful",
              "lulu"
            ]
          },
          "spec": {
            "type": "object",
            "properties": {
              "quantity": {
                "type": "integer",
                "minimum": 1,
                "maximum": 2147483647,
                "default": 1
              },
              "process": {
                "type": "string",
                "minLength": 1,
                "maxLength": 40
              },
              "material": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "finish": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "color": {
                "type": "string",
                "minLength": 1,
                "maxLength": 40
              },
              "unit": {
                "type": "string",
                "enum": [
                  "mm",
                  "cm",
                  "in"
                ]
              },
              "product": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "attributes": {
                "type": "object",
                "additionalProperties": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 120
                },
                "propertyNames": {
                  "minLength": 1,
                  "maxLength": 60
                }
              },
              "placement": {
                "type": "string",
                "minLength": 1,
                "maxLength": 40
              },
              "page_count": {
                "type": "integer",
                "minimum": 1,
                "maximum": 2147483647
              },
              "shipping": {
                "type": "string",
                "enum": [
                  "cheapest",
                  "fastest"
                ]
              }
            },
            "additionalProperties": false,
            "default": {
              "quantity": 1
            }
          },
          "recipient": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "company": {
                "type": "string",
                "maxLength": 120
              },
              "email": {
                "type": "string",
                "format": "email",
                "maxLength": 320
              },
              "phone": {
                "type": "string",
                "minLength": 1,
                "maxLength": 25
              },
              "address1": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "address2": {
                "type": "string",
                "maxLength": 120
              },
              "city": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "state": {
                "type": "string",
                "maxLength": 64,
                "default": ""
              },
              "postal_code": {
                "type": "string",
                "minLength": 1,
                "maxLength": 15
              },
              "country": {
                "type": "string",
                "minLength": 2,
                "maxLength": 2
              }
            },
            "required": [
              "name",
              "email",
              "phone",
              "address1",
              "city",
              "postal_code",
              "country"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "design_id",
          "recipient"
        ],
        "additionalProperties": false
      },
      "MakingSupplierCredentialInput": {
        "type": "object",
        "properties": {
          "api_key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "api_secret": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "store_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          }
        },
        "required": [
          "api_key"
        ],
        "additionalProperties": false
      },
      "MakingUploadDesignInput": {
        "type": "object",
        "properties": {
          "file_name": {
            "type": "string",
            "minLength": 3,
            "maxLength": 200,
            "pattern": "^[^/\\\\\\0]+\\.[A-Za-z0-9]{1,10}$"
          },
          "content_base64": {
            "type": "string",
            "minLength": 4,
            "maxLength": 27962035
          },
          "source_url": {
            "type": "string",
            "format": "uri",
            "maxLength": 2000
          },
          "drive_file_id": {
            "type": "string",
            "pattern": "^drv_[\\w-]{8,64}$"
          },
          "description": {
            "type": "string",
            "maxLength": 500
          }
        },
        "additionalProperties": false
      },
      "MeetingVoice": {
        "type": "object",
        "properties": {
          "voice": {
            "type": "string",
            "minLength": 1
          },
          "language": {
            "type": "string",
            "pattern": "^[A-Za-z]{2,8}(?:-[A-Za-z0-9]{1,8})*$"
          }
        },
        "additionalProperties": false
      },
      "MemberIdBody": {
        "type": "object",
        "properties": {
          "member_id": {}
        },
        "additionalProperties": false
      },
      "MemoryAddInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "episode_body": {
            "type": "string",
            "minLength": 1,
            "maxLength": 8000
          },
          "source": {
            "type": "string",
            "enum": [
              "text",
              "json",
              "message"
            ],
            "default": "text"
          },
          "source_description": {
            "type": "string",
            "maxLength": 500,
            "default": ""
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "reference_time": {
            "type": "string",
            "format": "date-time"
          },
          "excluded_entity_types": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z][A-Za-z0-9_]*$"
            },
            "maxItems": 10
          },
          "custom_extraction_instructions": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          },
          "previous_episode_uuids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "maxItems": 10
          },
          "saga": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "saga_previous_episode_uuid": {
            "type": "string",
            "format": "uuid"
          },
          "from_message_id": {
            "type": "string",
            "pattern": "^amsg_[A-Za-z0-9_-]{1,64}$"
          }
        },
        "required": [
          "name",
          "episode_body"
        ],
        "additionalProperties": false
      },
      "MemoryEntityTypeChangeInput": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "minLength": 1
          },
          "fields": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "pattern": "^[A-Za-z][A-Za-z0-9_]*$"
                },
                "description": {
                  "type": "string",
                  "default": ""
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "text",
                    "number",
                    "date",
                    "boolean",
                    "one_of"
                  ]
                },
                "options": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  },
                  "minItems": 1
                }
              },
              "required": [
                "name",
                "kind"
              ],
              "additionalProperties": false
            }
          }
        },
        "additionalProperties": false
      },
      "MemoryEntityTypeInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "pattern": "^[A-Za-z][A-Za-z0-9_]*$"
          },
          "description": {
            "type": "string",
            "minLength": 1
          },
          "fields": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "pattern": "^[A-Za-z][A-Za-z0-9_]*$"
                },
                "description": {
                  "type": "string",
                  "default": ""
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "text",
                    "number",
                    "date",
                    "boolean",
                    "one_of"
                  ]
                },
                "options": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  },
                  "minItems": 1
                }
              },
              "required": [
                "name",
                "kind"
              ],
              "additionalProperties": false
            },
            "default": []
          }
        },
        "required": [
          "name",
          "description"
        ],
        "additionalProperties": false
      },
      "MemoryEpisodeEntitiesInput": {
        "type": "object",
        "properties": {
          "episode_uuids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "minItems": 1,
            "maxItems": 10
          }
        },
        "required": [
          "episode_uuids"
        ],
        "additionalProperties": false
      },
      "MemorySearchFactsInput": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000
          },
          "max_facts": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50,
            "default": 10
          },
          "center_node_uuid": {
            "type": "string",
            "format": "uuid"
          },
          "edge_types": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z][A-Za-z0-9_]*$"
            },
            "maxItems": 20
          },
          "valid_at_after": {
            "type": "string",
            "format": "date-time"
          },
          "valid_at_before": {
            "type": "string",
            "format": "date-time"
          },
          "invalid_at_after": {
            "type": "string",
            "format": "date-time"
          },
          "invalid_at_before": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "query"
        ],
        "additionalProperties": false
      },
      "MemorySearchNodesInput": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000
          },
          "max_nodes": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50,
            "default": 10
          },
          "entity_types": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z][A-Za-z0-9_]*$"
            },
            "maxItems": 20
          },
          "center_node_uuid": {
            "type": "string",
            "format": "uuid"
          },
          "field_filters": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "field": {
                  "type": "string",
                  "pattern": "^[A-Za-z][A-Za-z0-9_]*$"
                },
                "value": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean"
                    }
                  ]
                }
              },
              "required": [
                "field",
                "value"
              ],
              "additionalProperties": false
            },
            "minItems": 1
          }
        },
        "required": [
          "query"
        ],
        "additionalProperties": false
      },
      "MemorySettingsInput": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "call_memory_access": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "MemorySummarizeSagaInput": {
        "type": "object",
        "properties": {
          "saga_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "required": [
          "saga_name"
        ],
        "additionalProperties": false
      },
      "MemoryTripletInput": {
        "type": "object",
        "properties": {
          "source_node_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "edge_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "fact": {
            "type": "string",
            "minLength": 1,
            "maxLength": 8000
          },
          "target_node_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "source_node_uuid": {
            "type": "string",
            "format": "uuid"
          },
          "target_node_uuid": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "source_node_name",
          "edge_name",
          "fact",
          "target_node_name"
        ],
        "additionalProperties": false
      },
      "MemoryUndoInput": {
        "type": "object",
        "properties": {
          "dry_run": {
            "type": "boolean",
            "default": false
          }
        },
        "additionalProperties": false
      },
      "MissionReviewInput": {
        "type": "object",
        "properties": {
          "decision": {
            "type": "string",
            "enum": [
              "raise",
              "continue",
              "close"
            ]
          },
          "limit": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "decision"
        ],
        "additionalProperties": false
      },
      "NotificationRuleRequestBody": {
        "type": "object",
        "additionalProperties": {}
      },
      "OAuthParams": {
        "type": "object",
        "additionalProperties": {
          "type": "string"
        }
      },
      "OidcIdpConfigCreateInput": {
        "type": "object",
        "properties": {
          "display_name": {
            "type": "string",
            "maxLength": 120
          },
          "issuer_uri": {
            "type": "string",
            "format": "uri",
            "pattern": "^https:\\/\\/"
          },
          "client_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "client_secret": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "audience": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "not": {}
                  },
                  {
                    "type": "string",
                    "maxLength": 512
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "redirect_uri": {
            "type": "string",
            "format": "uri",
            "pattern": "^https:\\/\\/"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "minItems": 1
          },
          "claim_mapping_policy": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "not": {}
                  },
                  {
                    "type": "object",
                    "additionalProperties": {}
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "jwks_cache_ttl_seconds": {
            "type": "integer",
            "minimum": 60,
            "maximum": 3600
          },
          "allowed_return_origins": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "not": {}
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uri",
                      "pattern": "^https:\\/\\/"
                    },
                    "maxItems": 10
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "sso_slug": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "not": {}
                  },
                  {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 63,
                    "pattern": "^[a-z0-9]([a-z0-9-]*[a-z0-9])?$"
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "default_member_role": {
            "type": "string",
            "enum": [
              "readonly",
              "standard",
              "admin"
            ]
          },
          "active": {
            "type": "boolean"
          }
        },
        "required": [
          "issuer_uri",
          "client_id",
          "client_secret",
          "redirect_uri"
        ],
        "additionalProperties": false
      },
      "OidcIdpConfigUpdateInput": {
        "type": "object",
        "properties": {
          "display_name": {
            "type": "string",
            "maxLength": 120
          },
          "issuer_uri": {
            "type": "string",
            "format": "uri",
            "pattern": "^https:\\/\\/"
          },
          "client_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "client_secret": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "audience": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "not": {}
                  },
                  {
                    "type": "string",
                    "maxLength": 512
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "redirect_uri": {
            "type": "string",
            "format": "uri",
            "pattern": "^https:\\/\\/"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "minItems": 1
          },
          "claim_mapping_policy": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "not": {}
                  },
                  {
                    "type": "object",
                    "additionalProperties": {}
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "jwks_cache_ttl_seconds": {
            "type": "integer",
            "minimum": 60,
            "maximum": 3600
          },
          "allowed_return_origins": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "not": {}
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uri",
                      "pattern": "^https:\\/\\/"
                    },
                    "maxItems": 10
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "sso_slug": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "not": {}
                  },
                  {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 63,
                    "pattern": "^[a-z0-9]([a-z0-9-]*[a-z0-9])?$"
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "default_member_role": {
            "type": "string",
            "enum": [
              "readonly",
              "standard",
              "admin"
            ]
          },
          "active": {
            "type": "boolean"
          },
          "sso_login_enabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "OpenAgentAccountInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "description": {
            "type": "string",
            "maxLength": 500
          },
          "monthly_budget_cents": {
            "type": "integer",
            "minimum": 100
          },
          "phone": {
            "type": "object",
            "properties": {
              "country": {
                "type": "string",
                "enum": [
                  "US",
                  "CA"
                ]
              },
              "area_code": {
                "type": "string",
                "pattern": "^\\d{3}$"
              },
              "number_type": {
                "type": "string",
                "enum": [
                  "local",
                  "toll_free"
                ]
              }
            },
            "required": [
              "country"
            ],
            "additionalProperties": false
          },
          "wallet": {
            "type": "object",
            "properties": {
              "agent_public_key": {
                "type": "string",
                "pattern": "^[A-Za-z0-9+/]{86,90}={0,2}$"
              },
              "per_payment_cap_usdc": {
                "type": "number",
                "minimum": 0.000001,
                "maximum": 9007199254.740992
              },
              "daily_cap_usdc": {
                "type": "number",
                "minimum": 0.000001,
                "maximum": 9007199254.740992
              }
            },
            "required": [
              "agent_public_key"
            ],
            "additionalProperties": false
          },
          "inbox": {
            "type": "object",
            "properties": {
              "domain": {
                "type": "string",
                "minLength": 4,
                "maxLength": 253,
                "pattern": "^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"
              }
            },
            "required": [
              "domain"
            ],
            "additionalProperties": false
          },
          "skip": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "inbox",
                "phone",
                "browser",
                "card",
                "wallet",
                "making",
                "workspace"
              ]
            },
            "maxItems": 7,
            "default": []
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false
      },
      "OpenBody": {
        "type": "object",
        "properties": {
          "intent_summary": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "intent_services": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 64
          },
          "expected_counterparties": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 256
          },
          "baseline_profile": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {}
              },
              {
                "type": "null"
              }
            ]
          },
          "expected_output_shape": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {}
              },
              {
                "type": "null"
              }
            ]
          },
          "max_actions": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 2147483647
              },
              {
                "type": "null"
              }
            ]
          },
          "max_dropoff_bytes": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "coverage_cap_cents": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "max_duration_seconds": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 2147483647
              },
              {
                "type": "null"
              }
            ]
          },
          "max_concurrent_intents": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 2147483647
              },
              {
                "type": "null"
              }
            ]
          },
          "max_actions_per_service": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 2147483647
            }
          },
          "cap_behavior": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "enum": [
                "pause",
                "refuse_action",
                "end_mission"
              ]
            },
            "propertyNames": {
              "enum": [
                "coverage_cap_cents",
                "max_dropoff_bytes",
                "max_concurrent_intents",
                "max_actions",
                "max_duration_seconds",
                "max_actions_per_service"
              ]
            }
          },
          "coverage_cap_period": {
            "type": "string",
            "enum": [
              "mission",
              "day"
            ]
          },
          "cap_time_zone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "making_orders_up_to_cents": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "expires_in_seconds": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "parent_passport_services": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "passport_jti": {
            "type": "string"
          },
          "run_twin": {
            "type": "boolean"
          },
          "recipients": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1024
            },
            "minItems": 1,
            "maxItems": 1000
          },
          "recipient_pins": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "path": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128
                },
                "op": {
                  "type": "string",
                  "enum": [
                    "eq",
                    "in"
                  ]
                },
                "value": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 1024
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 1024
                      },
                      "minItems": 1,
                      "maxItems": 2000
                    }
                  ]
                }
              },
              "required": [
                "path",
                "op",
                "value"
              ],
              "additionalProperties": false
            },
            "minItems": 1,
            "maxItems": 64
          },
          "reply_to_message": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "agent_id": {
            "type": "string",
            "pattern": "^agt_[\\w-]+$",
            "maxLength": 256
          }
        },
        "required": [
          "intent_summary"
        ],
        "additionalProperties": false
      },
      "OpenBrowserSessionInput": {
        "type": "object",
        "properties": {
          "max_minutes": {
            "type": "integer",
            "minimum": 1,
            "maximum": 360
          }
        },
        "additionalProperties": false
      },
      "OperatorMissionStartInput": {
        "type": "object",
        "properties": {
          "agent_id": {
            "type": "string",
            "pattern": "^agt_[\\w-]+$",
            "maxLength": 256
          },
          "mission": {
            "type": "object",
            "properties": {
              "intent_summary": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "intent_services": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 64
              },
              "expected_counterparties": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 256
              },
              "baseline_profile": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": {}
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "expected_output_shape": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": {}
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "max_actions": {
                "anyOf": [
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 2147483647
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "max_dropoff_bytes": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "coverage_cap_cents": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "max_duration_seconds": {
                "anyOf": [
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 2147483647
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "max_concurrent_intents": {
                "anyOf": [
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 2147483647
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "max_actions_per_service": {
                "type": "object",
                "additionalProperties": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 2147483647
                }
              },
              "cap_behavior": {
                "type": "object",
                "additionalProperties": {
                  "type": "string",
                  "enum": [
                    "pause",
                    "refuse_action",
                    "end_mission"
                  ]
                },
                "propertyNames": {
                  "enum": [
                    "coverage_cap_cents",
                    "max_dropoff_bytes",
                    "max_concurrent_intents",
                    "max_actions",
                    "max_duration_seconds",
                    "max_actions_per_service"
                  ]
                }
              },
              "coverage_cap_period": {
                "type": "string",
                "enum": [
                  "mission",
                  "day"
                ]
              },
              "cap_time_zone": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "making_orders_up_to_cents": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "expires_in_seconds": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "parent_passport_services": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "passport_jti": {
                "type": "string"
              },
              "run_twin": {
                "type": "boolean"
              },
              "recipients": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1024
                },
                "minItems": 1,
                "maxItems": 1000
              },
              "recipient_pins": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "path": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    },
                    "op": {
                      "type": "string",
                      "enum": [
                        "eq",
                        "in"
                      ]
                    },
                    "value": {
                      "anyOf": [
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 1024
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 1024
                          },
                          "minItems": 1,
                          "maxItems": 2000
                        }
                      ]
                    }
                  },
                  "required": [
                    "path",
                    "op",
                    "value"
                  ],
                  "additionalProperties": false
                },
                "minItems": 1,
                "maxItems": 64
              },
              "reply_to_message": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "required": [
              "intent_summary"
            ],
            "additionalProperties": false
          },
          "passport": {
            "type": "object",
            "properties": {
              "scopes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "service_connection_id": {
                      "type": "string"
                    },
                    "scopes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "constraints": {
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "op": {
                                "type": "string",
                                "enum": [
                                  "eq",
                                  "not_eq",
                                  "in",
                                  "not_in",
                                  "matches",
                                  "starts_with",
                                  "lt",
                                  "lte",
                                  "gt",
                                  "gte",
                                  "exists",
                                  "not_exists"
                                ]
                              },
                              "value": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "maxLength": 1024
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean"
                                  },
                                  {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "maxLength": 1024
                                    },
                                    "maxItems": 256
                                  }
                                ]
                              }
                            },
                            "required": [
                              "path",
                              "op",
                              "value"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string",
                                "const": "any_of"
                              },
                              "op": {
                                "type": "string",
                                "const": "any_of"
                              },
                              "value": {
                                "type": "array",
                                "items": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "path": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      },
                                      "op": {
                                        "type": "string",
                                        "enum": [
                                          "eq",
                                          "not_eq",
                                          "in",
                                          "not_in",
                                          "matches",
                                          "starts_with",
                                          "lt",
                                          "lte",
                                          "gt",
                                          "gte",
                                          "exists",
                                          "not_exists"
                                        ]
                                      },
                                      "value": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "maxLength": 1024
                                          },
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "boolean"
                                          },
                                          {
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "maxLength": 1024
                                            },
                                            "maxItems": 256
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "path",
                                      "op",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 1,
                                  "maxItems": 32
                                },
                                "minItems": 2,
                                "maxItems": 16
                              }
                            },
                            "required": [
                              "path",
                              "op",
                              "value"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      },
                      "maxItems": 32
                    },
                    "intents": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "params": {
                            "type": "object",
                            "additionalProperties": {},
                            "default": {}
                          }
                        },
                        "required": [
                          "name"
                        ],
                        "additionalProperties": false
                      },
                      "maxItems": 32
                    },
                    "allow_data_from": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "maxItems": 32
                    }
                  },
                  "required": [
                    "service_connection_id",
                    "scopes"
                  ],
                  "additionalProperties": false
                }
              },
              "ttl_seconds": {
                "type": "integer",
                "minimum": 60,
                "maximum": 3600
              },
              "identity_claim_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "intent": {
                "type": "object",
                "properties": {
                  "summary": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "services": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "will_delegate": {
                    "type": "boolean"
                  },
                  "estimated_duration_seconds": {
                    "type": "integer",
                    "minimum": 60,
                    "maximum": 86400
                  },
                  "refs": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "params": {
                          "type": "object",
                          "additionalProperties": {},
                          "default": {}
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "additionalProperties": false
                    },
                    "maxItems": 64
                  },
                  "platform_intent": {
                    "type": "string",
                    "enum": [
                      "staff",
                      "monitor"
                    ]
                  }
                },
                "required": [
                  "summary",
                  "services"
                ],
                "additionalProperties": false
              },
              "checkpoint_interval_seconds": {
                "type": "integer",
                "minimum": 60,
                "maximum": 3600
              },
              "authority_binding_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^abn_[\\w-]+$"
                },
                "maxItems": 8
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "agent_id",
          "mission"
        ],
        "additionalProperties": false
      },
      "OperatorReviewInput": {
        "type": "object",
        "properties": {
          "overall_judgment": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50000
          },
          "checkpoint_notes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "checkpoint_claim_id": {
                  "type": "string",
                  "pattern": "^pc_[\\w-]+$"
                },
                "note": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 10000
                }
              },
              "required": [
                "checkpoint_claim_id",
                "note"
              ],
              "additionalProperties": false
            },
            "maxItems": 500,
            "default": []
          },
          "decision_rationales": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "operator_decision_claim_id": {
                  "type": "string",
                  "pattern": "^pc_[\\w-]+$"
                },
                "rationale": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 10000
                }
              },
              "required": [
                "operator_decision_claim_id",
                "rationale"
              ],
              "additionalProperties": false
            },
            "maxItems": 500,
            "default": []
          },
          "alert_explanations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "detector_claim_id": {
                  "type": "string",
                  "pattern": "^pc_[\\w-]+$"
                },
                "explanation": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 10000
                }
              },
              "required": [
                "detector_claim_id",
                "explanation"
              ],
              "additionalProperties": false
            },
            "maxItems": 500,
            "default": []
          },
          "incident_classification": {
            "type": "string",
            "enum": [
              "no_incident",
              "false_positive",
              "true_positive_handled",
              "true_positive_escalated",
              "inconclusive"
            ]
          },
          "lessons_learned": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50000
          }
        },
        "required": [
          "overall_judgment",
          "incident_classification",
          "lessons_learned"
        ],
        "additionalProperties": false
      },
      "OwnerTransferInput": {
        "type": "object",
        "properties": {
          "to": {
            "type": "string",
            "maxLength": 64
          },
          "amount_usdc": {
            "type": "string",
            "maxLength": 40
          },
          "signature": {
            "type": "string",
            "minLength": 16,
            "maxLength": 256
          },
          "expiry_ms": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "idempotency_key": {
            "type": "string",
            "minLength": 16,
            "maxLength": 64
          }
        },
        "required": [
          "to",
          "amount_usdc",
          "signature",
          "expiry_ms",
          "idempotency_key"
        ],
        "additionalProperties": false
      },
      "PartnerAccountControlsInput": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          }
        },
        "required": [
          "enabled"
        ],
        "additionalProperties": false
      },
      "PartnerAccountInviteInput": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "maxLength": 254
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          }
        },
        "required": [
          "email"
        ],
        "additionalProperties": false
      },
      "PartnerReleaseInput": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "maxLength": 254
          }
        },
        "additionalProperties": false
      },
      "PiiConfigUpsertInput": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "threshold": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "countries": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[A-Za-z]{2}$"
                },
                "maxItems": 64
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "PostSkillRequestInput": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          },
          "desired_input_schema": {
            "type": "object",
            "additionalProperties": {}
          },
          "desired_output_schema": {
            "type": "object",
            "additionalProperties": {}
          },
          "max_price_cents": {
            "type": "integer",
            "minimum": 0
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 32
            },
            "maxItems": 10,
            "default": []
          }
        },
        "required": [
          "description"
        ],
        "additionalProperties": false
      },
      "ProfileActivationBody": {
        "type": "object",
        "properties": {
          "profile_kind": {
            "type": "string",
            "enum": [
              "proof",
              "domain",
              "receiver"
            ]
          }
        },
        "required": [
          "profile_kind"
        ],
        "additionalProperties": false
      },
      "ProxyOperationLookupInput": {
        "type": "object",
        "properties": {
          "operation_id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{22,256}$"
          },
          "include_response": {
            "type": "boolean",
            "default": false
          }
        },
        "required": [
          "operation_id"
        ],
        "additionalProperties": false
      },
      "ProxyRequestInput": {
        "type": "object",
        "properties": {
          "service": {
            "type": "string",
            "minLength": 1,
            "description": "Provider slug (e.g. \"openai\", \"slack\")"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Full target URL"
          },
          "method": {
            "type": "string",
            "enum": [
              "GET",
              "POST",
              "PUT",
              "PATCH",
              "DELETE"
            ]
          },
          "headers": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Extra headers (auth headers will be stripped)"
          },
          "body": {
            "description": "Request body"
          },
          "query": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Query parameters to append to URL"
          },
          "connection": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "description": "Which connection of the service to use, by name or id. Needed only when the account holds more than one."
          }
        },
        "required": [
          "service",
          "url",
          "method"
        ],
        "additionalProperties": false
      },
      "ProxyToggleBody": {
        "type": "object",
        "properties": {
          "proxy_enabled": {
            "type": "boolean"
          }
        },
        "required": [
          "proxy_enabled"
        ],
        "additionalProperties": false
      },
      "PublishSiteInput": {
        "type": "object",
        "properties": {
          "files": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "path": {
                  "type": "string",
                  "minLength": 2,
                  "maxLength": 255,
                  "pattern": "^\\/[A-Za-z0-9._~!$&'()*+,;=:@%/-]*[A-Za-z0-9_~!$&'()*+,;=:@%-]$"
                },
                "content": {
                  "type": "string",
                  "maxLength": 20971520
                },
                "content_base64": {
                  "type": "string",
                  "maxLength": 29360128,
                  "pattern": "^[A-Za-z0-9+/]*={0,2}$"
                }
              },
              "required": [
                "path"
              ],
              "additionalProperties": false
            },
            "minItems": 1
          },
          "server": {
            "type": "object",
            "properties": {
              "source": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "source"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "files"
        ],
        "additionalProperties": false
      },
      "PublishSkillInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 64,
            "pattern": "^[a-z0-9][a-z0-9-]*[a-z0-9]$"
          },
          "description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000
          },
          "version": {
            "type": "string",
            "pattern": "^\\d+\\.\\d+\\.\\d+$"
          },
          "input_schema": {
            "type": "object",
            "additionalProperties": {},
            "description": "JSON Schema for skill input"
          },
          "output_schema": {
            "type": "object",
            "additionalProperties": {},
            "description": "JSON Schema for skill output"
          },
          "trust_level_required": {
            "type": "string",
            "enum": [
              "L0",
              "L1",
              "L2"
            ]
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 32
            },
            "maxItems": 10,
            "default": []
          },
          "price_credits": {
            "type": "integer",
            "minimum": 0
          },
          "agent_id": {
            "type": "string",
            "description": "Agent ID that provides this skill"
          },
          "execution_mode": {
            "type": "string",
            "enum": [
              "open",
              "sealed",
              "source"
            ],
            "default": "open"
          },
          "llm_enabled": {
            "type": "boolean"
          },
          "llm_provider": {
            "type": "string"
          },
          "llm_model": {
            "type": "string"
          },
          "llm_config": {
            "type": "object",
            "properties": {
              "temperature": {
                "type": "number",
                "minimum": 0,
                "maximum": 2
              },
              "max_tokens": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100000
              },
              "system_prompt": {
                "type": "string",
                "maxLength": 10000
              }
            },
            "additionalProperties": false
          },
          "required_credentials": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "provider": {
                  "type": "string"
                },
                "scopes": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "provider",
                "scopes"
              ],
              "additionalProperties": false
            }
          },
          "credential_mode": {
            "type": "string",
            "enum": [
              "none",
              "buyer_provides",
              "seller_provides",
              "both"
            ],
            "default": "none"
          },
          "seller_credential_limit": {
            "type": "object",
            "properties": {
              "max_calls": {
                "type": "integer",
                "minimum": 1
              },
              "max_cost_credits": {
                "type": "integer",
                "minimum": 1
              }
            },
            "additionalProperties": false
          },
          "price_per_invocation": {
            "type": "integer",
            "minimum": 0
          },
          "execution_script": {
            "type": "string",
            "maxLength": 100000
          },
          "execution_runtime": {
            "type": "string",
            "enum": [
              "python",
              "javascript",
              "none"
            ]
          },
          "dependencies": {
            "type": "string",
            "maxLength": 10000
          },
          "accepts_requests": {
            "type": "boolean"
          },
          "execution_steps": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "llm",
                    "script"
                  ]
                },
                "label": {
                  "type": "string",
                  "maxLength": 64
                },
                "runtime": {
                  "type": "string",
                  "enum": [
                    "python",
                    "javascript"
                  ]
                },
                "script": {
                  "type": "string",
                  "maxLength": 100000
                },
                "dependencies": {
                  "type": "string",
                  "maxLength": 10000
                },
                "llm_provider": {
                  "type": "string"
                },
                "llm_model": {
                  "type": "string"
                },
                "llm_config": {
                  "type": "object",
                  "properties": {
                    "temperature": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 2
                    },
                    "max_tokens": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 100000
                    },
                    "system_prompt": {
                      "type": "string",
                      "maxLength": 10000
                    }
                  },
                  "additionalProperties": false
                }
              },
              "required": [
                "type"
              ],
              "additionalProperties": false
            },
            "minItems": 1
          }
        },
        "required": [
          "name",
          "description",
          "version",
          "input_schema",
          "output_schema",
          "trust_level_required"
        ],
        "additionalProperties": false
      },
      "PurchaseMerchantResultInput": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "const": "completed"
              },
              "order_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "required": [
              "status",
              "order_id"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "const": "failed"
              }
            },
            "required": [
              "status"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "const": "pending"
              }
            },
            "required": [
              "status"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "const": "requires_user_action"
              },
              "reason": {
                "type": "string",
                "enum": [
                  "3ds",
                  "redirect",
                  "other"
                ]
              }
            },
            "required": [
              "status",
              "reason"
            ],
            "additionalProperties": false
          }
        ]
      },
      "RateSkillInput": {
        "type": "object",
        "properties": {
          "rating": {
            "type": "integer",
            "minimum": 1,
            "maximum": 5
          },
          "invocation_id": {
            "type": "string"
          }
        },
        "required": [
          "rating"
        ],
        "additionalProperties": false
      },
      "ReasonBody": {
        "type": "object",
        "properties": {
          "reason_code": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$"
          }
        },
        "required": [
          "reason_code"
        ],
        "additionalProperties": false
      },
      "ReceiverChallengeInput": {
        "type": "object",
        "properties": {
          "signed_request": {
            "type": "string",
            "minLength": 3,
            "maxLength": 1000000,
            "pattern": "^[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+$"
          },
          "agent_proof": {
            "type": "string",
            "minLength": 3,
            "maxLength": 1000000,
            "pattern": "^[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+$"
          },
          "passport": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000000
          },
          "authority_ref": {
            "type": "object",
            "properties": {
              "binding_id": {
                "type": "string",
                "pattern": "^abn_[\\w-]+$"
              },
              "binding_version": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "binding_claim_id": {
                "type": "string",
                "pattern": "^pc_[\\w-]+$"
              },
              "binding_digest": {
                "type": "string",
                "pattern": "^sha256:[0-9a-f]{64}$"
              },
              "receiver_id": {
                "type": "string",
                "pattern": "^rcv_[\\w-]+$"
              },
              "receiver_profile_version_id": {
                "type": "string",
                "pattern": "^apv_[\\w-]+$"
              },
              "expires_at": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "binding_id",
              "binding_version",
              "binding_claim_id",
              "binding_digest",
              "receiver_id",
              "receiver_profile_version_id",
              "expires_at"
            ],
            "additionalProperties": false
          },
          "receiver_profile_version_id": {
            "type": "string",
            "pattern": "^apv_[\\w-]+$"
          },
          "receiver_request_id": {
            "type": "string",
            "minLength": 22,
            "maxLength": 256,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "mission_id": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^ms_[\\w-]+$"
              },
              {
                "type": "null"
              }
            ]
          },
          "action_uri": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024,
            "pattern": "^[A-Za-z][A-Za-z0-9._:/-]*$"
          },
          "resource_hash": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^sha256:[0-9a-f]{64}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "request_hash": {
            "type": "string",
            "pattern": "^sha256:[0-9a-f]{64}$"
          },
          "normalized_request": {
            "type": "object",
            "additionalProperties": {
              "anyOf": [
                {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                {
                  "type": "array",
                  "items": {}
                },
                {
                  "type": "object",
                  "additionalProperties": {}
                }
              ]
            }
          },
          "requested_facts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "fact_id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 512
                },
                "mode": {
                  "type": "string",
                  "enum": [
                    "predicate",
                    "pairwise",
                    "exact_private",
                    "issuer_evidence",
                    "status_only"
                  ]
                }
              },
              "required": [
                "fact_id",
                "mode"
              ],
              "additionalProperties": false
            },
            "minItems": 1,
            "maxItems": 256
          },
          "nonce": {
            "type": "string",
            "minLength": 22,
            "maxLength": 256,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "issued_at": {
            "type": "integer",
            "minimum": 0
          },
          "expires_at": {
            "type": "integer",
            "exclusiveMinimum": 0
          }
        },
        "required": [
          "signed_request",
          "agent_proof",
          "passport",
          "authority_ref",
          "receiver_profile_version_id",
          "receiver_request_id",
          "mission_id",
          "action_uri",
          "resource_hash",
          "request_hash",
          "normalized_request",
          "requested_facts",
          "nonce",
          "issued_at",
          "expires_at"
        ],
        "additionalProperties": false
      },
      "ReceiverReceiptInput": {
        "type": "object",
        "properties": {
          "native_format": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "signed_receipt": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000000
          }
        },
        "required": [
          "native_format",
          "signed_receipt"
        ],
        "additionalProperties": false
      },
      "RefreshPassportInput": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string"
          },
          "ttl_seconds": {
            "type": "integer",
            "minimum": 60,
            "maximum": 3600
          }
        },
        "required": [
          "token"
        ],
        "additionalProperties": false
      },
      "RefundInput": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          }
        },
        "additionalProperties": false
      },
      "RegisterAgentInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "pattern": "^[a-z0-9_][a-z0-9_-]*[a-z0-9_]$"
          },
          "description": {
            "type": "string",
            "maxLength": 256
          },
          "profile": {
            "type": "string",
            "enum": [
              "proxied-llm-bot"
            ]
          },
          "accountability_mode": {
            "type": "string",
            "enum": [
              "enforced",
              "logged",
              "standard"
            ]
          },
          "on_warning": {
            "type": "string",
            "enum": [
              "notify",
              "block"
            ]
          },
          "on_critical": {
            "type": "string",
            "enum": [
              "notify",
              "block"
            ]
          },
          "credential_access": {
            "type": "string",
            "enum": [
              "direct",
              "proxy_preferred",
              "proxy_only"
            ]
          },
          "icon_url": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100000
              },
              {
                "type": "null"
              }
            ]
          },
          "skill_access_mode": {
            "type": "string",
            "enum": [
              "none",
              "custom",
              "all"
            ]
          },
          "allowed_skills": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "key_mode": {
            "type": "string",
            "enum": [
              "stack_managed",
              "customer_managed",
              "co_signed"
            ]
          },
          "twin_policy": {
            "type": "string",
            "enum": [
              "always",
              "high_stakes_only",
              "never",
              "per_mission"
            ]
          },
          "twin_llm_model": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/@+-]*$"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_synthetic": {
            "type": "boolean"
          },
          "eval_traffic": {
            "type": "boolean"
          },
          "llm_inject_system_prompt": {
            "type": "boolean"
          },
          "llm_redact_pii": {
            "type": "boolean"
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false
      },
      "RenameConnectionBody": {
        "type": "object",
        "properties": {
          "connection_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 40,
            "pattern": "^[A-Za-z0-9 -]+$"
          }
        },
        "required": [
          "connection_name"
        ],
        "additionalProperties": false
      },
      "RentAHumanFundCompleteInput": {
        "type": "object",
        "properties": {
          "fund_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "signed": {
            "type": "string",
            "pattern": "^[A-Za-z0-9+/]{60,120}={0,2}$"
          }
        },
        "required": [
          "fund_id",
          "signed"
        ],
        "additionalProperties": false
      },
      "RentAHumanFundInput": {
        "type": "object",
        "properties": {
          "amount_cents": {
            "type": "integer",
            "minimum": 100,
            "maximum": 1000000
          }
        },
        "required": [
          "amount_cents"
        ],
        "additionalProperties": false
      },
      "RentAHumanJoinCompleteInput": {
        "type": "object",
        "properties": {
          "join_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "signed": {
            "type": "string",
            "pattern": "^[A-Za-z0-9+/]{60,120}={0,2}$"
          }
        },
        "required": [
          "join_id",
          "signed"
        ],
        "additionalProperties": false
      },
      "RentAHumanJoinInput": {
        "type": "object",
        "properties": {
          "country": {
            "type": "string",
            "minLength": 2
          },
          "city": {
            "type": "string",
            "minLength": 1
          },
          "agent_name": {
            "type": "string",
            "minLength": 2
          },
          "accept_terms": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "country",
          "accept_terms"
        ],
        "additionalProperties": false
      },
      "ReplaceServiceRequirementBody": {
        "type": "object",
        "properties": {
          "requirement": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "layer": {
                    "type": "string",
                    "enum": [
                      "humanity",
                      "identity",
                      "delegation",
                      "workload"
                    ]
                  },
                  "requires_claim": {
                    "type": "string"
                  },
                  "minimum_assurance": {
                    "type": "string",
                    "enum": [
                      "low",
                      "substantial",
                      "high"
                    ]
                  },
                  "accepted_providers": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": []
                  },
                  "required_scopes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "requires_pii": {
                    "type": "boolean",
                    "default": false
                  },
                  "lawful_basis": {
                    "type": "string"
                  }
                },
                "required": [
                  "layer",
                  "requires_claim",
                  "minimum_assurance"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "requirement"
        ],
        "additionalProperties": false
      },
      "ReplacementAuthorizationInput": {
        "type": "object",
        "properties": {
          "operation_id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{22,256}$"
          },
          "replacement_operation_id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{22,256}$"
          },
          "acknowledged_warning_hash": {
            "type": "string",
            "pattern": "^sha256:[0-9a-f]{64}$"
          }
        },
        "required": [
          "operation_id",
          "replacement_operation_id",
          "acknowledged_warning_hash"
        ],
        "additionalProperties": false
      },
      "ReplyAgentEmailInput": {
        "type": "object",
        "properties": {
          "body": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100000
          },
          "body_html": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500000
          },
          "reply_all": {
            "type": "boolean"
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "email",
              "maxLength": 320
            }
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "email",
              "maxLength": 320
            }
          },
          "subject": {
            "type": "string",
            "minLength": 1,
            "maxLength": 998
          },
          "attachments": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "file_id": {
                      "type": "string",
                      "pattern": "^drv_[\\w-]{8,64}$"
                    },
                    "filename": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    }
                  },
                  "required": [
                    "file_id"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "filename": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    "content_type": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9][\\w.+-]*\\/[A-Za-z0-9][\\w.+-]*$",
                      "maxLength": 127
                    },
                    "content_base64": {
                      "type": "string",
                      "maxLength": 13981020
                    }
                  },
                  "required": [
                    "filename",
                    "content_type",
                    "content_base64"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "include_quote": {
            "type": "boolean"
          }
        },
        "required": [
          "body"
        ],
        "additionalProperties": false
      },
      "RespondCalendarEventInput": {
        "type": "object",
        "properties": {
          "response": {
            "type": "string",
            "enum": [
              "accept",
              "tentative",
              "decline"
            ]
          },
          "notify_organizer": {
            "type": "boolean"
          }
        },
        "required": [
          "response"
        ],
        "additionalProperties": false
      },
      "ResumeAccountPieceInput": {
        "type": "object",
        "properties": {
          "piece": {
            "type": "string",
            "enum": [
              "inbox",
              "phone"
            ]
          }
        },
        "required": [
          "piece"
        ],
        "additionalProperties": false
      },
      "RevealBody": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{43}$"
          }
        },
        "required": [
          "token"
        ],
        "additionalProperties": false
      },
      "ReviewDecisionInput": {
        "type": "object",
        "properties": {
          "decision": {
            "type": "string",
            "enum": [
              "approved",
              "blocked"
            ]
          },
          "notes": {
            "type": "string",
            "maxLength": 1000
          },
          "block_future": {
            "type": "boolean"
          }
        },
        "required": [
          "decision"
        ],
        "additionalProperties": false
      },
      "RevokeAllInput": {
        "type": "object",
        "properties": {
          "confirm": {
            "type": "boolean",
            "const": true
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "confirm"
        ],
        "additionalProperties": false
      },
      "RevokeBody": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "enum": [
              "adversarial",
              "operator_initiated_clean"
            ]
          },
          "notes": {
            "type": "string",
            "maxLength": 1000
          }
        },
        "required": [
          "reason"
        ],
        "additionalProperties": false
      },
      "RevokePassportBody": {
        "type": "object",
        "properties": {
          "jti": {
            "type": "string",
            "minLength": 1
          },
          "reason": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "jti"
        ],
        "additionalProperties": false
      },
      "RevokeReasonBody": {
        "type": "object",
        "properties": {
          "reason": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "additionalProperties": false
      },
      "SayMeetingInput": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "minLength": 1
          },
          "wait_seconds": {
            "type": "integer",
            "minimum": 0,
            "maximum": 60
          }
        },
        "additionalProperties": false
      },
      "ScanRequestInput": {
        "type": "object",
        "properties": {
          "content": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "additionalProperties": {}
              }
            ]
          },
          "context": {
            "type": "string",
            "enum": [
              "email",
              "document",
              "webpage",
              "chat_log",
              "api_response",
              "calendar",
              "other"
            ]
          },
          "source": {
            "type": "string",
            "maxLength": 2048
          }
        },
        "required": [
          "content"
        ],
        "additionalProperties": false
      },
      "SendAgentEmailInput": {
        "type": "object",
        "properties": {
          "to": {
            "anyOf": [
              {
                "type": "string",
                "format": "email",
                "maxLength": 320
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "email",
                  "maxLength": 320
                },
                "minItems": 1
              }
            ]
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "email",
              "maxLength": 320
            }
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "email",
              "maxLength": 320
            }
          },
          "subject": {
            "type": "string",
            "minLength": 1,
            "maxLength": 998
          },
          "body": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100000
          },
          "body_html": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500000
          },
          "thread_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "attachments": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "file_id": {
                      "type": "string",
                      "pattern": "^drv_[\\w-]{8,64}$"
                    },
                    "filename": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    }
                  },
                  "required": [
                    "file_id"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "filename": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    "content_type": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9][\\w.+-]*\\/[A-Za-z0-9][\\w.+-]*$",
                      "maxLength": 127
                    },
                    "content_base64": {
                      "type": "string",
                      "maxLength": 13981020
                    }
                  },
                  "required": [
                    "filename",
                    "content_type",
                    "content_base64"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "reply_to_message": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "one_way": {
            "type": "boolean"
          }
        },
        "required": [
          "to",
          "body"
        ],
        "additionalProperties": false
      },
      "SendAgentSmsInput": {
        "type": "object",
        "properties": {
          "to": {
            "type": "string",
            "pattern": "^\\+[1-9]\\d{7,14}$"
          },
          "body": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1600
          },
          "reply_to_message": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "one_way": {
            "type": "boolean"
          }
        },
        "required": [
          "to",
          "body"
        ],
        "additionalProperties": false
      },
      "SendTelegramMessageInput": {
        "type": "object",
        "properties": {
          "chat_id": {
            "type": "string",
            "pattern": "^-?\\d{1,20}$"
          },
          "text": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          }
        },
        "required": [
          "chat_id",
          "text"
        ],
        "additionalProperties": false
      },
      "SetAccountBudgetInput": {
        "type": "object",
        "properties": {
          "monthly_budget_cents": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "monthly_budget_cents"
        ],
        "additionalProperties": false
      },
      "SetAgentIdentityInput": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "show_name": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SetAgentTrustInput": {
        "type": "object",
        "properties": {
          "trust": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "ask_first",
                  "trust_agents"
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "trust"
        ],
        "additionalProperties": false
      },
      "SetControlCheckedTypesInput": {
        "type": "object",
        "properties": {
          "types": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "model.call",
                    "proxy.call",
                    "tool.run",
                    "email.send",
                    "sms.send",
                    "telegram.send",
                    "call.start",
                    "call.answer",
                    "meeting.join",
                    "browser.session.start",
                    "browser.navigate",
                    "card.checkout",
                    "wallet.payment",
                    "workspace.exec",
                    "account.open",
                    "dropoff.create",
                    "dropoff.deposit",
                    "a2a.send",
                    "skill.invoke",
                    "passport.delegate",
                    "wake.deliver",
                    "drive.upload",
                    "drive.share",
                    "memory.write",
                    "memory.delete",
                    "brain.add",
                    "site.publish",
                    "payment.request",
                    "letter.send",
                    "post.scan",
                    "post.forward",
                    "post.shred",
                    "making.quote",
                    "making.order"
                  ]
                },
                "minItems": 1,
                "maxItems": 34
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "types"
        ],
        "additionalProperties": false
      },
      "SetControlDecisionAddressInput": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "minLength": 12,
            "maxLength": 2048
          },
          "timeout_ms": {
            "type": "integer",
            "minimum": 300,
            "maximum": 2000
          }
        },
        "required": [
          "url"
        ],
        "additionalProperties": false
      },
      "SetControlEventsAddressInput": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "minLength": 12,
            "maxLength": 2048
          }
        },
        "required": [
          "url"
        ],
        "additionalProperties": false
      },
      "SetControlModeInput": {
        "type": "object",
        "properties": {
          "mode": {
            "type": "string",
            "enum": [
              "none",
              "hosted"
            ]
          }
        },
        "required": [
          "mode"
        ],
        "additionalProperties": false
      },
      "SetControlOnUnavailableInput": {
        "type": "object",
        "properties": {
          "on_unavailable": {
            "type": "string",
            "enum": [
              "refuse",
              "allow"
            ]
          }
        },
        "required": [
          "on_unavailable"
        ],
        "additionalProperties": false
      },
      "SetControlPolicyInput": {
        "type": "object",
        "properties": {
          "definition": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "connections": {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "enum": [
                      "any",
                      "listed"
                    ],
                    "default": "any"
                  },
                  "rules": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[A-Za-z0-9][\\w.-]*$"
                        },
                        "effect": {
                          "type": "string",
                          "enum": [
                            "allow",
                            "review",
                            "deny"
                          ]
                        },
                        "access": {
                          "type": "object",
                          "properties": {
                            "connection_id": {
                              "type": "string",
                              "pattern": "^scon_[\\w-]+$"
                            },
                            "intents": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  },
                                  "params": {
                                    "type": "object",
                                    "additionalProperties": {},
                                    "default": {}
                                  }
                                },
                                "required": [
                                  "name"
                                ],
                                "additionalProperties": false
                              },
                              "maxItems": 32,
                              "default": []
                            },
                            "constraints": {
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "path": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      },
                                      "op": {
                                        "type": "string",
                                        "enum": [
                                          "eq",
                                          "not_eq",
                                          "in",
                                          "not_in",
                                          "matches",
                                          "starts_with",
                                          "lt",
                                          "lte",
                                          "gt",
                                          "gte",
                                          "exists",
                                          "not_exists"
                                        ]
                                      },
                                      "value": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "maxLength": 1024
                                          },
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "boolean"
                                          },
                                          {
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "maxLength": 1024
                                            },
                                            "maxItems": 256
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "path",
                                      "op",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "path": {
                                        "type": "string",
                                        "const": "any_of"
                                      },
                                      "op": {
                                        "type": "string",
                                        "const": "any_of"
                                      },
                                      "value": {
                                        "type": "array",
                                        "items": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "path": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 128
                                              },
                                              "op": {
                                                "type": "string",
                                                "enum": [
                                                  "eq",
                                                  "not_eq",
                                                  "in",
                                                  "not_in",
                                                  "matches",
                                                  "starts_with",
                                                  "lt",
                                                  "lte",
                                                  "gt",
                                                  "gte",
                                                  "exists",
                                                  "not_exists"
                                                ]
                                              },
                                              "value": {
                                                "anyOf": [
                                                  {
                                                    "type": "string",
                                                    "maxLength": 1024
                                                  },
                                                  {
                                                    "type": "number"
                                                  },
                                                  {
                                                    "type": "boolean"
                                                  },
                                                  {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string",
                                                      "maxLength": 1024
                                                    },
                                                    "maxItems": 256
                                                  }
                                                ]
                                              }
                                            },
                                            "required": [
                                              "path",
                                              "op",
                                              "value"
                                            ],
                                            "additionalProperties": false
                                          },
                                          "minItems": 1,
                                          "maxItems": 32
                                        },
                                        "minItems": 2,
                                        "maxItems": 16
                                      }
                                    },
                                    "required": [
                                      "path",
                                      "op",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  }
                                ]
                              },
                              "maxItems": 32,
                              "default": []
                            }
                          },
                          "required": [
                            "connection_id"
                          ],
                          "additionalProperties": false
                        },
                        "recipients": {
                          "type": "string",
                          "const": "per_mission"
                        }
                      },
                      "required": [
                        "id",
                        "effect",
                        "access"
                      ],
                      "additionalProperties": false
                    },
                    "maxItems": 64,
                    "default": []
                  }
                },
                "additionalProperties": false,
                "default": {}
              },
              "actions": {
                "type": "object",
                "properties": {
                  "kinds": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string",
                      "enum": [
                        "allow",
                        "review",
                        "deny"
                      ]
                    },
                    "propertyNames": {
                      "enum": [
                        "model.call",
                        "proxy.call",
                        "tool.run",
                        "email.send",
                        "sms.send",
                        "telegram.send",
                        "call.start",
                        "call.answer",
                        "meeting.join",
                        "browser.session.start",
                        "browser.navigate",
                        "card.checkout",
                        "wallet.payment",
                        "workspace.exec",
                        "account.open",
                        "dropoff.create",
                        "dropoff.deposit",
                        "a2a.send",
                        "skill.invoke",
                        "passport.delegate",
                        "wake.deliver",
                        "drive.upload",
                        "drive.share",
                        "memory.write",
                        "memory.delete",
                        "brain.add",
                        "site.publish",
                        "payment.request",
                        "letter.send",
                        "post.scan",
                        "post.forward",
                        "post.shred",
                        "making.quote",
                        "making.order"
                      ]
                    },
                    "default": {}
                  }
                },
                "additionalProperties": false,
                "default": {}
              },
              "recipients": {
                "type": "object",
                "properties": {
                  "email": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 254,
                          "pattern": "^(@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+|[^\\s@]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+)$"
                        },
                        "maxItems": 256
                      },
                      {
                        "type": "string",
                        "const": "per_mission"
                      }
                    ]
                  },
                  "sms": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^\\+[1-9]\\d{6,14}$"
                        },
                        "maxItems": 256
                      },
                      {
                        "type": "string",
                        "const": "per_mission"
                      }
                    ]
                  },
                  "call": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^\\+[1-9]\\d{6,14}$"
                        },
                        "maxItems": 256
                      },
                      {
                        "type": "string",
                        "const": "per_mission"
                      }
                    ]
                  }
                },
                "additionalProperties": false,
                "default": {}
              },
              "spend": {
                "type": "object",
                "properties": {
                  "max_per_action_cents": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 100000000
                  },
                  "limits": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "day",
                            "month",
                            "mission"
                          ]
                        },
                        "unit": {
                          "type": "string",
                          "enum": [
                            "cents",
                            "actions"
                          ]
                        },
                        "limit": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 1000000000
                        }
                      },
                      "required": [
                        "kind",
                        "unit",
                        "limit"
                      ],
                      "additionalProperties": false
                    },
                    "maxItems": 12,
                    "default": []
                  },
                  "max_concurrent": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 10000
                  },
                  "rules": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[A-Za-z0-9][\\w.-]*$"
                        },
                        "merchant": {
                          "type": "string",
                          "maxLength": 253,
                          "pattern": "^(\\*\\.)?[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$"
                        },
                        "payee": {
                          "type": "string",
                          "pattern": "^0x[0-9a-f]{40}$"
                        },
                        "category": {
                          "type": "string",
                          "pattern": "^[a-z][a-z0-9_-]{0,39}$"
                        },
                        "max_per_payment_cents": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 100000000
                        },
                        "max_per_day_cents": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 100000000
                        },
                        "max_per_month_cents": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 100000000
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    },
                    "maxItems": 64,
                    "default": []
                  },
                  "categories": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "merchant": {
                          "type": "string",
                          "maxLength": 253,
                          "pattern": "^(\\*\\.)?[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$"
                        },
                        "payee": {
                          "type": "string",
                          "pattern": "^0x[0-9a-f]{40}$"
                        },
                        "category": {
                          "type": "string",
                          "pattern": "^[a-z][a-z0-9_-]{0,39}$"
                        }
                      },
                      "required": [
                        "category"
                      ],
                      "additionalProperties": false
                    },
                    "maxItems": 256,
                    "default": []
                  }
                },
                "additionalProperties": false,
                "default": {}
              },
              "review": {
                "type": "object",
                "properties": {
                  "over_cents": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 100000000
                  },
                  "chat": {
                    "type": "object",
                    "properties": {
                      "max_per_payment_cents": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 100000000
                      },
                      "max_per_day_cents": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 100000000
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false,
                "default": {}
              },
              "surfaces": {
                "type": "object",
                "properties": {
                  "models": {
                    "type": "object",
                    "properties": {
                      "allowed": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*\\*?$"
                        },
                        "maxItems": 256
                      },
                      "max_cost_per_call_cents": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 100000000
                      }
                    },
                    "additionalProperties": false,
                    "default": {}
                  },
                  "browser": {
                    "type": "object",
                    "properties": {
                      "hosts": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 253,
                          "pattern": "^(\\*\\.)?[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$"
                        },
                        "maxItems": 256
                      }
                    },
                    "additionalProperties": false,
                    "default": {}
                  },
                  "card": {
                    "type": "object",
                    "properties": {
                      "merchants": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 253,
                          "pattern": "^(\\*\\.)?[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$"
                        },
                        "maxItems": 256
                      },
                      "max_amount_cents": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 100000000
                      }
                    },
                    "additionalProperties": false,
                    "default": {}
                  },
                  "wallet": {
                    "type": "object",
                    "properties": {
                      "payees": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^0x[0-9a-f]{40}$"
                        },
                        "maxItems": 256
                      },
                      "max_amount_cents": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 100000000
                      }
                    },
                    "additionalProperties": false,
                    "default": {}
                  },
                  "workspace": {
                    "type": "object",
                    "properties": {
                      "max_timeout_seconds": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 86400
                      }
                    },
                    "additionalProperties": false,
                    "default": {}
                  },
                  "tools": {
                    "type": "object",
                    "properties": {
                      "allowed": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*\\*?$"
                        },
                        "maxItems": 256
                      }
                    },
                    "additionalProperties": false,
                    "default": {}
                  }
                },
                "additionalProperties": false,
                "default": {}
              }
            },
            "required": [
              "name"
            ],
            "additionalProperties": false
          },
          "expected_revision": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "definition"
        ],
        "additionalProperties": false
      },
      "SetFlaggedContentSettingsInput": {
        "type": "object",
        "properties": {
          "warning": {
            "type": "string",
            "enum": [
              "withhold",
              "deliver"
            ]
          },
          "critical": {
            "type": "string",
            "enum": [
              "withhold",
              "deliver"
            ]
          }
        },
        "additionalProperties": false
      },
      "SetMessageAccessInput": {
        "type": "object",
        "properties": {
          "read_teammates": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "messages_read_only": {
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "additionalProperties": false
      },
      "SetMissionMakingAllowanceInput": {
        "type": "object",
        "properties": {
          "making_orders_up_to_cents": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "making_orders_up_to_cents"
        ],
        "additionalProperties": false
      },
      "SetServiceRequirementInput": {
        "type": "object",
        "properties": {
          "layer": {
            "type": "string",
            "enum": [
              "humanity",
              "identity",
              "delegation",
              "workload"
            ]
          },
          "requires_claim": {
            "type": "string"
          },
          "minimum_assurance": {
            "type": "string",
            "enum": [
              "low",
              "substantial",
              "high"
            ]
          },
          "accepted_providers": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "required_scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "requires_pii": {
            "type": "boolean",
            "default": false
          },
          "lawful_basis": {
            "type": "string"
          }
        },
        "required": [
          "layer",
          "requires_claim",
          "minimum_assurance"
        ],
        "additionalProperties": false
      },
      "SetSitePricesInput": {
        "type": "object",
        "properties": {
          "prices": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "path": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 255,
                  "pattern": "^\\/[A-Za-z0-9._~!$&'()*+,;=:@%/-]*(?:\\/\\*)?$"
                },
                "price_usdc": {
                  "type": "string",
                  "pattern": "^\\d+(?:\\.\\d{1,6})?$"
                },
                "description": {
                  "type": "string",
                  "maxLength": 200
                }
              },
              "required": [
                "path",
                "price_usdc"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "prices"
        ],
        "additionalProperties": false
      },
      "SetTrustInput": {
        "type": "object",
        "properties": {
          "trust": {
            "type": "string",
            "enum": [
              "ask_first",
              "trust_agents"
            ]
          }
        },
        "required": [
          "trust"
        ],
        "additionalProperties": false
      },
      "SetWakeRuleInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "source": {
            "type": "string",
            "enum": [
              "email",
              "sms",
              "voicemail",
              "call",
              "incoming_call",
              "payment",
              "post",
              "invite",
              "schedule",
              "handoff",
              "decision",
              "meeting",
              "service_event",
              "telegram"
            ]
          },
          "filters": {
            "type": "object",
            "properties": {
              "from": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 254,
                  "pattern": "^[^\\s]+$"
                },
                "minItems": 1,
                "maxItems": 50
              },
              "min_amount_cents": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000000
              }
            },
            "additionalProperties": false
          },
          "task": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "source"
        ],
        "additionalProperties": false
      },
      "SetWakeScheduleInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "cron": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "time_zone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "task": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "cron",
          "task"
        ],
        "additionalProperties": false
      },
      "SetWakeSettingsInput": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "time_zone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "quiet_start": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "quiet_end": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "quiet_mode": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "hold",
                  "drop"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "rate_limit_max": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1,
                "maximum": 2147483647
              },
              {
                "type": "null"
              }
            ]
          },
          "rate_limit_window_seconds": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 60,
                "maximum": 86400
              },
              {
                "type": "null"
              }
            ]
          },
          "delivery": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "mcp",
                    "webhook",
                    "mission"
                  ]
                },
                "minItems": 1,
                "maxItems": 3
              },
              {
                "type": "null"
              }
            ]
          },
          "invite_lead_minutes": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 1440
              },
              {
                "type": "null"
              }
            ]
          },
          "ring_incoming_calls": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "webhook_url": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 12,
                "maxLength": 2048
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "SetWorkspaceSettingsInput": {
        "type": "object",
        "properties": {
          "idle_pause_minutes": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number",
                    "const": 0
                  },
                  {
                    "type": "integer",
                    "minimum": 5,
                    "maximum": 2147483647
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "delete_after_days": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number",
                    "const": 0
                  },
                  {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2147483647
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "max_workspaces": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1,
                "maximum": 2147483647
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "SetWorkspaceSharingInput": {
        "type": "object",
        "properties": {
          "shared": {
            "type": "boolean"
          }
        },
        "required": [
          "shared"
        ],
        "additionalProperties": false
      },
      "SignerPolicyUpdateInput": {
        "type": "object",
        "properties": {
          "signature": {
            "type": "string",
            "minLength": 16,
            "maxLength": 256
          },
          "expiry_ms": {
            "type": "integer",
            "exclusiveMinimum": 0
          }
        },
        "required": [
          "signature",
          "expiry_ms"
        ],
        "additionalProperties": false
      },
      "SimulateBody": {
        "type": "object",
        "properties": {
          "intent": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "intent_claim"
              },
              "policy_decision": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "const": "fleet_policy"
                  },
                  "policy_id": {
                    "type": "string",
                    "minLength": 1
                  },
                  "policy_revision": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "mission_id": {
                    "type": "string",
                    "pattern": "^ms_[\\w-]+$"
                  },
                  "rule_id": {
                    "type": "string",
                    "minLength": 1
                  },
                  "request_hash": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$"
                  },
                  "effect": {
                    "type": "string",
                    "enum": [
                      "allow",
                      "review"
                    ]
                  }
                },
                "required": [
                  "origin",
                  "policy_id",
                  "policy_revision",
                  "mission_id",
                  "rule_id",
                  "request_hash",
                  "effect"
                ],
                "additionalProperties": false
              },
              "intent_type": {
                "type": "string",
                "enum": [
                  "http_call",
                  "mcp_tool",
                  "skill_invocation",
                  "onchain_tx",
                  "task_complete",
                  "a2a_dispatch"
                ]
              },
              "agent_id": {
                "type": "string",
                "pattern": "^(ag|agt)_[\\w-]+$"
              },
              "named_intent": {
                "type": "string",
                "pattern": "^[a-z][\\w-]*:[a-z][\\w-]*:[a-z][\\w-]*$"
              },
              "target": {
                "type": "string",
                "minLength": 1,
                "description": "For http_call: the granted service SLUG (e.g. 'stripe'), NOT a URL — put the URL in parameters.url. For mcp_tool: tool URI. For skill_invocation: skill_id. For onchain_tx: contract address."
              },
              "action": {
                "type": "string",
                "minLength": 1
              },
              "parameters": {
                "type": "object",
                "additionalProperties": {}
              },
              "estimated_cost": {
                "type": "object",
                "properties": {
                  "wallet_cents": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tokens": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "gas_gwei": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "wallet_cents",
                  "tokens",
                  "gas_gwei"
                ],
                "additionalProperties": false
              },
              "accountability": {
                "type": "string",
                "enum": [
                  "enforced",
                  "logged",
                  "standard"
                ],
                "default": "standard"
              },
              "reason": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2048
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "requires": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^pc_[\\w-]+$"
                },
                "default": []
              },
              "user_subject": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "mission_ref": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^ms_[\\w-]+$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "submitted_at": {
                "type": "integer"
              }
            },
            "required": [
              "type",
              "intent_type",
              "agent_id",
              "named_intent",
              "target",
              "action",
              "parameters",
              "estimated_cost",
              "reason",
              "user_subject",
              "mission_ref",
              "submitted_at"
            ],
            "additionalProperties": false
          },
          "intent_claim_ref": {
            "type": "string",
            "pattern": "^pc_[\\w-]+$"
          },
          "persist": {
            "type": "boolean"
          }
        },
        "required": [
          "intent"
        ],
        "additionalProperties": false
      },
      "SimulateControlPolicyInput": {
        "type": "object",
        "properties": {
          "agent_id": {
            "type": "string",
            "pattern": "^agt_[\\w-]+$"
          },
          "definition": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "connections": {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "enum": [
                      "any",
                      "listed"
                    ],
                    "default": "any"
                  },
                  "rules": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[A-Za-z0-9][\\w.-]*$"
                        },
                        "effect": {
                          "type": "string",
                          "enum": [
                            "allow",
                            "review",
                            "deny"
                          ]
                        },
                        "access": {
                          "type": "object",
                          "properties": {
                            "connection_id": {
                              "type": "string",
                              "pattern": "^scon_[\\w-]+$"
                            },
                            "intents": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  },
                                  "params": {
                                    "type": "object",
                                    "additionalProperties": {},
                                    "default": {}
                                  }
                                },
                                "required": [
                                  "name"
                                ],
                                "additionalProperties": false
                              },
                              "maxItems": 32,
                              "default": []
                            },
                            "constraints": {
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "path": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      },
                                      "op": {
                                        "type": "string",
                                        "enum": [
                                          "eq",
                                          "not_eq",
                                          "in",
                                          "not_in",
                                          "matches",
                                          "starts_with",
                                          "lt",
                                          "lte",
                                          "gt",
                                          "gte",
                                          "exists",
                                          "not_exists"
                                        ]
                                      },
                                      "value": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "maxLength": 1024
                                          },
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "boolean"
                                          },
                                          {
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "maxLength": 1024
                                            },
                                            "maxItems": 256
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "path",
                                      "op",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "path": {
                                        "type": "string",
                                        "const": "any_of"
                                      },
                                      "op": {
                                        "type": "string",
                                        "const": "any_of"
                                      },
                                      "value": {
                                        "type": "array",
                                        "items": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "path": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 128
                                              },
                                              "op": {
                                                "type": "string",
                                                "enum": [
                                                  "eq",
                                                  "not_eq",
                                                  "in",
                                                  "not_in",
                                                  "matches",
                                                  "starts_with",
                                                  "lt",
                                                  "lte",
                                                  "gt",
                                                  "gte",
                                                  "exists",
                                                  "not_exists"
                                                ]
                                              },
                                              "value": {
                                                "anyOf": [
                                                  {
                                                    "type": "string",
                                                    "maxLength": 1024
                                                  },
                                                  {
                                                    "type": "number"
                                                  },
                                                  {
                                                    "type": "boolean"
                                                  },
                                                  {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string",
                                                      "maxLength": 1024
                                                    },
                                                    "maxItems": 256
                                                  }
                                                ]
                                              }
                                            },
                                            "required": [
                                              "path",
                                              "op",
                                              "value"
                                            ],
                                            "additionalProperties": false
                                          },
                                          "minItems": 1,
                                          "maxItems": 32
                                        },
                                        "minItems": 2,
                                        "maxItems": 16
                                      }
                                    },
                                    "required": [
                                      "path",
                                      "op",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  }
                                ]
                              },
                              "maxItems": 32,
                              "default": []
                            }
                          },
                          "required": [
                            "connection_id"
                          ],
                          "additionalProperties": false
                        },
                        "recipients": {
                          "type": "string",
                          "const": "per_mission"
                        }
                      },
                      "required": [
                        "id",
                        "effect",
                        "access"
                      ],
                      "additionalProperties": false
                    },
                    "maxItems": 64,
                    "default": []
                  }
                },
                "additionalProperties": false,
                "default": {}
              },
              "actions": {
                "type": "object",
                "properties": {
                  "kinds": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string",
                      "enum": [
                        "allow",
                        "review",
                        "deny"
                      ]
                    },
                    "propertyNames": {
                      "enum": [
                        "model.call",
                        "proxy.call",
                        "tool.run",
                        "email.send",
                        "sms.send",
                        "telegram.send",
                        "call.start",
                        "call.answer",
                        "meeting.join",
                        "browser.session.start",
                        "browser.navigate",
                        "card.checkout",
                        "wallet.payment",
                        "workspace.exec",
                        "account.open",
                        "dropoff.create",
                        "dropoff.deposit",
                        "a2a.send",
                        "skill.invoke",
                        "passport.delegate",
                        "wake.deliver",
                        "drive.upload",
                        "drive.share",
                        "memory.write",
                        "memory.delete",
                        "brain.add",
                        "site.publish",
                        "payment.request",
                        "letter.send",
                        "post.scan",
                        "post.forward",
                        "post.shred",
                        "making.quote",
                        "making.order"
                      ]
                    },
                    "default": {}
                  }
                },
                "additionalProperties": false,
                "default": {}
              },
              "recipients": {
                "type": "object",
                "properties": {
                  "email": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 254,
                          "pattern": "^(@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+|[^\\s@]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+)$"
                        },
                        "maxItems": 256
                      },
                      {
                        "type": "string",
                        "const": "per_mission"
                      }
                    ]
                  },
                  "sms": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^\\+[1-9]\\d{6,14}$"
                        },
                        "maxItems": 256
                      },
                      {
                        "type": "string",
                        "const": "per_mission"
                      }
                    ]
                  },
                  "call": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^\\+[1-9]\\d{6,14}$"
                        },
                        "maxItems": 256
                      },
                      {
                        "type": "string",
                        "const": "per_mission"
                      }
                    ]
                  }
                },
                "additionalProperties": false,
                "default": {}
              },
              "spend": {
                "type": "object",
                "properties": {
                  "max_per_action_cents": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 100000000
                  },
                  "limits": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "day",
                            "month",
                            "mission"
                          ]
                        },
                        "unit": {
                          "type": "string",
                          "enum": [
                            "cents",
                            "actions"
                          ]
                        },
                        "limit": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 1000000000
                        }
                      },
                      "required": [
                        "kind",
                        "unit",
                        "limit"
                      ],
                      "additionalProperties": false
                    },
                    "maxItems": 12,
                    "default": []
                  },
                  "max_concurrent": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 10000
                  },
                  "rules": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[A-Za-z0-9][\\w.-]*$"
                        },
                        "merchant": {
                          "type": "string",
                          "maxLength": 253,
                          "pattern": "^(\\*\\.)?[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$"
                        },
                        "payee": {
                          "type": "string",
                          "pattern": "^0x[0-9a-f]{40}$"
                        },
                        "category": {
                          "type": "string",
                          "pattern": "^[a-z][a-z0-9_-]{0,39}$"
                        },
                        "max_per_payment_cents": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 100000000
                        },
                        "max_per_day_cents": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 100000000
                        },
                        "max_per_month_cents": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 100000000
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    },
                    "maxItems": 64,
                    "default": []
                  },
                  "categories": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "merchant": {
                          "type": "string",
                          "maxLength": 253,
                          "pattern": "^(\\*\\.)?[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$"
                        },
                        "payee": {
                          "type": "string",
                          "pattern": "^0x[0-9a-f]{40}$"
                        },
                        "category": {
                          "type": "string",
                          "pattern": "^[a-z][a-z0-9_-]{0,39}$"
                        }
                      },
                      "required": [
                        "category"
                      ],
                      "additionalProperties": false
                    },
                    "maxItems": 256,
                    "default": []
                  }
                },
                "additionalProperties": false,
                "default": {}
              },
              "review": {
                "type": "object",
                "properties": {
                  "over_cents": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 100000000
                  },
                  "chat": {
                    "type": "object",
                    "properties": {
                      "max_per_payment_cents": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 100000000
                      },
                      "max_per_day_cents": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 100000000
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false,
                "default": {}
              },
              "surfaces": {
                "type": "object",
                "properties": {
                  "models": {
                    "type": "object",
                    "properties": {
                      "allowed": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*\\*?$"
                        },
                        "maxItems": 256
                      },
                      "max_cost_per_call_cents": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 100000000
                      }
                    },
                    "additionalProperties": false,
                    "default": {}
                  },
                  "browser": {
                    "type": "object",
                    "properties": {
                      "hosts": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 253,
                          "pattern": "^(\\*\\.)?[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$"
                        },
                        "maxItems": 256
                      }
                    },
                    "additionalProperties": false,
                    "default": {}
                  },
                  "card": {
                    "type": "object",
                    "properties": {
                      "merchants": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 253,
                          "pattern": "^(\\*\\.)?[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$"
                        },
                        "maxItems": 256
                      },
                      "max_amount_cents": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 100000000
                      }
                    },
                    "additionalProperties": false,
                    "default": {}
                  },
                  "wallet": {
                    "type": "object",
                    "properties": {
                      "payees": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^0x[0-9a-f]{40}$"
                        },
                        "maxItems": 256
                      },
                      "max_amount_cents": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 100000000
                      }
                    },
                    "additionalProperties": false,
                    "default": {}
                  },
                  "workspace": {
                    "type": "object",
                    "properties": {
                      "max_timeout_seconds": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 86400
                      }
                    },
                    "additionalProperties": false,
                    "default": {}
                  },
                  "tools": {
                    "type": "object",
                    "properties": {
                      "allowed": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*\\*?$"
                        },
                        "maxItems": 256
                      }
                    },
                    "additionalProperties": false,
                    "default": {}
                  }
                },
                "additionalProperties": false,
                "default": {}
              }
            },
            "required": [
              "name"
            ],
            "additionalProperties": false
          },
          "call": {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "model.call",
                  "proxy.call",
                  "tool.run",
                  "email.send",
                  "sms.send",
                  "telegram.send",
                  "call.start",
                  "call.answer",
                  "meeting.join",
                  "browser.session.start",
                  "browser.navigate",
                  "card.checkout",
                  "wallet.payment",
                  "workspace.exec",
                  "account.open",
                  "dropoff.create",
                  "dropoff.deposit",
                  "a2a.send",
                  "skill.invoke",
                  "passport.delegate",
                  "wake.deliver",
                  "drive.upload",
                  "drive.share",
                  "memory.write",
                  "memory.delete",
                  "brain.add",
                  "site.publish",
                  "payment.request",
                  "letter.send",
                  "post.scan",
                  "post.forward",
                  "post.shred",
                  "making.quote",
                  "making.order"
                ]
              },
              "target": {
                "type": "object",
                "additionalProperties": {},
                "default": {}
              },
              "amount_cents": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "request": {
                "type": "object",
                "properties": {
                  "method": {
                    "type": "string",
                    "enum": [
                      "GET",
                      "POST",
                      "PUT",
                      "PATCH",
                      "DELETE"
                    ]
                  },
                  "url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "body": {},
                  "query": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    }
                  }
                },
                "required": [
                  "method",
                  "url"
                ],
                "additionalProperties": false
              },
              "connection_id": {
                "type": "string",
                "pattern": "^scon_[\\w-]+$"
              },
              "mission_id": {
                "type": "string",
                "pattern": "^ms_[\\w-]+$"
              },
              "reply_to_message": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "required": [
              "action"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "call"
        ],
        "additionalProperties": false
      },
      "SiteSuspendInput": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "minLength": 3,
            "maxLength": 500
          }
        },
        "required": [
          "reason"
        ],
        "additionalProperties": false
      },
      "SiteUploadLinkInput": {
        "type": "object",
        "properties": {
          "server": {
            "type": "object",
            "properties": {
              "source": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "source"
            ],
            "additionalProperties": false
          },
          "size_bytes": {
            "type": "integer",
            "exclusiveMinimum": 0
          }
        },
        "additionalProperties": false
      },
      "SsoDomainAddInput": {
        "type": "object",
        "properties": {
          "domain": {
            "type": "string",
            "minLength": 1,
            "maxLength": 253
          }
        },
        "required": [
          "domain"
        ],
        "additionalProperties": false
      },
      "StartAgentCallInput": {
        "type": "object",
        "properties": {
          "to": {
            "type": "string",
            "pattern": "^\\+[1-9]\\d{7,14}$"
          },
          "max_seconds": {
            "type": "integer",
            "minimum": 30,
            "maximum": 14400,
            "default": 14400
          },
          "voice": {
            "type": "object",
            "properties": {
              "tts_provider": {
                "type": "string",
                "enum": [
                  "Google",
                  "Amazon",
                  "ElevenLabs"
                ]
              },
              "voice": {
                "type": "string",
                "minLength": 1
              },
              "language": {
                "type": "string",
                "pattern": "^[A-Za-z]{2,8}(?:-[A-Za-z0-9]{1,8})*$"
              }
            },
            "additionalProperties": false
          },
          "greeting": {
            "type": "string"
          },
          "wait_seconds": {
            "type": "integer",
            "minimum": 0,
            "maximum": 60
          },
          "on_behalf_of": {
            "type": "string",
            "pattern": "^[\\p{L}\\p{N}][\\p{L}\\p{N} .,&'-]{0,59}$"
          },
          "brief": {
            "type": "string",
            "minLength": 1
          },
          "reply_to_message": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "required": [
          "to"
        ],
        "additionalProperties": false
      },
      "StartManagedTelegramBotInput": {
        "type": "object",
        "properties": {
          "suggested_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          }
        },
        "additionalProperties": false
      },
      "SubmitBody": {
        "type": "object",
        "properties": {
          "intent": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "intent_claim"
              },
              "policy_decision": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "const": "fleet_policy"
                  },
                  "policy_id": {
                    "type": "string",
                    "minLength": 1
                  },
                  "policy_revision": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "mission_id": {
                    "type": "string",
                    "pattern": "^ms_[\\w-]+$"
                  },
                  "rule_id": {
                    "type": "string",
                    "minLength": 1
                  },
                  "request_hash": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$"
                  },
                  "effect": {
                    "type": "string",
                    "enum": [
                      "allow",
                      "review"
                    ]
                  }
                },
                "required": [
                  "origin",
                  "policy_id",
                  "policy_revision",
                  "mission_id",
                  "rule_id",
                  "request_hash",
                  "effect"
                ],
                "additionalProperties": false
              },
              "intent_type": {
                "type": "string",
                "enum": [
                  "http_call",
                  "mcp_tool",
                  "skill_invocation",
                  "onchain_tx",
                  "task_complete",
                  "a2a_dispatch"
                ]
              },
              "agent_id": {
                "type": "string",
                "pattern": "^(ag|agt)_[\\w-]+$"
              },
              "named_intent": {
                "type": "string",
                "pattern": "^[a-z][\\w-]*:[a-z][\\w-]*:[a-z][\\w-]*$"
              },
              "target": {
                "type": "string",
                "minLength": 1,
                "description": "For http_call: the granted service SLUG (e.g. 'stripe'), NOT a URL — put the URL in parameters.url. For mcp_tool: tool URI. For skill_invocation: skill_id. For onchain_tx: contract address."
              },
              "action": {
                "type": "string",
                "minLength": 1
              },
              "parameters": {
                "type": "object",
                "additionalProperties": {}
              },
              "estimated_cost": {
                "type": "object",
                "properties": {
                  "wallet_cents": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tokens": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "gas_gwei": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "wallet_cents",
                  "tokens",
                  "gas_gwei"
                ],
                "additionalProperties": false
              },
              "accountability": {
                "type": "string",
                "enum": [
                  "enforced",
                  "logged",
                  "standard"
                ],
                "default": "standard"
              },
              "reason": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2048
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "requires": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^pc_[\\w-]+$"
                },
                "default": []
              },
              "user_subject": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "mission_ref": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^ms_[\\w-]+$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "submitted_at": {
                "type": "integer"
              }
            },
            "required": [
              "type",
              "intent_type",
              "agent_id",
              "named_intent",
              "target",
              "action",
              "parameters",
              "estimated_cost",
              "reason",
              "user_subject",
              "mission_ref",
              "submitted_at"
            ],
            "additionalProperties": false
          },
          "expires_in_seconds": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 86400
          },
          "skip_simulation": {
            "type": "boolean"
          }
        },
        "required": [
          "intent"
        ],
        "additionalProperties": false
      },
      "SyncVerificationBody": {
        "type": "object",
        "properties": {
          "provider_key": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "additionalProperties": false
      },
      "TokenVerificationBody": {
        "type": "object",
        "properties": {
          "provider_key": {
            "type": "string",
            "minLength": 1
          },
          "session_ref": {
            "type": "string",
            "minLength": 1
          },
          "token": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "provider_key",
          "session_ref",
          "token"
        ],
        "additionalProperties": false
      },
      "TollFreeVerificationInput": {
        "type": "object",
        "properties": {
          "business_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "business_website": {
            "type": "string",
            "format": "uri",
            "maxLength": 2048
          },
          "business_type": {
            "type": "string",
            "enum": [
              "PRIVATE_PROFIT",
              "PUBLIC_PROFIT",
              "SOLE_PROPRIETOR",
              "NON_PROFIT",
              "GOVERNMENT"
            ]
          },
          "business_registration": {
            "type": "object",
            "properties": {
              "number": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "authority": {
                "type": "string",
                "enum": [
                  "EIN",
                  "CBN",
                  "CRN",
                  "PROVINCIAL_NUMBER",
                  "VAT",
                  "ACN",
                  "ABN",
                  "BRN",
                  "SIREN",
                  "SIRET",
                  "NZBN",
                  "USt-IdNr",
                  "CIF",
                  "NIF",
                  "CNPJ",
                  "UID",
                  "NEQ",
                  "OTHER"
                ]
              },
              "country": {
                "type": "string",
                "pattern": "^[A-Z]{2}$"
              }
            },
            "required": [
              "number",
              "authority",
              "country"
            ],
            "additionalProperties": false
          },
          "business_address": {
            "type": "object",
            "properties": {
              "street": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "street2": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "city": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "region": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "postal_code": {
                "type": "string",
                "minLength": 1,
                "maxLength": 20
              },
              "country": {
                "type": "string",
                "pattern": "^[A-Z]{2}$"
              }
            },
            "required": [
              "street",
              "city",
              "region",
              "postal_code",
              "country"
            ],
            "additionalProperties": false
          },
          "contact": {
            "type": "object",
            "properties": {
              "first_name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "last_name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "email": {
                "type": "string",
                "format": "email",
                "maxLength": 320
              },
              "phone": {
                "type": "string",
                "pattern": "^\\+[1-9]\\d{7,14}$"
              }
            },
            "required": [
              "first_name",
              "last_name",
              "email",
              "phone"
            ],
            "additionalProperties": false
          },
          "notification_email": {
            "type": "string",
            "format": "email",
            "maxLength": 320
          },
          "use_case_categories": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "TWO_FACTOR_AUTHENTICATION",
                "ACCOUNT_NOTIFICATIONS",
                "CUSTOMER_CARE",
                "CHARITY_NONPROFIT",
                "DELIVERY_NOTIFICATIONS",
                "FRAUD_ALERT_MESSAGING",
                "EVENTS",
                "HIGHER_EDUCATION",
                "K12",
                "MARKETING",
                "POLLING_AND_VOTING_NON_POLITICAL",
                "POLITICAL_ELECTION_CAMPAIGNS",
                "PUBLIC_SERVICE_ANNOUNCEMENT",
                "SECURITY_ALERT"
              ]
            },
            "minItems": 1,
            "maxItems": 5
          },
          "use_case_summary": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000
          },
          "production_message_sample": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000
          },
          "opt_in_type": {
            "type": "string",
            "enum": [
              "VERBAL",
              "WEB_FORM",
              "PAPER_FORM",
              "VIA_TEXT",
              "MOBILE_QR_CODE"
            ]
          },
          "opt_in_image_urls": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uri",
              "maxLength": 2048
            },
            "minItems": 1,
            "maxItems": 5
          },
          "message_volume": {
            "type": "string",
            "enum": [
              "10",
              "100",
              "1,000",
              "10,000",
              "100,000",
              "250,000",
              "500,000",
              "750,000",
              "1,000,000",
              "5,000,000",
              "10,000,000+"
            ]
          },
          "privacy_policy_url": {
            "type": "string",
            "format": "uri",
            "maxLength": 2048
          },
          "terms_and_conditions_url": {
            "type": "string",
            "format": "uri",
            "maxLength": 2048
          },
          "additional_information": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000
          }
        },
        "required": [
          "business_name",
          "business_website",
          "business_type",
          "business_address",
          "contact",
          "notification_email",
          "use_case_categories",
          "use_case_summary",
          "production_message_sample",
          "opt_in_type",
          "opt_in_image_urls",
          "message_volume",
          "privacy_policy_url",
          "terms_and_conditions_url"
        ],
        "additionalProperties": false
      },
      "ToolDiscoverInput": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 40
          }
        },
        "required": [
          "query"
        ],
        "additionalProperties": false
      },
      "ToolInspectInput": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$"
          },
          "endpoint": {
            "type": "string",
            "minLength": 2,
            "maxLength": 256,
            "pattern": "^\\/[A-Za-z0-9._~\\-/:@{}]*$"
          }
        },
        "required": [
          "provider",
          "endpoint"
        ],
        "additionalProperties": false
      },
      "ToolRunInput": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$"
          },
          "endpoint": {
            "type": "string",
            "minLength": 2,
            "maxLength": 256,
            "pattern": "^\\/[A-Za-z0-9._~\\-/:@{}]*$"
          },
          "input": {
            "type": "object",
            "additionalProperties": {}
          },
          "max_results": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1000
          },
          "max_cost_cents": {
            "type": "integer",
            "minimum": 1
          }
        },
        "required": [
          "provider",
          "endpoint"
        ],
        "additionalProperties": false
      },
      "TopupInput": {
        "type": "object",
        "properties": {
          "amount_cents": {
            "type": "integer",
            "minimum": 500
          }
        },
        "required": [
          "amount_cents"
        ],
        "additionalProperties": false
      },
      "TrustDomainCreateInput": {
        "type": "object",
        "properties": {
          "trust_domain": {
            "type": "string",
            "minLength": 1,
            "maxLength": 253,
            "pattern": "^[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?(\\.[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?)*$"
          },
          "display_name": {
            "type": "string",
            "maxLength": 120
          },
          "jwks_uri": {
            "type": "string",
            "format": "uri",
            "pattern": "^https:\\/\\/"
          },
          "audience": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "not": {}
                  },
                  {
                    "type": "string",
                    "maxLength": 512
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "jwks_cache_ttl_seconds": {
            "type": "integer",
            "minimum": 60,
            "maximum": 3600
          },
          "spiffe_id_mapping_policy_json": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "agent_id": {
                  "type": "string",
                  "pattern": "^agt_[A-Za-z0-9_-]+$"
                }
              },
              "required": [
                "agent_id"
              ],
              "additionalProperties": false
            },
            "default": {}
          },
          "rate_limit_per_second": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "not": {}
                  },
                  {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "active": {
            "type": "boolean"
          }
        },
        "required": [
          "trust_domain",
          "jwks_uri"
        ],
        "additionalProperties": false
      },
      "TrustDomainUpdateInput": {
        "type": "object",
        "properties": {
          "trust_domain": {
            "type": "string",
            "minLength": 1,
            "maxLength": 253,
            "pattern": "^[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?(\\.[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?)*$"
          },
          "display_name": {
            "type": "string",
            "maxLength": 120
          },
          "jwks_uri": {
            "type": "string",
            "format": "uri",
            "pattern": "^https:\\/\\/"
          },
          "audience": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "not": {}
                  },
                  {
                    "type": "string",
                    "maxLength": 512
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "jwks_cache_ttl_seconds": {
            "type": "integer",
            "minimum": 60,
            "maximum": 3600
          },
          "spiffe_id_mapping_policy_json": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "agent_id": {
                  "type": "string",
                  "pattern": "^agt_[A-Za-z0-9_-]+$"
                }
              },
              "required": [
                "agent_id"
              ],
              "additionalProperties": false
            },
            "default": {}
          },
          "rate_limit_per_second": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "not": {}
                  },
                  {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "active": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "UpdateAgentInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "pattern": "^[a-z0-9_][a-z0-9_-]*[a-z0-9_]$"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 256
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "suspended"
            ]
          },
          "accountability_mode": {
            "type": "string",
            "enum": [
              "enforced",
              "logged",
              "standard"
            ]
          },
          "on_warning": {
            "type": "string",
            "enum": [
              "notify",
              "block"
            ]
          },
          "on_critical": {
            "type": "string",
            "enum": [
              "notify",
              "block"
            ]
          },
          "credential_access": {
            "type": "string",
            "enum": [
              "direct",
              "proxy_preferred",
              "proxy_only"
            ]
          },
          "icon_url": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100000
              },
              {
                "type": "null"
              }
            ]
          },
          "skill_access_mode": {
            "type": "string",
            "enum": [
              "none",
              "custom",
              "all"
            ]
          },
          "allowed_skills": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "identity_claim_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "twin_policy": {
            "type": "string",
            "enum": [
              "always",
              "high_stakes_only",
              "never",
              "per_mission"
            ]
          },
          "twin_llm_model": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/@+-]*$"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_synthetic": {
            "type": "boolean"
          },
          "eval_traffic": {
            "type": "boolean"
          },
          "llm_inject_system_prompt": {
            "type": "boolean"
          },
          "llm_redact_pii": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "UpdateCalendarEventInput": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1
          },
          "start": {
            "type": "string",
            "minLength": 1
          },
          "end": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "time_zone": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "repeat": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "rule": {
                    "type": "string",
                    "minLength": 1
                  },
                  "except": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "also": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "required": [
                  "rule"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "location": {
            "type": "string"
          },
          "meeting_link": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Za-z][A-Za-z0-9+.-]*:[^\\s\\u0000-\\u001f\\u007f]+$"
              },
              {
                "type": "null"
              }
            ]
          },
          "description": {
            "type": "string"
          },
          "guests": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "email"
                },
                {
                  "type": "object",
                  "properties": {
                    "email": {
                      "type": "string",
                      "format": "email"
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "required": [
                    "email"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "wake_minutes_before": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "meeting": {
            "type": "boolean"
          },
          "attend": {
            "type": "boolean"
          },
          "max_seconds": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1,
                "maximum": 2147483647
              },
              {
                "type": "null"
              }
            ]
          },
          "meeting_voice": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "voice": {
                    "type": "string",
                    "minLength": 1
                  },
                  "language": {
                    "type": "string",
                    "pattern": "^[A-Za-z]{2,8}(?:-[A-Za-z0-9]{1,8})*$"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "occurrence": {
            "type": "string",
            "minLength": 1
          },
          "scope": {
            "type": "string",
            "enum": [
              "series",
              "occurrence",
              "following"
            ]
          },
          "counter_id": {
            "type": "string",
            "pattern": "^ccp_[A-Za-z0-9_-]{1,64}$"
          }
        },
        "additionalProperties": false
      },
      "UpdateIdentitySettingsInput": {
        "type": "object",
        "properties": {
          "identity_claim_ttl": {
            "type": "string",
            "enum": [
              "30d",
              "90d",
              "180d",
              "1y"
            ]
          },
          "identity_claim_inheritance": {
            "type": "string",
            "enum": [
              "auto",
              "opt_in"
            ]
          },
          "identity_auto_revoke": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "UpdateMemberInput": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string",
            "enum": [
              "readonly",
              "standard",
              "admin"
            ]
          },
          "allowed_connections": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "UpdateNotificationRuleInput": {
        "type": "object",
        "properties": {
          "destination_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "minItems": 1
          },
          "events": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "minItems": 1
          },
          "min_severity": {
            "type": "string",
            "enum": [
              "info",
              "warning",
              "critical"
            ]
          },
          "active": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "UpdateSkillInput": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000
          },
          "version": {
            "type": "string",
            "pattern": "^\\d+\\.\\d+\\.\\d+$"
          },
          "input_schema": {
            "type": "object",
            "additionalProperties": {}
          },
          "output_schema": {
            "type": "object",
            "additionalProperties": {}
          },
          "trust_level_required": {
            "type": "string",
            "enum": [
              "L0",
              "L1",
              "L2"
            ]
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 32
            },
            "maxItems": 10
          },
          "price_credits": {
            "type": "integer",
            "minimum": 0
          }
        },
        "additionalProperties": false
      },
      "UpdateSkillRequestBody": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "VerifyChatIdentityInput": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "pattern": "^\\d{6}$"
          }
        },
        "required": [
          "code"
        ],
        "additionalProperties": false
      },
      "VerifyCodeBody": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "code"
        ],
        "additionalProperties": false
      },
      "VerifyPassportInput": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string"
          },
          "service_id": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "token"
        ],
        "additionalProperties": false
      },
      "VerifyPostalAddressInput": {
        "type": "object",
        "properties": {
          "address": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "pattern": "^[^\\u0000-\\u001F\\u007F<>]+$"
              },
              "company": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "pattern": "^[^\\u0000-\\u001F\\u007F<>]+$"
              },
              "line1": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64,
                "pattern": "^[^\\u0000-\\u001F\\u007F<>]+$"
              },
              "line2": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64,
                "pattern": "^[^\\u0000-\\u001F\\u007F<>]+$"
              },
              "city": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64,
                "pattern": "^[^\\u0000-\\u001F\\u007F<>]+$"
              },
              "state": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64,
                "pattern": "^[^\\u0000-\\u001F\\u007F<>]+$"
              },
              "postal_code": {
                "type": "string",
                "minLength": 1,
                "maxLength": 16,
                "pattern": "^[^\\u0000-\\u001F\\u007F<>]+$"
              },
              "country": {
                "type": "string",
                "pattern": "^[A-Z]{2}$",
                "default": "US"
              }
            },
            "required": [
              "line1",
              "city",
              "postal_code"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "address"
        ],
        "additionalProperties": false
      },
      "WalletCapsInput": {
        "type": "object",
        "properties": {
          "per_payment_cap_usdc": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0.000001,
                "maximum": 9007199254.740992
              },
              {
                "type": "null"
              }
            ]
          },
          "daily_cap_usdc": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0.000001,
                "maximum": 9007199254.740992
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "WalletOwnerInput": {
        "type": "object",
        "properties": {
          "privy_access_token": {
            "type": "string",
            "minLength": 16,
            "maxLength": 4096
          }
        },
        "required": [
          "privy_access_token"
        ],
        "additionalProperties": false
      },
      "WalletPaymentInput": {
        "type": "object",
        "properties": {
          "typed_data": {
            "type": "object",
            "additionalProperties": {}
          },
          "agent_signature": {
            "type": "string",
            "pattern": "^[A-Za-z0-9+/]{60,120}={0,2}$"
          }
        },
        "required": [
          "typed_data",
          "agent_signature"
        ],
        "additionalProperties": false
      },
      "WimseIssuerCreateInput": {
        "type": "object",
        "properties": {
          "issuer_uri": {
            "type": "string",
            "format": "uri",
            "pattern": "^https:\\/\\/"
          },
          "display_name": {
            "type": "string",
            "maxLength": 120
          },
          "jwks_uri": {
            "type": "string",
            "format": "uri",
            "pattern": "^https:\\/\\/"
          },
          "audience": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "not": {}
                  },
                  {
                    "type": "string",
                    "maxLength": 512
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "jwks_cache_ttl_seconds": {
            "type": "integer",
            "minimum": 60,
            "maximum": 3600
          },
          "workload_id_mapping_policy_json": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "agent_id": {
                  "type": "string",
                  "pattern": "^agt_[A-Za-z0-9_-]+$"
                }
              },
              "required": [
                "agent_id"
              ],
              "additionalProperties": false
            },
            "default": {}
          },
          "rate_limit_per_second": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "not": {}
                  },
                  {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "active": {
            "type": "boolean"
          }
        },
        "required": [
          "issuer_uri",
          "jwks_uri"
        ],
        "additionalProperties": false
      },
      "WimseIssuerUpdateInput": {
        "type": "object",
        "properties": {
          "issuer_uri": {
            "type": "string",
            "format": "uri",
            "pattern": "^https:\\/\\/"
          },
          "display_name": {
            "type": "string",
            "maxLength": 120
          },
          "jwks_uri": {
            "type": "string",
            "format": "uri",
            "pattern": "^https:\\/\\/"
          },
          "audience": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "not": {}
                  },
                  {
                    "type": "string",
                    "maxLength": 512
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "jwks_cache_ttl_seconds": {
            "type": "integer",
            "minimum": 60,
            "maximum": 3600
          },
          "workload_id_mapping_policy_json": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "agent_id": {
                  "type": "string",
                  "pattern": "^agt_[A-Za-z0-9_-]+$"
                }
              },
              "required": [
                "agent_id"
              ],
              "additionalProperties": false
            },
            "default": {}
          },
          "rate_limit_per_second": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "not": {}
                  },
                  {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "active": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "WorkloadPassportBody": {
        "type": "object",
        "properties": {
          "mission_id": {
            "type": "string",
            "pattern": "^ms_[\\w-]+$"
          }
        },
        "required": [
          "mission_id"
        ],
        "additionalProperties": false
      },
      "WorkspaceCommandReadInput": {
        "type": "object",
        "properties": {
          "command_id": {
            "type": "string",
            "pattern": "^wcmd_[A-Za-z0-9]{8,40}_[A-Za-z0-9-]{8,64}$"
          }
        },
        "required": [
          "command_id"
        ],
        "additionalProperties": false
      },
      "WorkspaceExecInput": {
        "type": "object",
        "properties": {
          "workspace_id": {
            "type": "string",
            "pattern": "^wsp_[\\w-]{8,64}$"
          },
          "command": {
            "type": "string",
            "minLength": 1,
            "maxLength": 32768
          },
          "cwd": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024
          },
          "env": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "maxLength": 4096
            }
          },
          "timeout_seconds": {
            "type": "integer",
            "minimum": 1
          },
          "background": {
            "type": "boolean"
          },
          "stack_access": {
            "type": "boolean"
          }
        },
        "required": [
          "command"
        ],
        "additionalProperties": false
      },
      "WorkspaceReadFileInput": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false
      },
      "WorkspaceSaveFileInput": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "content_type": {
            "type": "string",
            "maxLength": 255,
            "pattern": "^[a-z0-9][a-z0-9!#$&^_.+-]*\\/[a-z0-9][a-z0-9!#$&^_.+-]*(?:[ \\t]*;[ \\t]*[a-z0-9!#$&^_.+-]+=(?:[a-z0-9!#$&^_.+-]+|\"[\\u0020\\u0021\\u0023-\\u005b\\u005d-\\u007e]*\"))*$",
            "default": "application/octet-stream"
          },
          "visibility": {
            "type": "string",
            "enum": [
              "agent",
              "account"
            ]
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false
      },
      "WorkspaceStopInput": {
        "type": "object",
        "properties": {
          "delete": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "WorkspaceWriteFileInput": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024
          },
          "content_text": {
            "type": "string",
            "maxLength": 1048576
          },
          "content_base64": {
            "type": "string",
            "maxLength": 1398108
          },
          "mode": {
            "type": "string",
            "pattern": "^[0-7]{3,4}$"
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false
      }
    }
  }
}
