openapi: 3.0.3
info:
    title: Speakeasy API Description
    description: Speakeasy is the tools platform for AI agents
    version: 0.0.1
servers:
    - url: https://app.getgram.ai
paths:
    /admin/assets.serveImage:
        get:
            description: Serve a public image, preserving the existing image serving contract.
            operationId: adminServeImage
            parameters:
                - allowEmptyValue: true
                  description: The ID of the asset to serve
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the asset to serve
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                format: binary
                                type: string
                    description: OK response.
                    headers:
                        Access-Control-Allow-Origin:
                            schema:
                                type: string
                        Content-Length:
                            schema:
                                format: int64
                                type: integer
                        Content-Security-Policy:
                            schema:
                                type: string
                        Content-Type:
                            schema:
                                type: string
                        Cross-Origin-Resource-Policy:
                            schema:
                                type: string
                        Last-Modified:
                            schema:
                                type: string
                        X-Content-Type-Options:
                            schema:
                                type: string
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            summary: serveImage admin
            tags:
                - admin
            x-speakeasy-name-override: serveImage
    /admin/assets.uploadImage:
        post:
            description: 'Upload a platform logo, limited to 4 MiB and PNG, JPEG, GIF, WebP or static SVG with local clip paths. This is a direct upload, not a staged proposal: successful uploads are publicly served immediately and remain stored.'
            operationId: adminUploadPlatformImage
            parameters:
                - allowEmptyValue: true
                  in: header
                  name: Content-Type
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminUploadImageResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - admin_auth_header_Authorization: []
            summary: uploadPlatformImage admin
            tags:
                - admin
            x-speakeasy-name-override: uploadPlatformImage
    /admin/auth.callback:
        get:
            tags:
                - admin
            summary: callback admin
            operationId: admin#callback
            parameters:
                - name: code
                  in: query
                  description: The authorization code returned by the provider on success
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: The authorization code returned by the provider on success
                - name: state
                  in: query
                  description: The state parameter returned, which should match the one generated in the login step
                  allowEmptyValue: true
                  required: true
                  schema:
                    type: string
                    description: The state parameter returned, which should match the one generated in the login step
                - name: error
                  in: query
                  description: OAuth error code returned by the provider (e.g. login_required for prompt=none failures)
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: OAuth error code returned by the provider (e.g. login_required for prompt=none failures)
                - name: error_description
                  in: query
                  description: Human-readable OAuth error description
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: Human-readable OAuth error description
                - name: gram_admin_login_state
                  in: cookie
                  description: The state cookie value for CSRF sanity checking against the state parameter
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: The state cookie value for CSRF sanity checking against the state parameter
            responses:
                "307":
                    description: Temporary Redirect response.
                    headers:
                        Location:
                            description: The URL to redirect the client to after processing the callback
                            schema:
                                type: string
                                description: The URL to redirect the client to after processing the callback
                        Set-Cookie:
                            description: Admin session cookie
                            schema:
                                type: string
                                description: Admin session cookie
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
    /admin/auth.login:
        get:
            tags:
                - admin
            summary: login admin
            operationId: admin#login
            parameters:
                - name: return_to
                  in: query
                  description: Optional URL to return the user to after login. Relative paths and absolute URLs whose origin is in the admin allowed-origins list are accepted.
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: Optional URL to return the user to after login. Relative paths and absolute URLs whose origin is in the admin allowed-origins list are accepted.
                - name: prompt
                  in: query
                  description: Optional OAuth prompt parameter forwarded to the provider. Pass 'none' to attempt silent re-authentication.
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: Optional OAuth prompt parameter forwarded to the provider. Pass 'none' to attempt silent re-authentication.
            responses:
                "307":
                    description: Temporary Redirect response.
                    headers:
                        Location:
                            description: The URL to redirect the user to for Google authentication
                            schema:
                                type: string
                                description: The URL to redirect the user to for Google authentication
                        Set-Cookie:
                            description: CSRF state cookie for sanity-checking the callback
                            schema:
                                type: string
                                description: CSRF state cookie for sanity-checking the callback
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
    /admin/auth.logout:
        post:
            tags:
                - admin
            summary: logout admin
            operationId: admin#logout
            parameters:
                - name: gram_admin
                  in: cookie
                  description: The session cookie value to clear for logging out
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: The session cookie value to clear for logging out
            responses:
                "204":
                    description: No Content response.
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
    /admin/customDomains.list:
        get:
            description: Lists live custom domains across organizations with their designated CNAME targets and observed DNS routing methods.
            operationId: adminListCustomDomains
            parameters:
                - allowEmptyValue: true
                  description: Only the domain owned by this organization.
                  in: query
                  name: organization_id
                  schema:
                    description: Only the domain owned by this organization.
                    type: string
                - allowEmptyValue: true
                  description: Only domains last observed using this routing method. unknown also matches domains not yet checked.
                  in: query
                  name: dns_routing_method
                  schema:
                    description: Only domains last observed using this routing method. unknown also matches domains not yet checked.
                    enum:
                        - per_domain_cname
                        - shared_cname
                        - a_record
                        - unknown
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminListCustomDomainsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: listCustomDomains admin
            tags:
                - admin
            x-speakeasy-name-override: listCustomDomains
            x-speakeasy-react-hook:
                name: AdminListCustomDomains
    /admin/hookClients.get:
        get:
            description: 'Fleet-wide client health grids: which hook client (legacy curl or hooks binary version) each organization''s new sessions use per day, inference hook traffic per Claude app, and device agent versions per day.'
            operationId: adminGetHookClients
            parameters:
                - allowEmptyValue: true
                  description: Window in days.
                  in: query
                  name: window_days
                  schema:
                    default: 15
                    description: Window in days.
                    format: int64
                    maximum: 30
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Skip the cache and read ClickHouse now.
                  in: query
                  name: refresh
                  schema:
                    default: false
                    description: Skip the cache and read ClickHouse now.
                    type: boolean
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminHookClientsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: getHookClients admin
            tags:
                - admin
            x-speakeasy-name-override: getHookClients
            x-speakeasy-react-hook:
                name: AdminGetHookClients
    /admin/mcpAuthGrants.backfill:
        post:
            description: Grants unrestricted mcp:auth to every principal that holds any mcp:connect grant, in every organization. The connect grant's selectors are ignored. Safe to run more than once.
            operationId: adminBackfillMcpAuthGrants
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminBackfillMCPAuthGrantsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: backfillMcpAuthGrants admin
            tags:
                - admin
            x-speakeasy-name-override: backfillMcpAuthGrants
            x-speakeasy-react-hook:
                name: AdminBackfillMcpAuthGrants
    /admin/mcpConnectGrants.backfill:
        post:
            description: Adds an explicit mcp:connect grant, with the same principal, selectors and expiry, for every unexpired mcp:read or mcp:write grant in every organization, ahead of read and write no longer implying connect. Never removes access. Safe to run more than once.
            operationId: adminBackfillMcpConnectGrants
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/BackfillMcpConnectGrantsRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminBackfillMCPConnectGrantsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: backfillMcpConnectGrants admin
            tags:
                - admin
            x-speakeasy-name-override: backfillMcpConnectGrants
            x-speakeasy-react-hook:
                name: AdminBackfillMcpConnectGrants
    /admin/onboarding.playbooks:
        get:
            description: Read every playbook, or, when an organization is named, the shared ones and its own.
            operationId: adminListOnboardingPlaybooks
            parameters:
                - allowEmptyValue: true
                  in: query
                  name: organization_id
                  schema:
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminOnboardingPlaybookList'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: listOnboardingPlaybooks admin
            tags:
                - admin
            x-speakeasy-react-hook:
                name: AdminOnboardingPlaybooks
    /admin/onboarding.playbooks.clone:
        post:
            description: Copy a playbook into a custom one for an organization, so staff can edit it for that organization alone.
            operationId: adminCloneOnboardingPlaybook
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CloneOnboardingPlaybookRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminOnboardingPlaybook'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: cloneOnboardingPlaybook admin
            tags:
                - admin
            x-speakeasy-react-hook:
                name: CloneAdminOnboardingPlaybook
    /admin/onboarding.playbooks.create:
        post:
            description: Create a playbook from top-level steps, for a use case or for one organization, not both. Every prerequisite of a step must be in the playbook, before it. Marking a default replaces the use case's previous default.
            operationId: adminCreateOnboardingPlaybook
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateOnboardingPlaybookRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminOnboardingPlaybook'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: createOnboardingPlaybook admin
            tags:
                - admin
            x-speakeasy-react-hook:
                name: CreateAdminOnboardingPlaybook
    /admin/onboarding.playbooks.delete:
        post:
            description: Retire a playbook. Organizations assigned it fall back to their setup task selection.
            operationId: adminDeleteOnboardingPlaybook
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DeleteOnboardingPlaybookRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminOnboardingPlaybookList'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: deleteOnboardingPlaybook admin
            tags:
                - admin
            x-speakeasy-react-hook:
                name: DeleteAdminOnboardingPlaybook
    /admin/onboarding.playbooks.update:
        post:
            description: Replace a playbook's name, description, default mark and steps. A custom playbook is also checked against its organization's stack.
            operationId: adminUpdateOnboardingPlaybook
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateOnboardingPlaybookRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminOnboardingPlaybook'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: updateOnboardingPlaybook admin
            tags:
                - admin
            x-speakeasy-react-hook:
                name: UpdateAdminOnboardingPlaybook
    /admin/onboarding.stackOptions:
        get:
            description: Read the vendors, plans and platforms the stack form offers, from the support matrix catalog.
            operationId: adminGetOnboardingStackOptions
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminOnboardingStackOptions'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: getOnboardingStackOptions admin
            tags:
                - admin
            x-speakeasy-react-hook:
                name: AdminOnboardingStackOptions
    /admin/onboarding.steps:
        get:
            description: Read the onboarding steps the code defines, mirrored into the database, with their groups, methods and prerequisites.
            operationId: adminListOnboardingSteps
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminOnboardingStepList'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: listOnboardingSteps admin
            tags:
                - admin
            x-speakeasy-react-hook:
                name: AdminOnboardingSteps
    /admin/onboarding.useCases:
        get:
            description: Read the use cases staff defined, each with its default playbook.
            operationId: adminListOnboardingUseCases
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminOnboardingUseCaseList'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: listOnboardingUseCases admin
            tags:
                - admin
            x-speakeasy-react-hook:
                name: AdminOnboardingUseCases
    /admin/onboarding.useCases.create:
        post:
            description: Define a use case.
            operationId: adminCreateOnboardingUseCase
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateOnboardingUseCaseRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminOnboardingUseCase'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: createOnboardingUseCase admin
            tags:
                - admin
            x-speakeasy-react-hook:
                name: CreateAdminOnboardingUseCase
    /admin/onboarding.useCases.delete:
        post:
            description: Retire a use case and its playbooks. Organizations assigned one of them fall back to their setup task selection.
            operationId: adminDeleteOnboardingUseCase
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DeleteOnboardingUseCaseRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminOnboardingUseCaseList'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: deleteOnboardingUseCase admin
            tags:
                - admin
            x-speakeasy-react-hook:
                name: DeleteAdminOnboardingUseCase
    /admin/onboarding.useCases.update:
        post:
            description: Rename or describe a use case. The slug never changes.
            operationId: adminUpdateOnboardingUseCase
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateOnboardingUseCaseRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminOnboardingUseCase'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: updateOnboardingUseCase admin
            tags:
                - admin
            x-speakeasy-react-hook:
                name: UpdateAdminOnboardingUseCase
    /admin/organization.activity:
        get:
            description: Lists activity belonging to an organization for admin operators.
            operationId: adminListOrganizationActivity
            parameters:
                - allowEmptyValue: true
                  description: Organization ID.
                  in: query
                  name: organization_id
                  required: true
                  schema:
                    description: Organization ID.
                    type: string
                - allowEmptyValue: true
                  description: Cursor for paginating through organization activity.
                  in: query
                  name: cursor
                  schema:
                    description: Cursor for paginating through organization activity.
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminListOrganizationActivityResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: listOrganizationActivity admin
            tags:
                - admin
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
    /admin/organization.cancelStripeSubscription:
        post:
            tags:
                - admin
            summary: cancelStripeSubscription admin
            description: Schedules an organization's PAYG subscription to cancel at period end.
            operationId: adminCancelStripeSubscription
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CancelStripeSubscriptionRequestBody'
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminStripeSubscription'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "503":
                    description: 'unavailable: service temporarily unavailable'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/organization.chatAnalysisSettings:
        get:
            tags:
                - admin
            summary: getOrganizationChatAnalysisSettings admin
            operationId: adminGetOrganizationChatAnalysisSettings
            parameters:
                - name: organization_id
                  in: query
                  allowEmptyValue: true
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminChatAnalysisSettings'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
        post:
            tags:
                - admin
            summary: setOrganizationChatAnalysisSettings admin
            operationId: adminSetOrganizationChatAnalysisSettings
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetOrganizationChatAnalysisSettingsRequestBody'
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminChatAnalysisSettings'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/organization.chatAnalysisTrigger:
        post:
            tags:
                - admin
            summary: triggerOrganizationChatAnalysis admin
            operationId: adminTriggerOrganizationChatAnalysis
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/TriggerOrganizationChatAnalysisRequestBody'
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminChatAnalysisTriggerResult'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/organization.create:
        post:
            tags:
                - admin
            summary: createOrganization admin
            description: 'Creates an organization in WorkOS and in Speakeasy, so an operator does not have to leave the admin app for the WorkOS dashboard. The organization starts with no members, is not whitelisted, and gets no trial. Idempotent against the WorkOS organization webhook: the Speakeasy ID is derived from the WorkOS ID, so both writers converge on one row.'
            operationId: adminCreateOrganization
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateOrganizationRequestBody'
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminOrganization'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/organization.disable:
        post:
            tags:
                - admin
            summary: disableOrganization admin
            description: 'Disables an organization, recording the moment of the action in disabled_at. Idempotent: disabling an already-disabled organization keeps the original timestamp.'
            operationId: adminDisableOrganization
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DisableOrganizationRequestBody'
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminOrganization'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/organization.enable:
        post:
            tags:
                - admin
            summary: enableOrganization admin
            description: 'Re-enables a disabled organization by clearing disabled_at. Idempotent: an organization that is already active is unaffected.'
            operationId: adminEnableOrganization
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/EnableOrganizationRequestBody'
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminOrganization'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/organization.features:
        get:
            operationId: adminGetOrganizationFeatures
            parameters:
                - allowEmptyValue: true
                  in: query
                  name: organization_id
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ProductFeatures'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: getOrganizationFeatures admin
            tags:
                - admin
            x-speakeasy-react-hook:
                name: AdminOrganizationFeatures
        post:
            operationId: adminSetOrganizationFeature
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetOrganizationFeatureRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ProductFeatures'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: setOrganizationFeature admin
            tags:
                - admin
            x-speakeasy-react-hook:
                name: SetAdminOrganizationFeature
    /admin/organization.get:
        get:
            tags:
                - admin
            summary: getOrganization admin
            description: Returns full admin details for a single organization by id or slug.
            operationId: adminGetOrganization
            parameters:
                - name: id_or_slug
                  in: query
                  description: Organization ID or slug.
                  allowEmptyValue: true
                  required: true
                  schema:
                    type: string
                    description: Organization ID or slug.
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminOrganization'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/organization.inferenceKeys:
        get:
            tags:
                - admin
            summary: getInferenceKeys admin
            description: Returns the configured state of every materialized platform-managed OpenRouter key for an organization.
            operationId: adminGetInferenceKeys
            parameters:
                - name: organization_id
                  in: query
                  allowEmptyValue: true
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                type: array
                                items:
                                    $ref: '#/components/schemas/AdminInferenceKey'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/organization.inferenceSpendHistory:
        get:
            tags:
                - admin
            summary: getInferenceSpendHistory admin
            description: Returns up to twelve complete UTC calendar months of recorded inference spend for an organization.
            operationId: adminGetInferenceSpendHistory
            parameters:
                - name: organization_id
                  in: query
                  allowEmptyValue: true
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                type: array
                                items:
                                    $ref: '#/components/schemas/AdminInferenceSpendMonth'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/organization.members:
        get:
            tags:
                - admin
            summary: listOrganizationMembers admin
            description: Lists members of an organization (admin view, no auth scoping).
            operationId: adminListOrganizationMembers
            parameters:
                - name: organization_id
                  in: query
                  description: Organization ID.
                  allowEmptyValue: true
                  required: true
                  schema:
                    type: string
                    description: Organization ID.
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminListOrganizationMembersResult'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/organization.onboardingPlaybook:
        get:
            description: Read the playbook assigned to an organization and how each of its steps fares against the recorded stack.
            operationId: adminGetOrganizationOnboardingPlaybook
            parameters:
                - allowEmptyValue: true
                  in: query
                  name: organization_id
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminOrganizationOnboardingPlaybook'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: getOrganizationOnboardingPlaybook admin
            tags:
                - admin
            x-speakeasy-react-hook:
                name: AdminOrganizationOnboardingPlaybook
        post:
            description: Assign a playbook to an organization, or clear it. Rejected when a step's methods do not apply to the recorded stack; the error names the steps.
            operationId: adminAssignOrganizationOnboardingPlaybook
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/AssignOrganizationOnboardingPlaybookRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminOrganizationOnboardingPlaybook'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: assignOrganizationOnboardingPlaybook admin
            tags:
                - admin
            x-speakeasy-react-hook:
                name: AssignAdminOrganizationOnboardingPlaybook
    /admin/organization.onboardingStack:
        get:
            description: 'Read the stack staff recorded for an organization: its vendors with plans and its device management.'
            operationId: adminGetOrganizationOnboardingStack
            parameters:
                - allowEmptyValue: true
                  in: query
                  name: organization_id
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminOnboardingStack'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: getOrganizationOnboardingStack admin
            tags:
                - admin
            x-speakeasy-react-hook:
                name: AdminOrganizationOnboardingStack
        post:
            description: Replace the stack recorded for an organization. Vendors and plans must come from the catalog; other needs a name and none clears it.
            operationId: adminSetOrganizationOnboardingStack
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetOrganizationOnboardingStackRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminOnboardingStack'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: setOrganizationOnboardingStack admin
            tags:
                - admin
            x-speakeasy-react-hook:
                name: SetAdminOrganizationOnboardingStack
    /admin/organization.open-dashboard:
        post:
            tags:
                - admin
            summary: openOrganizationInDashboard admin
            operationId: adminOpenOrganizationInDashboard
            parameters:
                - name: organization_id
                  in: query
                  allowEmptyValue: true
                  required: true
                  schema:
                    type: string
            responses:
                "303":
                    description: See Other response.
                    headers:
                        Cache-Control:
                            schema:
                                type: string
                        Location:
                            schema:
                                type: string
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/organization.paygBillingSummary:
        get:
            tags:
                - admin
            summary: getPaygBillingSummary admin
            description: Returns current PAYG usage and estimated cost for an organization.
            operationId: adminGetPaygBillingSummary
            parameters:
                - name: organization_id
                  in: query
                  allowEmptyValue: true
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminPaygBillingSummary'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "503":
                    description: 'unavailable: service temporarily unavailable'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/organization.projects:
        get:
            tags:
                - admin
            summary: listOrganizationProjects admin
            description: Lists projects belonging to an organization (admin view, no auth scoping).
            operationId: adminListOrganizationProjects
            parameters:
                - name: organization_id
                  in: query
                  description: Organization ID.
                  allowEmptyValue: true
                  required: true
                  schema:
                    type: string
                    description: Organization ID.
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminListOrganizationProjectsResult'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/organization.providerSetup:
        post:
            description: Enable or disable the temporary provider setup rollout for one organization. Staff only; disabled by default. Existing credential storage and OAuth flows are unaffected.
            operationId: adminSetOrganizationProviderSetup
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetOrganizationProviderSetupRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ProductFeatures'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: setOrganizationProviderSetup admin
            tags:
                - admin
            x-speakeasy-react-hook:
                name: SetAdminOrganizationProviderSetup
    /admin/organization.repairInferenceKey:
        post:
            tags:
                - admin
            summary: repairInferenceKey admin
            description: Removes explicitly selected known disable causes without changing tier, credits, or runtime. Staff confirmation and reason required.
            operationId: adminRepairInferenceKey
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RepairInferenceKeyRequestBody'
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminInferenceKeyRepairResult'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/organization.resumeStripeSubscription:
        post:
            tags:
                - admin
            summary: resumeStripeSubscription admin
            description: Removes a scheduled period-end cancellation from an organization's PAYG subscription.
            operationId: adminResumeStripeSubscription
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ResumeStripeSubscriptionRequestBody'
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminStripeSubscription'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "503":
                    description: 'unavailable: service temporarily unavailable'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/organization.setAdoptionDashboardUrl:
        post:
            description: Sets or clears the link to an organization's adoption dashboard shown on the admin overview. An empty or absent URL clears it.
            operationId: adminSetAdoptionDashboardUrl
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetAdoptionDashboardURLRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminOrganization'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: setAdoptionDashboardUrl admin
            tags:
                - admin
            x-speakeasy-name-override: setAdoptionDashboardUrl
    /admin/organization.setInferenceKeyMonthlyLimit:
        post:
            tags:
                - admin
            summary: setInferenceKeyMonthlyLimit admin
            description: Sets the monthly limit for one materialized platform-managed OpenRouter key.
            operationId: adminSetInferenceKeyMonthlyLimit
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetInferenceKeyMonthlyLimitRequestBody'
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminInferenceKeyLimit'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/organization.setStripeCustomer:
        post:
            tags:
                - admin
            summary: setStripeCustomer admin
            description: Sets an organization's Stripe customer ID when it has no existing Stripe customer or subscription.
            operationId: adminSetStripeCustomer
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetStripeCustomerRequestBody'
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminOrganization'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "503":
                    description: 'unavailable: service temporarily unavailable'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/organization.setStripeSubscription:
        post:
            tags:
                - admin
            summary: setStripeSubscription admin
            description: Links an eligible existing Stripe subscription and atomically activates PAYG for free organizations or unconverted enterprise trials. Existing PAYG organizations retain their access policy. Verifies customer ownership, preserves existing subscription links and redeemed partner anchors, and accepts same-subscription retries.
            operationId: adminSetStripeSubscription
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetStripeSubscriptionRequestBody'
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminOrganization'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "503":
                    description: 'unavailable: service temporarily unavailable'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/organization.spendBreakdown:
        get:
            description: Returns exact current PAYG list-price estimates for an organization's three metered products over a maximum of three calendar months. Available for every organization regardless of account type or subscription state.
            operationId: adminGetSpendBreakdown
            parameters:
                - allowEmptyValue: true
                  description: Organization ID or canonical slug.
                  in: query
                  name: organization_id
                  required: true
                  schema:
                    description: Organization ID or canonical slug.
                    type: string
                - allowEmptyValue: true
                  description: Inclusive UTC midnight reporting boundary. Must be paired with to.
                  in: query
                  name: from
                  schema:
                    description: Inclusive UTC midnight reporting boundary. Must be paired with to.
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: Exclusive UTC midnight reporting boundary. Must be paired with from and no later than three calendar months after from, clamped to the target month's last day.
                  in: query
                  name: to
                  schema:
                    description: Exclusive UTC midnight reporting boundary. Must be paired with from and no later than three calendar months after from, clamped to the target month's last day.
                    format: date-time
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminSpendBreakdownResponse'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - admin_auth_header_Authorization: []
            summary: getSpendBreakdown admin
            tags:
                - admin
            x-speakeasy-name-override: getSpendBreakdown
    /admin/organization.stripeCustomer:
        get:
            tags:
                - admin
            summary: getStripeCustomer admin
            description: Returns Stripe customer details for confirmation before assigning the customer to an organization.
            operationId: adminGetStripeCustomer
            parameters:
                - name: organization_id
                  in: query
                  allowEmptyValue: true
                  required: true
                  schema:
                    type: string
                - name: stripe_customer_id
                  in: query
                  allowEmptyValue: true
                  required: true
                  schema:
                    type: string
                    pattern: ^cus_[A-Za-z0-9_]+$
                    maxLength: 255
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminStripeCustomer'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "503":
                    description: 'unavailable: service temporarily unavailable'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/organization.stripeSubscription:
        get:
            tags:
                - admin
            summary: getStripeSubscription admin
            description: Returns the live Stripe subscription and payment state for an organization.
            operationId: adminGetStripeSubscription
            parameters:
                - name: organization_id
                  in: query
                  allowEmptyValue: true
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminStripeSubscription'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "503":
                    description: 'unavailable: service temporarily unavailable'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/organization.stripeSubscriptionCandidate:
        get:
            tags:
                - admin
            summary: getStripeSubscriptionCandidate admin
            description: Returns eligible live Stripe subscription details before linking it to a free, PAYG, or unconverted enterprise trial organization with a matching Stripe customer.
            operationId: adminGetStripeSubscriptionCandidate
            parameters:
                - name: organization_id
                  in: query
                  allowEmptyValue: true
                  required: true
                  schema:
                    type: string
                - name: stripe_subscription_id
                  in: query
                  allowEmptyValue: true
                  required: true
                  schema:
                    type: string
                    pattern: ^sub_[A-Za-z0-9_]+$
                    maxLength: 255
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminStripeSubscriptionCandidate'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "503":
                    description: 'unavailable: service temporarily unavailable'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/organization.update:
        post:
            tags:
                - admin
            summary: updateOrganization admin
            description: Updates admin-managed fields on an organization. At least one of account_type or whitelisted must be supplied.
            operationId: adminUpdateOrganization
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateOrganizationRequestBody'
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminOrganization'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/organizationHookFleet.get:
        get:
            description: 'The hooks installs of one organization: which versions, install routes and endpoints its users'' machines use, which machines have gone quiet, and how much traffic still reaches the legacy endpoints.'
            operationId: adminGetOrganizationHookFleet
            parameters:
                - allowEmptyValue: true
                  description: Organization to report on.
                  in: query
                  name: organization_id
                  required: true
                  schema:
                    description: Organization to report on.
                    type: string
                - allowEmptyValue: true
                  description: Window in days.
                  in: query
                  name: window_days
                  schema:
                    default: 30
                    description: Window in days.
                    format: int64
                    maximum: 89
                    minimum: 1
                    type: integer
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminHookFleetResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: getOrganizationHookFleet admin
            tags:
                - admin
            x-speakeasy-name-override: getOrganizationHookFleet
            x-speakeasy-react-hook:
                name: AdminGetOrganizationHookFleet
    /admin/organizations.bulkUpdateAccountType:
        post:
            tags:
                - admin
            summary: bulkUpdateAccountType admin
            description: Sets one account type on many organizations in a single statement. An ID that matches no organization is reported back rather than failing the batch, so a stale ID costs the operator that row and not the whole call.
            operationId: adminBulkUpdateAccountType
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/BulkUpdateAccountTypeRequestBody'
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminBulkUpdateAccountTypeResult'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/organizations.customerUsage:
        get:
            description: 'Returns estimated usage at current PAYG list prices for every active paying organization: enterprise organizations not on a running or ending trial, and pro or payg organizations that never trialled.'
            operationId: adminListCustomerUsage
            parameters:
                - allowEmptyValue: true
                  description: Chart bucketing. monthly gives one bucket per billing cycle over the last six cycles. daily and weekly bucket the current cycle.
                  in: query
                  name: interval
                  schema:
                    default: monthly
                    description: Chart bucketing. monthly gives one bucket per billing cycle over the last six cycles. daily and weekly bucket the current cycle.
                    enum:
                        - daily
                        - weekly
                        - monthly
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminCustomerUsageResponse'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - admin_auth_header_Authorization: []
            summary: listCustomerUsage admin
            tags:
                - admin
            x-speakeasy-name-override: listCustomerUsage
    /admin/organizations.getMeterUsage:
        get:
            tags:
                - admin
            summary: getMeterUsage admin
            description: Returns totals-only ordinary meter usage for an organization over a bounded UTC-day window.
            operationId: adminGetMeterUsage
            parameters:
                - name: organization_id
                  in: query
                  description: Organization ID or canonical slug.
                  allowEmptyValue: true
                  required: true
                  schema:
                    type: string
                    description: Organization ID or canonical slug.
                - name: family
                  in: query
                  allowEmptyValue: true
                  required: true
                  schema:
                    type: string
                    enum:
                        - agent_session_storage
                        - mcp_bandwidth
                        - risk_content_scans
                - name: from
                  in: query
                  description: Inclusive UTC midnight reporting boundary. Must be paired with to.
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: Inclusive UTC midnight reporting boundary. Must be paired with to.
                    format: date-time
                - name: to
                  in: query
                  description: Exclusive UTC midnight reporting boundary. Must be paired with from and no later than three calendar months after from.
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: Exclusive UTC midnight reporting boundary. Must be paired with from and no later than three calendar months after from.
                    format: date-time
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminMeterUsageResponse'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "503":
                    description: 'unavailable: service temporarily unavailable'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/organizations.list:
        get:
            description: Lists organizations for platform admin operations with optional search and filters. Defaults to created_at descending, with id ascending to break ties.
            operationId: adminListOrganizations
            parameters:
                - allowEmptyValue: true
                  description: Search term, trimmed of surrounding whitespace. Matches name and slug as a case-insensitive substring, with % and _ taken literally, and matches organization id and WorkOS id exactly, ignoring case. All filters apply even to exact ID matches.
                  in: query
                  name: q
                  schema:
                    description: Search term, trimmed of surrounding whitespace. Matches name and slug as a case-insensitive substring, with % and _ taken literally, and matches organization id and WorkOS id exactly, ignoring case. All filters apply even to exact ID matches.
                    type: string
                - allowEmptyValue: true
                  description: Filter by a single gram_account_type (e.g. free, pro, payg, enterprise). Superseded by account_types, which it joins as one more member of the same set.
                  in: query
                  name: account_type
                  schema:
                    description: Filter by a single gram_account_type (e.g. free, pro, payg, enterprise). Superseded by account_types, which it joins as one more member of the same set.
                    type: string
                - allowEmptyValue: true
                  description: Match any of these gram_account_type values. Empty matches every account type. A value no organization carries matches nothing rather than failing the request.
                  in: query
                  name: account_types
                  schema:
                    description: Match any of these gram_account_type values. Empty matches every account type. A value no organization carries matches nothing rather than failing the request.
                    items:
                        type: string
                    type: array
                - allowEmptyValue: true
                  description: Match any of running, ending_soon, expired, demoted, converted or none. Empty matches every trial state. An unrecognised value matches nothing rather than failing the request.
                  in: query
                  name: trial_states
                  schema:
                    description: Match any of running, ending_soon, expired, demoted, converted or none. Empty matches every trial state. An unrecognised value matches nothing rather than failing the request.
                    items:
                        type: string
                    type: array
                - allowEmptyValue: true
                  description: 'Organization status: all (default), active (disabled_at IS NULL), or disabled (disabled_at IS NOT NULL). Applies even to exact ID matches.'
                  in: query
                  name: disabled_status
                  schema:
                    description: 'Organization status: all (default), active (disabled_at IS NULL), or disabled (disabled_at IS NOT NULL). Applies even to exact ID matches.'
                    enum:
                        - all
                        - active
                        - disabled
                    type: string
                - allowEmptyValue: true
                  description: Inclusive minimum active member count, from 0 through 9223372036854775807. The generated TypeScript SDK accepts bigint. The handwritten admin client accepts safe integers or decimal strings; use decimal strings above Number.MAX_SAFE_INTEGER.
                  in: query
                  name: min_members
                  schema:
                    description: Inclusive minimum active member count, from 0 through 9223372036854775807. The generated TypeScript SDK accepts bigint. The handwritten admin client accepts safe integers or decimal strings; use decimal strings above Number.MAX_SAFE_INTEGER.
                    format: int64
                    minimum: 0
                    type: integer
                - allowEmptyValue: true
                  description: Inclusive maximum active member count, from 0 through 9223372036854775807. Must be at least min_members. The generated TypeScript SDK accepts bigint. The handwritten admin client accepts safe integers or decimal strings; use decimal strings above Number.MAX_SAFE_INTEGER.
                  in: query
                  name: max_members
                  schema:
                    description: Inclusive maximum active member count, from 0 through 9223372036854775807. Must be at least min_members. The generated TypeScript SDK accepts bigint. The handwritten admin client accepts safe integers or decimal strings; use decimal strings above Number.MAX_SAFE_INTEGER.
                    format: int64
                    minimum: 0
                    type: integer
                - allowEmptyValue: true
                  description: Inclusive creation date in strict YYYY-MM-DD UTC calendar format. Each date bound is optional; must not be after created_to.
                  in: query
                  name: created_from
                  schema:
                    description: Inclusive creation date in strict YYYY-MM-DD UTC calendar format. Each date bound is optional; must not be after created_to.
                    type: string
                - allowEmptyValue: true
                  description: Inclusive creation date in strict YYYY-MM-DD UTC calendar format. Includes the entire UTC day, implemented as an exclusive bound at the following midnight.
                  in: query
                  name: created_to
                  schema:
                    description: Inclusive creation date in strict YYYY-MM-DD UTC calendar format. Includes the entire UTC day, implemented as an exclusive bound at the following midnight.
                    type: string
                - allowEmptyValue: true
                  description: 'Pagination cursor: id of the last item from the previous page in created_at descending, id ascending order. The anchor is resolved regardless of filters; a deleted or unknown id returns an empty page. Ignored when sort or page is supplied.'
                  in: query
                  name: cursor
                  schema:
                    description: 'Pagination cursor: id of the last item from the previous page in created_at descending, id ascending order. The anchor is resolved regardless of filters; a deleted or unknown id returns an empty page. Ignored when sort or page is supplied.'
                    type: string
                - allowEmptyValue: true
                  description: Page size (default 50, max 100).
                  in: query
                  name: limit
                  schema:
                    description: Page size (default 50, max 100).
                    format: int64
                    type: integer
                - allowEmptyValue: true
                  description: 'Column to sort by: name, slug, account_type, account_tier, member_count, created_at, disabled_at or trial_ends_at. account_tier ranks enterprise first, then pro and payg, then free, then any other account type; desc reverses that order. Omitted or unknown values use created_at descending. Ties always sort by id ascending. Supplying it selects offset paging.'
                  in: query
                  name: sort
                  schema:
                    description: 'Column to sort by: name, slug, account_type, account_tier, member_count, created_at, disabled_at or trial_ends_at. account_tier ranks enterprise first, then pro and payg, then free, then any other account type; desc reverses that order. Omitted or unknown values use created_at descending. Ties always sort by id ascending. Supplying it selects offset paging.'
                    type: string
                - allowEmptyValue: true
                  description: Sort direction, asc or desc, applied to the column named by sort. Any other value sorts ascending. Ignored when sort is omitted or unknown, preserving the newest-first default. On its own it does not select offset paging.
                  in: query
                  name: direction
                  schema:
                    description: Sort direction, asc or desc, applied to the column named by sort. Any other value sorts ascending. Ignored when sort is omitted or unknown, preserving the newest-first default. On its own it does not select offset paging.
                    type: string
                - allowEmptyValue: true
                  description: 1-based page number for offset paging (default 1). Supplying it selects offset paging.
                  in: query
                  name: page
                  schema:
                    description: 1-based page number for offset paging (default 1). Supplying it selects offset paging.
                    format: int64
                    type: integer
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminListOrganizationsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: listOrganizations admin
            tags:
                - admin
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
    /admin/organizations.stats:
        get:
            tags:
                - admin
            summary: getOrganizationStats admin
            description: 'Returns platform-wide organization counts for the strip above the organizations list. Every figure counts the whole platform: none of them narrows to the caller''s list filters, so the strip does not move when an operator filters.'
            operationId: adminGetOrganizationStats
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminOrganizationStats'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/platformMcpFeedback.list:
        get:
            description: List the newest Platform MCP feedback reports across every organization.
            operationId: adminListPlatformMcpFeedback
            parameters:
                - allowEmptyValue: true
                  description: Maximum number of reports to return.
                  in: query
                  name: limit
                  schema:
                    default: 200
                    description: Maximum number of reports to return.
                    format: int64
                    maximum: 500
                    minimum: 1
                    type: integer
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListPlatformMcpFeedbackResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: listPlatformMcpFeedback admin
            tags:
                - admin
            x-speakeasy-name-override: listPlatformMcpFeedback
    /admin/project.get:
        get:
            tags:
                - admin
            summary: getProject admin
            description: Returns full admin details for a project by id or slug, including aggregated counts of child resources.
            operationId: adminGetProject
            parameters:
                - name: id_or_slug
                  in: query
                  description: Project ID or slug.
                  allowEmptyValue: true
                  required: true
                  schema:
                    type: string
                    description: Project ID or slug.
                - name: organization_id_or_slug
                  in: query
                  description: Organization the project must belong to, by id or slug. A project outside it is reported as not found. Optional, because the global project lookup has no organization to scope by.
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: Organization the project must belong to, by id or slug. A project outside it is reported as not found. Optional, because the global project lookup has no organization to scope by.
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminProjectDetail'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/project.mcpServerHealth:
        get:
            description: 'Describes one MCP server''s health: authentication configuration and session counts (admin view, no auth scoping). Tool calls come from getMcpServerToolCalls.'
            operationId: adminDescribeMcpServerHealth
            parameters:
                - allowEmptyValue: true
                  description: Organization the project must belong to. A project outside it is reported as not found.
                  in: query
                  name: organization_id
                  required: true
                  schema:
                    description: Organization the project must belong to. A project outside it is reported as not found.
                    type: string
                - allowEmptyValue: true
                  description: Project ID.
                  in: query
                  name: project_id
                  required: true
                  schema:
                    description: Project ID.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: The server id from listProjectMcpServers; the toolset ID for toolset-only servers.
                  in: query
                  name: mcp_server_id
                  required: true
                  schema:
                    description: The server id from listProjectMcpServers; the toolset ID for toolset-only servers.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Window in days for distinct_subjects_in_window.
                  in: query
                  name: window_days
                  schema:
                    default: 14
                    description: Window in days for distinct_subjects_in_window.
                    enum:
                        - 14
                        - 30
                        - 90
                    format: int64
                    type: integer
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminMcpServerHealth'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: describeMcpServerHealth admin
            tags:
                - admin
            x-speakeasy-name-override: describeMcpServerHealth
            x-speakeasy-react-hook:
                name: AdminDescribeMcpServerHealth
    /admin/project.mcpServerToolCalls:
        get:
            description: Reads one MCP server's tool call outcomes and series over a window (admin view, no auth scoping). Returns logging:disabled without reading telemetry when the organization's logs are off.
            operationId: adminGetMcpServerToolCalls
            parameters:
                - allowEmptyValue: true
                  description: Organization the project must belong to. A project outside it is reported as not found.
                  in: query
                  name: organization_id
                  required: true
                  schema:
                    description: Organization the project must belong to. A project outside it is reported as not found.
                    type: string
                - allowEmptyValue: true
                  description: Project ID.
                  in: query
                  name: project_id
                  required: true
                  schema:
                    description: Project ID.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: The server id from listProjectMcpServers; the toolset ID for toolset-only servers.
                  in: query
                  name: mcp_server_id
                  required: true
                  schema:
                    description: The server id from listProjectMcpServers; the toolset ID for toolset-only servers.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Window in days. 90 days is bucketed weekly, shorter windows daily.
                  in: query
                  name: window_days
                  schema:
                    default: 14
                    description: Window in days. 90 days is bucketed weekly, shorter windows daily.
                    enum:
                        - 14
                        - 30
                        - 90
                    format: int64
                    type: integer
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminMcpServerToolCalls'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: getMcpServerToolCalls admin
            tags:
                - admin
            x-speakeasy-name-override: getMcpServerToolCalls
            x-speakeasy-react-hook:
                name: AdminGetMcpServerToolCalls
    /admin/project.mcpServers:
        get:
            tags:
                - admin
            summary: listProjectMcpServers admin
            description: Lists the MCP servers in a project (admin view, no auth scoping).
            operationId: adminListProjectMcpServers
            parameters:
                - name: organization_id
                  in: query
                  description: Organization the project must belong to. A project outside it is reported as not found.
                  allowEmptyValue: true
                  required: true
                  schema:
                    type: string
                    description: Organization the project must belong to. A project outside it is reported as not found.
                - name: project_id
                  in: query
                  description: Project ID.
                  allowEmptyValue: true
                  required: true
                  schema:
                    type: string
                    description: Project ID.
                    format: uuid
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminListProjectMcpServersResult'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/project.redeploy:
        post:
            description: Clones a project's active deployment and starts processing it. Refuses when the active deployment is no longer the one reviewed. The new deployment becomes active only if processing succeeds.
            operationId: adminRedeployProject
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RedeployProjectRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminProjectRedeployResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: redeployProject admin
            tags:
                - admin
            x-speakeasy-name-override: redeployProject
            x-speakeasy-react-hook:
                name: AdminRedeployProject
    /admin/project.redeployPreview:
        get:
            description: Returns what redeploying a project would act on, for review before redeployProject.
            operationId: adminGetProjectRedeployPreview
            parameters:
                - allowEmptyValue: true
                  description: Exact organization ID.
                  in: query
                  name: organization_id
                  required: true
                  schema:
                    description: Exact organization ID.
                    type: string
                - allowEmptyValue: true
                  description: Exact project ID.
                  in: query
                  name: project_id
                  required: true
                  schema:
                    description: Exact project ID.
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminProjectRedeployPreview'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: getProjectRedeployPreview admin
            tags:
                - admin
            x-speakeasy-name-override: getProjectRedeployPreview
            x-speakeasy-react-hook:
                name: AdminGetProjectRedeployPreview
    /admin/project.setMcpServerScopePin:
        post:
            description: Sets or clears the scopes pinned on the protected resource behind a remote-backed MCP server (admin view, no auth scoping). The pin applies to every live server in the project with the same upstream URL. Audited as the staff member.
            operationId: adminSetMcpServerScopePin
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetMcpServerScopePinRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminMcpServerResourceScopes'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: setMcpServerScopePin admin
            tags:
                - admin
            x-speakeasy-name-override: setMcpServerScopePin
            x-speakeasy-react-hook:
                name: AdminSetMcpServerScopePin
    /admin/registry.create:
        post:
            description: Staff-only registry administration.
            operationId: adminCreateRegistryEntry
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateRegistryEntryRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminRegistryEntry'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: createRegistryEntry admin
            tags:
                - admin
            x-speakeasy-name-override: createRegistryEntry
    /admin/registry.curatePromotionCandidate:
        post:
            description: Reject, archive, or restore one exact unpublished catalogue candidate. Hidden candidates cannot be promoted until restored and refreshed.
            operationId: adminCurateRegistryPromotionCandidate
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CurateRegistryPromotionCandidateRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminRegistryPromotionCandidate'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: curateRegistryPromotionCandidate admin
            tags:
                - admin
            x-speakeasy-name-override: curateRegistryPromotionCandidate
    /admin/registry.get:
        get:
            description: Staff-only registry administration.
            operationId: adminGetRegistryEntry
            parameters:
                - allowEmptyValue: true
                  in: query
                  name: id
                  required: true
                  schema:
                    format: uuid
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminRegistryEntry'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: getRegistryEntry admin
            tags:
                - admin
            x-speakeasy-name-override: getRegistryEntry
    /admin/registry.list:
        get:
            description: Staff-only registry administration.
            operationId: adminListRegistryEntries
            parameters:
                - allowEmptyValue: true
                  description: Search query; at most 1024 UTF-8 bytes (enforced by the server).
                  in: query
                  name: query
                  schema:
                    description: Search query; at most 1024 UTF-8 bytes (enforced by the server).
                    type: string
                - allowEmptyValue: true
                  in: query
                  name: published
                  schema:
                    type: boolean
                - allowEmptyValue: true
                  description: Opaque continuation cursor from next_cursor; at most 8192 UTF-8 bytes (enforced by the server).
                  in: query
                  name: cursor
                  schema:
                    description: Opaque continuation cursor from next_cursor; at most 8192 UTF-8 bytes (enforced by the server).
                    type: string
                - allowEmptyValue: true
                  description: Page size; zero uses the server default of 25.
                  in: query
                  name: limit
                  schema:
                    description: Page size; zero uses the server default of 25.
                    format: int32
                    maximum: 50
                    minimum: 0
                    type: integer
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminRegistryPage'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: listRegistryEntries admin
            tags:
                - admin
            x-speakeasy-name-override: listRegistryEntries
    /admin/registry.oktaCandidates:
        get:
            description: 'Staff-only registry administration: Okta application names observed across synced tenants that plausibly belong to the entry, for confirmation in the editor.'
            operationId: adminGetRegistryOktaCandidates
            parameters:
                - allowEmptyValue: true
                  in: query
                  name: id
                  required: true
                  schema:
                    format: uuid
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminRegistryOktaCandidates'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: getRegistryOktaCandidates admin
            tags:
                - admin
            x-speakeasy-name-override: getRegistryOktaCandidates
    /admin/registry.oktaUnmapped:
        get:
            description: 'Staff-only registry administration: observed Okta application names no entry claims yet, with the entry the heuristic would propose.'
            operationId: adminListRegistryOktaUnmapped
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminRegistryOktaUnmapped'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: listRegistryOktaUnmapped admin
            tags:
                - admin
            x-speakeasy-name-override: listRegistryOktaUnmapped
    /admin/registry.promoteCandidate:
        post:
            description: Publish an explicitly reviewed public catalogue entry and queue setup documentation. Customer credentials are never copied.
            operationId: adminPromoteRegistryCandidate
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/PromoteRegistryCandidateRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminRegistryPromotionCandidate'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: promoteRegistryCandidate admin
            tags:
                - admin
            x-speakeasy-name-override: promoteRegistryCandidate
    /admin/registry.promotionCandidate:
        post:
            description: Refresh health evidence for one exact remote MCP deployment before staff review.
            operationId: adminGetRegistryPromotionCandidate
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetRegistryPromotionCandidateRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminRegistryPromotionCandidate'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: getRegistryPromotionCandidate admin
            tags:
                - admin
            x-speakeasy-name-override: getRegistryPromotionCandidate
    /admin/registry.promotionCandidates:
        get:
            description: List observed remote MCP candidates and durable promotion delivery status. Active excludes endpoints already in the catalogue; candidate includes all unpublished active entries. No source URLs or credentials are returned.
            operationId: adminListRegistryPromotionCandidates
            parameters:
                - allowEmptyValue: true
                  in: query
                  name: cursor
                  schema:
                    type: string
                - allowEmptyValue: true
                  in: query
                  name: status
                  schema:
                    default: active
                    enum:
                        - active
                        - all
                        - candidate
                        - rejected
                        - archived
                        - promoted
                    type: string
                - allowEmptyValue: true
                  in: query
                  name: limit
                  schema:
                    default: 25
                    format: int64
                    maximum: 50
                    minimum: 1
                    type: integer
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminRegistryPromotionCandidates'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: listRegistryPromotionCandidates admin
            tags:
                - admin
            x-speakeasy-name-override: listRegistryPromotionCandidates
    /admin/registry.retryPromotionDocs:
        post:
            description: Retry a failed setup-guide request for one exact reviewed promotion without republishing the catalogue entry.
            operationId: adminRetryRegistryPromotionDocs
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RetryRegistryPromotionDocsRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminRegistryPromotionCandidate'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: retryRegistryPromotionDocs admin
            tags:
                - admin
            x-speakeasy-name-override: retryRegistryPromotionDocs
    /admin/registry.save:
        post:
            description: Staff-only registry administration.
            operationId: adminSaveRegistryEntry
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SaveRegistryEntryRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminRegistryEntry'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: saveRegistryEntry admin
            tags:
                - admin
            x-speakeasy-name-override: saveRegistryEntry
    /admin/registry.setPublished:
        post:
            description: Staff-only registry administration.
            operationId: adminSetRegistryEntryPublished
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetRegistryEntryPublishedRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminRegistryEntry'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: setRegistryEntryPublished admin
            tags:
                - admin
            x-speakeasy-name-override: setRegistryEntryPublished
    /admin/remote-session-issuers.createGlobalIssuer:
        post:
            description: Create a global remote_session_issuer (project_id NULL, organization_id NULL). Requires platform admin.
            operationId: adminCreateGlobalIssuer
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateRemoteSessionIssuerForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionIssuer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - admin_auth_header_Authorization: []
            summary: createGlobalIssuer admin
            tags:
                - admin
            x-speakeasy-name-override: createGlobalIssuer
    /admin/remote-session-issuers.deleteGlobalIssuer:
        delete:
            description: Soft-delete a global remote_session_issuer. Blocked when any global remote_session_clients still reference it. Requires platform admin.
            operationId: adminDeleteGlobalIssuer
            parameters:
                - allowEmptyValue: true
                  description: The remote_session_issuer id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The remote_session_issuer id.
                    format: uuid
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - admin_auth_header_Authorization: []
            summary: deleteGlobalIssuer admin
            tags:
                - admin
            x-speakeasy-name-override: deleteGlobalIssuer
    /admin/remote-session-issuers.fetchGlobalIssuerMetadata:
        post:
            description: Hit an upstream issuer's RFC 8414 .well-known/oauth-authorization-server document and return a draft suitable for createGlobalIssuer. Keyed by issuer URL; no record need exist and nothing is persisted. Requires platform admin.
            operationId: adminFetchGlobalIssuerMetadata
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/FetchIssuerMetadataRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionIssuerDraft'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - admin_auth_header_Authorization: []
            summary: fetchGlobalIssuerMetadata admin
            tags:
                - admin
            x-speakeasy-name-override: fetchGlobalIssuerMetadata
    /admin/remote-session-issuers.getGlobalIssuer:
        get:
            description: Get a global remote_session_issuer by id. Requires platform admin.
            operationId: adminGetGlobalIssuer
            parameters:
                - allowEmptyValue: true
                  description: The remote_session_issuer id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The remote_session_issuer id.
                    format: uuid
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GlobalRemoteSessionIssuer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - admin_auth_header_Authorization: []
            summary: getGlobalIssuer admin
            tags:
                - admin
            x-speakeasy-name-override: getGlobalIssuer
    /admin/remote-session-issuers.getGlobalIssuerDuplicatePreflight:
        get:
            description: |-
                Report the global remote_session_issuers that already describe an upstream issuer URL, so the catalog create and edit forms can warn before curating a second entry for the same authorization server. Requires platform admin.

                Scoped to the global partition only. Tenant issuers naming the same URL are deliberately not reported here — listGlobalIssuerConvergenceCandidates is the surface for those, and it is keyed on a global issuer that already exists.

                The global tier is unique on slug but not on issuer, so nothing prevents a duplicate catalog entry and this warning is the only thing that will catch one. Advisory all the same: it never blocks the write. Matching uses the same canonicalization as the tenant-facing preflights, and an unparseable URL returns no matches rather than an error.
            operationId: adminGetGlobalIssuerDuplicatePreflight
            parameters:
                - allowEmptyValue: true
                  description: The upstream issuer URL being entered (e.g. https://login.linear.app). Empty or unparseable returns no matches.
                  in: query
                  name: issuer
                  schema:
                    description: The upstream issuer URL being entered (e.g. https://login.linear.app). Empty or unparseable returns no matches.
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionIssuerDuplicatePreflight'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - admin_auth_header_Authorization: []
            summary: getGlobalIssuerDuplicatePreflight admin
            tags:
                - admin
            x-speakeasy-name-override: getGlobalIssuerDuplicatePreflight
    /admin/remote-session-issuers.getGlobalIssuerMigratePreflight:
        get:
            description: 'Authoritative impact summary for consolidating a tenant remote_session_issuer onto a global one: the clients that would move, the affected MCP servers, and every blocker (endpoint mismatches, conflicting MCP-server bindings). Also reports how many tenant-owned clients the target already carries, since those permanently block deleting it. Requires platform admin.'
            operationId: adminGetGlobalIssuerMigratePreflight
            parameters:
                - allowEmptyValue: true
                  description: The organization- or project-level remote_session_issuer to migrate away from.
                  in: query
                  name: source_id
                  required: true
                  schema:
                    description: The organization- or project-level remote_session_issuer to migrate away from.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: The global remote_session_issuer to migrate onto.
                  in: query
                  name: target_id
                  required: true
                  schema:
                    description: The global remote_session_issuer to migrate onto.
                    format: uuid
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/IssuerMigratePreflight'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - admin_auth_header_Authorization: []
            summary: getGlobalIssuerMigratePreflight admin
            tags:
                - admin
            x-speakeasy-name-override: getGlobalIssuerMigratePreflight
    /admin/remote-session-issuers.list:
        get:
            description: List global remote_session_issuers. Requires platform admin.
            operationId: adminListGlobalIssuers
            parameters:
                - allowEmptyValue: true
                  description: Pagination cursor.
                  in: query
                  name: cursor
                  schema:
                    description: Pagination cursor.
                    type: string
                - allowEmptyValue: true
                  description: Page size (default 50, max 100).
                  in: query
                  name: limit
                  schema:
                    description: Page size (default 50, max 100).
                    format: int64
                    type: integer
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListGlobalRemoteSessionIssuersResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - admin_auth_header_Authorization: []
            summary: listGlobalIssuers admin
            tags:
                - admin
            x-speakeasy-name-override: listGlobalIssuers
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
    /admin/remote-session-issuers.listGlobalIssuerConvergenceCandidates:
        get:
            description: List the organization- and project-level remote_session_issuers that describe the same upstream authorization server as a given global issuer, and so could be consolidated onto it. Matching is by canonical issuer URL, collapsing trailing-slash and default-port spellings. Each candidate carries its owning organization, the number of clients that would move, and the metadata differences that would block or accompany the migration. Requires platform admin.
            operationId: adminListGlobalIssuerConvergenceCandidates
            parameters:
                - allowEmptyValue: true
                  description: The global remote_session_issuer that candidates would be consolidated onto.
                  in: query
                  name: target_id
                  required: true
                  schema:
                    description: The global remote_session_issuer that candidates would be consolidated onto.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Pagination cursor.
                  in: query
                  name: cursor
                  schema:
                    description: Pagination cursor.
                    type: string
                - allowEmptyValue: true
                  description: Page size (default 50, max 100).
                  in: query
                  name: limit
                  schema:
                    description: Page size (default 50, max 100).
                    format: int64
                    type: integer
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListIssuerConvergenceCandidatesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - admin_auth_header_Authorization: []
            summary: listGlobalIssuerConvergenceCandidates admin
            tags:
                - admin
            x-speakeasy-name-override: listGlobalIssuerConvergenceCandidates
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
    /admin/remote-session-issuers.migrateToGlobalIssuer:
        post:
            description: 'Consolidate an organization- or project-level remote_session_issuer onto a global one: re-point every client from the source issuer onto the target, then soft-delete the source. Existing remote sessions are preserved, so no user re-authenticates. The source may belong to any organization; the target must be a global issuer. Both must agree on issuer (compared canonically), token_endpoint, and authorization_endpoint. One source per call. Requires platform admin.'
            operationId: adminMigrateToGlobalIssuer
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/MigrateRemoteSessionIssuerRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/MigrateRemoteSessionIssuerResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - admin_auth_header_Authorization: []
            summary: migrateToGlobalIssuer admin
            tags:
                - admin
            x-speakeasy-name-override: migrateToGlobalIssuer
    /admin/remote-session-issuers.refreshGlobalIssuerMetadata:
        post:
            description: Re-fetch an existing global remote_session_issuer's RFC 8414 metadata document and persist the discovered values. Keyed by issuer id. Only RFC 8414-derived columns are written — endpoints, the *_supported arrays, client_id_metadata_document_supported, and the documentation URLs. Speakeasy behavior and display fields (oidc, passthrough, name, slug, logo, client setup documentation) are left alone. Requires platform admin.
            operationId: adminRefreshGlobalIssuerMetadata
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RiskIDRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionIssuerRefresh'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - admin_auth_header_Authorization: []
            summary: refreshGlobalIssuerMetadata admin
            tags:
                - admin
            x-speakeasy-name-override: refreshGlobalIssuerMetadata
    /admin/remote-session-issuers.updateGlobalIssuer:
        post:
            description: Update a global remote_session_issuer. Requires platform admin.
            operationId: adminUpdateGlobalIssuer
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateRemoteSessionIssuerForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionIssuer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - admin_auth_header_Authorization: []
            summary: updateGlobalIssuer admin
            tags:
                - admin
            x-speakeasy-name-override: updateGlobalIssuer
    /admin/session.get:
        get:
            tags:
                - admin
            summary: getSession admin
            operationId: adminGetSession
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminSession'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/signupOffers:
        get:
            tags:
                - admin
            summary: listSignupOffers admin
            description: List staff-managed signup offers. Stripe owns all promotion terms.
            operationId: adminListSignupOffers
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListSignupOffersResponseBody'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/signupOffers.create:
        post:
            tags:
                - admin
            summary: createSignupOffer admin
            description: Create a disabled signup offer mapped to an exact Stripe promotion code ID.
            operationId: adminCreateSignupOffer
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateSignupOfferRequestBody'
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminSignupOffer'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/signupOffers.update:
        post:
            tags:
                - admin
            summary: updateSignupOffer admin
            description: Edit, enable or disable a signup offer. Existing accepted promotion applications are unchanged.
            operationId: adminUpdateSignupOffer
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateSignupOfferRequestBody'
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminSignupOffer'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/supportCoverage.get:
        get:
            description: 'Observed support coverage for one organization: per-surface evidence for activity, policy enforcement, identity attribution, token usage and shadow MCP exposure, across Speakeasy''s MCP gateway and each consuming agent surface.'
            operationId: adminGetSupportCoverage
            parameters:
                - allowEmptyValue: true
                  description: Organization to report coverage for.
                  in: query
                  name: organization_id
                  required: true
                  schema:
                    description: Organization to report coverage for.
                    type: string
                - allowEmptyValue: true
                  description: Observation window in days.
                  in: query
                  name: window_days
                  schema:
                    default: 30
                    description: Observation window in days.
                    format: int64
                    maximum: 90
                    minimum: 1
                    type: integer
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SupportCoverageResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: getSupportCoverage admin
            tags:
                - admin
            x-speakeasy-name-override: getSupportCoverage
            x-speakeasy-react-hook:
                name: AdminGetSupportCoverage
    /admin/supportMatrix.get:
        get:
            description: Read the shared support catalog and product coverage.
            operationId: adminGetSupportMatrix
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SupportMatrix'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: getSupportMatrix admin
            tags:
                - admin
            x-speakeasy-name-override: getSupportMatrix
            x-speakeasy-react-hook:
                name: AdminGetSupportMatrix
    /admin/supportMatrix.update:
        post:
            description: Save coverage against the last read revision; rejects concurrent changes.
            operationId: adminUpdateSupportMatrix
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateSupportMatrixRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SupportMatrix'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: updateSupportMatrix admin
            tags:
                - admin
            x-speakeasy-name-override: updateSupportMatrix
            x-speakeasy-react-hook:
                name: AdminUpdateSupportMatrix
    /admin/trial.changeEndDate:
        post:
            tags:
                - admin
            summary: changeTrialEndDate admin
            description: Sets a running trial's end date to a future instant, shortening or extending it without restarting the trial.
            operationId: adminChangeTrialEndDate
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ChangeTrialEndDateRequestBody'
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminOrganization'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/trial.convert:
        post:
            tags:
                - admin
            summary: markEnterpriseTrialConverted admin
            description: Records that an organization's enterprise trial converted to a signed contract.
            operationId: adminMarkEnterpriseTrialConverted
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/MarkEnterpriseTrialConvertedRequestBody'
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/MarkEnterpriseTrialConvertedResult'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/trial.extend:
        post:
            tags:
                - admin
            summary: extendTrial admin
            description: 'Extends a running enterprise trial by adding days to its current end date. Only a running trial can be extended: one that has converted, has been demoted, or has already expired is rejected rather than re-armed.'
            operationId: adminExtendTrial
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ExtendTrialRequestBody'
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminOrganization'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/trial.rearm:
        post:
            tags:
                - admin
            summary: rearmTrial admin
            description: 'Puts a demoted enterprise trial back on: restores the organization''s account type and whitelist flag, revives its model provider keys, and gives the trial a fresh run of the given length counted from now. Only a demoted trial can be re-armed; one that has converted or is already running is rejected.'
            operationId: adminRearmTrial
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RearmTrialRequestBody'
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminOrganization'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/trial.start:
        post:
            tags:
                - admin
            summary: startTrial admin
            description: 'Starts a new enterprise trial for an organization that has never trialled, or restarts one that has expired without converting or being demoted. Sets the account type, whitelist flag, trial entitlements and a fresh runway counted from now. A running, demoted or converted trial is rejected: those are extend, re-arm and a contract.'
            operationId: adminStartTrial
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/StartTrialRequestBody'
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminOrganization'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/upstreamOAuthMigration.disableEnforcement:
        post:
            description: 'Disables upstream auth enforcement for one organization. This is its rollback: requests return to the upstream client choice within a minute. Safe to call when enforcement is already off.'
            operationId: adminDisableUpstreamAuthEnforcement
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DisableUpstreamAuthEnforcementRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminUpstreamOAuthMigrationStatus'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: disableUpstreamAuthEnforcement admin
            tags:
                - admin
            x-speakeasy-name-override: disableUpstreamAuthEnforcement
    /admin/upstreamOAuthMigration.enableEnforcement:
        post:
            description: 'Enables upstream auth enforcement for one organization: its direct proxied servers and assistant turns are served by the typed auth client resolver, and using the chosen auth client requires mcp:auth. Refused unless the organization is migrated, its auth clients are recorded, its default auth permissions are granted, every credential choice that can name an auth client does, and its assistant profiles are recorded. Choices left ambiguous and profile gaps are not blocking: those credentials are asked to reconnect and those turns are refused with the reason. Shadow parity and the cross-organization denial notice are confirmed by the caller, since they are read from telemetry and communication outside the database. Enabled enforcement does not depend on the auth-client-resolver flags.'
            operationId: adminEnableUpstreamAuthEnforcement
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/EnableUpstreamAuthEnforcementRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminUpstreamOAuthMigrationStatus'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: enableUpstreamAuthEnforcement admin
            tags:
                - admin
            x-speakeasy-name-override: enableUpstreamAuthEnforcement
    /admin/upstreamOAuthMigration.organizations:
        get:
            description: Lists every organization the upstream OAuth migration applies to, so staff can check and migrate them one by one.
            operationId: adminListUpstreamOAuthMigrationOrganizations
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminUpstreamOAuthMigrationOrganizations'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: listUpstreamOAuthMigrationOrganizations admin
            tags:
                - admin
            x-speakeasy-name-override: listUpstreamOAuthMigrationOrganizations
    /admin/upstreamOAuthMigration.run:
        post:
            description: 'Migrates one organization''s upstream OAuth configuration: records the server to client associations its configuration proves, then each live credential''s client choice. Idempotent, so it is safe to run again; a server the configuration does not prove is reported and never guessed.'
            operationId: adminRunUpstreamOAuthMigration
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RunUpstreamOAuthMigrationRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminUpstreamOAuthMigrationRun'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: runUpstreamOAuthMigration admin
            tags:
                - admin
            x-speakeasy-name-override: runUpstreamOAuthMigration
    /admin/upstreamOAuthMigration.status:
        get:
            description: Reports where one organization stands in the upstream OAuth migration from a dry run that writes nothing.
            operationId: adminGetUpstreamOAuthMigrationStatus
            parameters:
                - allowEmptyValue: true
                  description: The organization ID.
                  in: query
                  name: organization_id
                  required: true
                  schema:
                    description: The organization ID.
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminUpstreamOAuthMigrationStatus'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - admin_auth_header_Authorization: []
            summary: getUpstreamOAuthMigrationStatus admin
            tags:
                - admin
            x-speakeasy-name-override: getUpstreamOAuthMigrationStatus
    /admin/users.list:
        get:
            tags:
                - admin
            summary: listUsers admin
            description: Staff-only active user discovery.
            operationId: adminListUsers
            parameters:
                - name: q
                  in: query
                  allowEmptyValue: true
                  schema:
                    type: string
                - name: page
                  in: query
                  allowEmptyValue: true
                  schema:
                    type: integer
                    format: int64
                    minimum: 1
                - name: limit
                  in: query
                  allowEmptyValue: true
                  schema:
                    type: integer
                    format: int64
                    minimum: 1
                    maximum: 100
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminListUsersResult'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /admin/users.organizations.list:
        get:
            tags:
                - admin
            summary: listUserOrganizations admin
            description: Staff-only active user discovery.
            operationId: adminListUserOrganizations
            parameters:
                - name: user_id
                  in: query
                  allowEmptyValue: true
                  required: true
                  schema:
                    type: string
                - name: page
                  in: query
                  allowEmptyValue: true
                  schema:
                    type: integer
                    format: int64
                    minimum: 1
                - name: limit
                  in: query
                  allowEmptyValue: true
                  schema:
                    type: integer
                    format: int64
                    minimum: 1
                    maximum: 100
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminListUserOrganizationsResult'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - admin_auth_header_Authorization: []
    /otel/v1/logs:
        post:
            description: Endpoint to receive OTEL logs data from LLM providers and harnesses.
            operationId: uploadLogs
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
                - allowEmptyValue: true
                  description: Encoding applied to the OTLP request body. Supported values are gzip and identity.
                  in: header
                  name: Content-Encoding
                  schema:
                    description: Encoding applied to the OTLP request body. Supported values are gzip and identity.
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: logs otel
            tags:
                - otel
            x-speakeasy-name-override: uploadLogs
            x-speakeasy-react-hook:
                name: UploadOpenTelemetryLogs
    /otel/v1/metrics:
        post:
            description: Endpoint to receive OTEL metrics data from LLM providers and harnesses.
            operationId: uploadMetrics
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
                - allowEmptyValue: true
                  description: Encoding applied to the OTLP request body. Supported values are gzip and identity.
                  in: header
                  name: Content-Encoding
                  schema:
                    description: Encoding applied to the OTLP request body. Supported values are gzip and identity.
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: metrics otel
            tags:
                - otel
            x-speakeasy-name-override: uploadMetrics
            x-speakeasy-react-hook:
                name: UploadOpenTelemetryMetrics
    /otel/v1/traces:
        post:
            description: Endpoint to receive OTEL traces data from LLM providers and harnesses.
            operationId: uploadTraces
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
                - allowEmptyValue: true
                  description: Encoding applied to the OTLP request body. Supported values are gzip and identity.
                  in: header
                  name: Content-Encoding
                  schema:
                    description: Encoding applied to the OTLP request body. Supported values are gzip and identity.
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: traces otel
            tags:
                - otel
            x-speakeasy-name-override: uploadTraces
            x-speakeasy-react-hook:
                name: UploadOpenTelemetryTraces
    /rpc/access.applyDirectoryRoleSetup:
        post:
            description: 'Apply a reviewed bulk setup in one transaction: create the requested new roles and replace each listed source''s role set. New roles get no grants unless grant_set is given, in which case every new role in the batch gets exactly that set. If any item''s version no longer matches, nothing is written and the request returns conflict; preview again. WorkOS role sync for new roles is requested after commit and reported as requested, not done. Creating roles sets up no plugin distribution.'
            operationId: applyDirectoryRoleSetup
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ApplyDirectoryRoleSetupForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ApplyDirectoryRoleSetupResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: applyDirectoryRoleSetup access
            tags:
                - access
            x-speakeasy-name-override: applyDirectoryRoleSetup
            x-speakeasy-react-hook:
                name: ApplyDirectoryRoleSetup
                type: mutation
    /rpc/access.createRole:
        post:
            description: Create a new custom role.
            operationId: createRole
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateRoleForm'
                required: true
            responses:
                "201":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Role'
                    description: Created response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: createRole access
            tags:
                - access
            x-speakeasy-name-override: createRole
            x-speakeasy-react-hook:
                name: CreateRole
    /rpc/access.createTemporaryGrant:
        post:
            description: 'Give one principal (a member, role, agent, or everyone) a scope on a resource or activity boundary until a deadline, without changing role assignments. Once the deadline passes the grant stops authorizing new requests, with no role change or sign-out. Fails with a conflict when the principal already holds the same grant permanently, or temporarily (renew that one instead). An expired grant for the same boundary is restarted. Requires org:admin. An administrator may give themselves temporary access; the audit event records that it was self-granted. Session only: the grant is attributed to the person who gave it.'
            operationId: createTemporaryGrant
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateTemporaryGrantForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/TemporaryGrant'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: createTemporaryGrant access
            tags:
                - access
            x-speakeasy-name-override: createTemporaryGrant
            x-speakeasy-react-hook:
                name: CreateTemporaryGrant
                type: mutation
    /rpc/access.deleteDirectoryRoleMapping:
        delete:
            description: Remove a directory role mapping.
            operationId: deleteDirectoryRoleMapping
            parameters:
                - allowEmptyValue: true
                  description: The ID of the mapping to remove.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the mapping to remove.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: deleteDirectoryRoleMapping access
            tags:
                - access
            x-speakeasy-name-override: deleteDirectoryRoleMapping
            x-speakeasy-react-hook:
                name: DeleteDirectoryRoleMapping
                type: mutation
    /rpc/access.deleteRole:
        delete:
            description: Delete a custom role (system roles cannot be deleted).
            operationId: deleteRole
            parameters:
                - allowEmptyValue: true
                  description: The ID of the role to delete.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the role to delete.
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: deleteRole access
            tags:
                - access
            x-speakeasy-name-override: deleteRole
            x-speakeasy-react-hook:
                name: DeleteRole
    /rpc/access.explainResourceAccess:
        get:
            description: 'Explain whether one organization member can connect to, view, and manage one resource, and which rules decide it. The decision comes from the same evaluation as runtime enforcement. A gateway is refused: nothing checks access on its own id, so check each server it fronts instead. Like listIdentityAccess it describes one person''s access, so it takes a session only: API keys are not checked against grants and would see any member''s rules.'
            operationId: explainResourceAccess
            parameters:
                - allowEmptyValue: true
                  description: The kind of resource to explain.
                  in: query
                  name: resource_kind
                  required: true
                  schema:
                    description: The kind of resource to explain.
                    enum:
                        - mcp
                    type: string
                - allowEmptyValue: true
                  description: The resource to explain.
                  in: query
                  name: resource_id
                  required: true
                  schema:
                    description: The resource to explain.
                    type: string
                - allowEmptyValue: true
                  description: The organization member whose access to explain.
                  in: query
                  name: user_id
                  required: true
                  schema:
                    description: The organization member whose access to explain.
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ExplainResourceAccessResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: explainResourceAccess access
            tags:
                - access
            x-speakeasy-name-override: explainResourceAccess
            x-speakeasy-react-hook:
                name: ExplainResourceAccess
    /rpc/access.getDirectoryReviewSettings:
        get:
            description: 'Get the organization''s directory review settings: whether its admins are emailed when directory changes are waiting for a decision.'
            operationId: getDirectoryReviewSettings
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DirectoryReviewSettings'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: getDirectoryReviewSettings access
            tags:
                - access
            x-speakeasy-name-override: getDirectoryReviewSettings
            x-speakeasy-react-hook:
                name: DirectoryReviewSettings
    /rpc/access.getRole:
        get:
            description: Get a role by ID.
            operationId: getRole
            parameters:
                - allowEmptyValue: true
                  description: The ID of the role.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the role.
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Role'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: getRole access
            tags:
                - access
            x-speakeasy-name-override: getRole
            x-speakeasy-react-hook:
                name: Role
    /rpc/access.getShadowMCPInventoryServer:
        get:
            description: Get one project-scoped Shadow MCP server inventory URL with usage and policy-bypass state. Requires an authenticated session authorized for org:admin on the active organization.
            operationId: getShadowMCPInventoryServer
            parameters:
                - allowEmptyValue: true
                  in: query
                  name: project_id
                  required: true
                  schema:
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Shadow MCP server slug to inspect.
                  in: query
                  name: server_slug
                  required: true
                  schema:
                    description: Shadow MCP server slug to inspect.
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ShadowMCPInventoryServer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getShadowMCPInventoryServer access
            tags:
                - access
            x-speakeasy-name-override: getShadowMCPInventoryServer
            x-speakeasy-react-hook:
                name: ShadowMCPInventoryServer
    /rpc/access.listAIDetectionUsers:
        get:
            description: 'List the enrolled users one detected AI tool was found for, each with their devices, signals, versions and first and last sightings: the evidence listEmployeeAIDetections gives per tool for one person, expanded the other way round. Org-scoped like listAIDetections and, like it, requires an authenticated session authorized for org:admin on the active organization. Linked alias emails are folded to the canonical identity, so one person is one row. A target with no detections in the organization is not_found.'
            operationId: listAIDetectionUsers
            parameters:
                - allowEmptyValue: true
                  description: Id of the detection target to expand. Accepted exactly as agents report it, under the same length bound the scan-report ingest stores it with, so every id in the inventory can be expanded.
                  in: query
                  name: target_id
                  required: true
                  schema:
                    description: Id of the detection target to expand. Accepted exactly as agents report it, under the same length bound the scan-report ingest stores it with, so every id in the inventory can be expanded.
                    maxLength: 64
                    minLength: 1
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListAIDetectionUsersResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listAIDetectionUsers access
            tags:
                - access
            x-speakeasy-name-override: listAIDetectionUsers
            x-speakeasy-react-hook:
                name: AIDetectionUsers
    /rpc/access.listAIDetections:
        get:
            description: List AI tools detected on enrolled devices by device-agent AI scans, aggregated per detection target across the organization. Org-scoped — detections attach to devices and enrolled users, not projects. Requires an authenticated session authorized for org:admin on the active organization. Each row carries the organization's gateway access decision for that tool. Display names and categories are decorated from the server's detection target catalog at read time; targets the catalog does not know are listed under their raw reported id.
            operationId: listAIDetections
            parameters:
                - allowEmptyValue: true
                  description: Filter to detection targets of one category.
                  in: query
                  name: category
                  schema:
                    description: Filter to detection targets of one category.
                    enum:
                        - harness
                        - assistant
                        - local_model
                    type: string
                - allowEmptyValue: true
                  description: Filter to detections attributed to active members of this SCIM directory group. A group with no active members yields an empty list.
                  in: query
                  name: directory_group_id
                  schema:
                    description: Filter to detections attributed to active members of this SCIM directory group. A group with no active members yields an empty list.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListAIDetectionsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listAIDetections access
            tags:
                - access
            x-speakeasy-name-override: listAIDetections
            x-speakeasy-react-hook:
                name: AIDetections
    /rpc/access.listAgentPolicyScopes:
        get:
            description: 'List the scopes an agent policy may hold, as the catalogue describes them. Needs a session and no organization grant: an owner configuring their own agent holds no RBAC grant, and the list is product configuration.'
            operationId: listAgentPolicyScopes
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListAgentPolicyScopesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listAgentPolicyScopes access
            tags:
                - access
            x-speakeasy-name-override: listAgentPolicyScopes
            x-speakeasy-react-hook:
                name: ListAgentPolicyScopes
    /rpc/access.listAudienceOptions:
        get:
            description: 'List the principals that can be given access: everyone, roles, people, and agents.'
            operationId: listAudienceOptions
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListAudienceOptionsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: listAudienceOptions access
            tags:
                - access
            x-speakeasy-name-override: listAudienceOptions
            x-speakeasy-react-hook:
                name: AudienceOptions
    /rpc/access.listChallengeBuckets:
        get:
            description: List authz challenges grouped into time-based burst buckets. Consecutive challenges with the same dimensions within a 10-minute window are collapsed into a single bucket.
            operationId: listChallengeBuckets
            parameters:
                - allowEmptyValue: true
                  description: Filter by outcome.
                  in: query
                  name: outcome
                  schema:
                    description: Filter by outcome.
                    enum:
                        - allow
                        - deny
                    type: string
                - allowEmptyValue: true
                  description: Filter by principal URN.
                  in: query
                  name: principal_urn
                  schema:
                    description: Filter by principal URN.
                    type: string
                - allowEmptyValue: true
                  description: Filter by scope.
                  in: query
                  name: scope
                  schema:
                    description: Filter by scope.
                    type: string
                - allowEmptyValue: true
                  description: Filter to a specific project.
                  in: query
                  name: project_id
                  schema:
                    description: Filter to a specific project.
                    type: string
                - allowEmptyValue: true
                  description: Filter by resolution state. True = only resolved, false = only unresolved.
                  in: query
                  name: resolved
                  schema:
                    description: Filter by resolution state. True = only resolved, false = only unresolved.
                    type: boolean
                - allowEmptyValue: true
                  description: Maximum number of buckets to return.
                  in: query
                  name: limit
                  schema:
                    default: 50
                    description: Maximum number of buckets to return.
                    format: int64
                    maximum: 200
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Number of buckets to skip.
                  in: query
                  name: offset
                  schema:
                    default: 0
                    description: Number of buckets to skip.
                    format: int64
                    minimum: 0
                    type: integer
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListChallengeBucketsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: listChallengeBuckets access
            tags:
                - access
            x-speakeasy-name-override: listChallengeBuckets
            x-speakeasy-react-hook:
                name: ChallengeBuckets
    /rpc/access.listChallenges:
        get:
            description: List authz challenge events from ClickHouse, enriched with resolution state from PostgreSQL.
            operationId: listChallenges
            parameters:
                - allowEmptyValue: true
                  description: Filter by outcome.
                  in: query
                  name: outcome
                  schema:
                    description: Filter by outcome.
                    enum:
                        - allow
                        - deny
                    type: string
                - allowEmptyValue: true
                  description: Filter by principal URN.
                  in: query
                  name: principal_urn
                  schema:
                    description: Filter by principal URN.
                    type: string
                - allowEmptyValue: true
                  description: Filter by scope.
                  in: query
                  name: scope
                  schema:
                    description: Filter by scope.
                    type: string
                - allowEmptyValue: true
                  description: Leave out checks of these scopes, from the rows and from the total.
                  in: query
                  name: exclude_scopes
                  schema:
                    description: Leave out checks of these scopes, from the rows and from the total.
                    items:
                        type: string
                    maxItems: 20
                    type: array
                - allowEmptyValue: true
                  description: Filter to a specific project.
                  in: query
                  name: project_id
                  schema:
                    description: Filter to a specific project.
                    type: string
                - allowEmptyValue: true
                  description: Filter by resolution state. True = only resolved, false = only unresolved.
                  in: query
                  name: resolved
                  schema:
                    description: Filter by resolution state. True = only resolved, false = only unresolved.
                    type: boolean
                - allowEmptyValue: true
                  description: Fetch specific challenges by ID. When set, other filters and pagination are ignored.
                  in: query
                  name: ids
                  schema:
                    description: Fetch specific challenges by ID. When set, other filters and pagination are ignored.
                    items:
                        type: string
                    type: array
                - allowEmptyValue: true
                  description: Inclusive start of the window to list challenges from. Omit for the whole history.
                  in: query
                  name: from
                  schema:
                    description: Inclusive start of the window to list challenges from. Omit for the whole history.
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: Exclusive end of the window to list challenges from. Omit for the whole history.
                  in: query
                  name: to
                  schema:
                    description: Exclusive end of the window to list challenges from. Omit for the whole history.
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: Maximum number of results to return.
                  in: query
                  name: limit
                  schema:
                    default: 50
                    description: Maximum number of results to return.
                    format: int64
                    maximum: 200
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Number of results to skip.
                  in: query
                  name: offset
                  schema:
                    default: 0
                    description: Number of results to skip.
                    format: int64
                    minimum: 0
                    type: integer
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListChallengesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: listChallenges access
            tags:
                - access
            x-speakeasy-name-override: listChallenges
            x-speakeasy-react-hook:
                name: Challenges
    /rpc/access.listDirectoryPeople:
        get:
            description: List every live directory profile in the active organization with its name, groups and whether it belongs to a member. Requires an authenticated session authorized for org:admin, because it names people who are not members; API keys cannot enumerate it. Attribute values are not returned.
            operationId: listDirectoryPeople
            parameters:
                - allowEmptyValue: true
                  description: Maximum number of people to return.
                  in: query
                  name: limit
                  schema:
                    default: 500
                    description: Maximum number of people to return.
                    format: int64
                    maximum: 1000
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Cursor for the next page of results.
                  in: query
                  name: cursor
                  schema:
                    description: Cursor for the next page of results.
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListDirectoryPeopleResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listDirectoryPeople access
            tags:
                - access
            x-speakeasy-name-override: listDirectoryPeople
            x-speakeasy-react-hook:
                name: DirectoryPeople
    /rpc/access.listDirectoryReviewItems:
        get:
            description: 'List the directory changes waiting for an admin decision, oldest first: a directory group first seen after review started, with no mapping; a new value of an attribute key that already has mappings; and a mapped group or attribute value that has gone from the directory. Each item carries the same proposal and version as previewDirectoryRoleSetup, for resolveDirectoryReviewItem. Nothing is written.'
            operationId: listDirectoryReviewItems
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListDirectoryReviewItemsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: listDirectoryReviewItems access
            tags:
                - access
            x-speakeasy-name-override: listDirectoryReviewItems
            x-speakeasy-react-hook:
                name: DirectoryReviewItems
    /rpc/access.listDirectoryRoleMappings:
        get:
            description: List the organization's directory groups and attribute values, and the roles mapped to them.
            operationId: listDirectoryRoleMappings
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListDirectoryRoleMappingsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: listDirectoryRoleMappings access
            tags:
                - access
            x-speakeasy-name-override: listDirectoryRoleMappings
            x-speakeasy-react-hook:
                name: DirectoryRoleMappings
    /rpc/access.listEmployeeAIDetections:
        get:
            description: List AI tools detected for one enrolled employee in the active organization. The employee email is required so project viewers cannot broaden the request into an organization-wide inventory. Linked alias emails are folded to the canonical identity. Requires project:read on the active project; the access decision on each row carries its state but not who recorded it, when, or why.
            operationId: listEmployeeAIDetections
            parameters:
                - allowEmptyValue: true
                  description: Canonical enrolled-employee email to list detections for.
                  in: query
                  name: user_email
                  required: true
                  schema:
                    description: Canonical enrolled-employee email to list detections for.
                    format: email
                    maxLength: 320
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListAIDetectionsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listEmployeeAIDetections access
            tags:
                - access
            x-speakeasy-name-override: listEmployeeAIDetections
            x-speakeasy-react-hook:
                name: EmployeeAIDetections
    /rpc/access.listGrants:
        get:
            description: List the current user's effective grants, including inherited role grants.
            operationId: listGrants
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListUserGrantsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: listGrants access
            tags:
                - access
            x-speakeasy-name-override: listGrants
            x-speakeasy-react-hook:
                name: Grants
    /rpc/access.listIdentityAccess:
        get:
            description: 'List the MCP servers and skills an identity is authorized to reach, through grants on the user or on any role they hold, less any blocking grant that withdraws the same scope. Authorization only: plugin membership decides what a resource is distributed through, not who may use it, so it does not widen this list.'
            operationId: listIdentityAccess
            parameters:
                - allowEmptyValue: true
                  description: The Speakeasy user ID to look up accessible resources for.
                  in: query
                  name: user_id
                  required: true
                  schema:
                    description: The Speakeasy user ID to look up accessible resources for.
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListIdentityAccessResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listIdentityAccess access
            tags:
                - access
            x-speakeasy-name-override: listIdentityAccess
            x-speakeasy-react-hook:
                name: IdentityAccess
    /rpc/access.listMembers:
        get:
            description: List all team members with their role assignments.
            operationId: listMembers
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListMembersResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: listMembers access
            tags:
                - access
            x-speakeasy-name-override: listMembers
            x-speakeasy-react-hook:
                name: Members
    /rpc/access.listResourceAudience:
        get:
            description: 'List who can reach one resource: the principals granted or blocked on it, and the organization-wide rules they inherit.'
            operationId: listResourceAudience
            parameters:
                - allowEmptyValue: true
                  description: The kind of resource to describe.
                  in: query
                  name: resource_kind
                  required: true
                  schema:
                    description: The kind of resource to describe.
                    enum:
                        - mcp
                    type: string
                - allowEmptyValue: true
                  description: The resource to describe.
                  in: query
                  name: resource_id
                  required: true
                  schema:
                    description: The resource to describe.
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ResourceAudienceResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: listResourceAudience access
            tags:
                - access
            x-speakeasy-name-override: listResourceAudience
            x-speakeasy-react-hook:
                name: ResourceAudience
    /rpc/access.listRoles:
        get:
            description: List all roles for the current organization.
            operationId: listRoles
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListRolesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: listRoles access
            tags:
                - access
            x-speakeasy-name-override: listRoles
            x-speakeasy-react-hook:
                name: Roles
    /rpc/access.listScopes:
        get:
            description: List all available scopes and their resource types.
            operationId: listScopes
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListScopesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: listScopes access
            tags:
                - access
            x-speakeasy-name-override: listScopes
            x-speakeasy-react-hook:
                name: ListScopes
    /rpc/access.listShadowMCPInventory:
        get:
            description: List project-scoped Shadow MCP server inventory composed from observed URLs, telemetry usage, and policy-bypass state. Requires an authenticated session authorized for org:admin on the active organization.
            operationId: listShadowMCPInventory
            parameters:
                - allowEmptyValue: true
                  in: query
                  name: project_id
                  required: true
                  schema:
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  in: query
                  name: limit
                  schema:
                    default: 50
                    format: int64
                    maximum: 200
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Cursor for the next page of results.
                  in: query
                  name: cursor
                  schema:
                    description: Cursor for the next page of results.
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListShadowMCPInventoryResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listShadowMCPInventory access
            tags:
                - access
            x-speakeasy-name-override: listShadowMCPInventory
            x-speakeasy-react-hook:
                name: ShadowMCPInventory
    /rpc/access.listShadowMCPInventoryServersForUser:
        get:
            description: List the Shadow MCP servers one person reached, with each server's access state. The inverse of listShadowMCPInventoryUsers, which expands a single server into its users.
            operationId: listShadowMCPInventoryServersForUser
            parameters:
                - allowEmptyValue: true
                  in: query
                  name: project_id
                  required: true
                  schema:
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: The identifiers to attribute usage to, matched against the reported email or user id. Pass every identifier the subject is known by.
                  in: query
                  name: user_keys
                  required: true
                  schema:
                    description: The identifiers to attribute usage to, matched against the reported email or user id. Pass every identifier the subject is known by.
                    items:
                        type: string
                    maxItems: 200
                    minItems: 1
                    type: array
                - allowEmptyValue: true
                  description: Inclusive start of the window to attribute calls from. Omit for the whole history.
                  in: query
                  name: from
                  schema:
                    description: Inclusive start of the window to attribute calls from. Omit for the whole history.
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: Exclusive end of the window to attribute calls from. Omit for the whole history.
                  in: query
                  name: to
                  schema:
                    description: Exclusive end of the window to attribute calls from. Omit for the whole history.
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  in: query
                  name: limit
                  schema:
                    default: 50
                    format: int64
                    maximum: 200
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListShadowMCPInventoryResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listShadowMCPInventoryServersForUser access
            tags:
                - access
            x-speakeasy-name-override: listShadowMCPInventoryServersForUser
            x-speakeasy-react-hook:
                name: ShadowMCPInventoryServersForUser
    /rpc/access.listShadowMCPInventoryUsers:
        get:
            description: List users with observed telemetry usage for one project-scoped Shadow MCP server URL.
            operationId: listShadowMCPInventoryUsers
            parameters:
                - allowEmptyValue: true
                  in: query
                  name: project_id
                  required: true
                  schema:
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Shadow MCP server URL to expand.
                  in: query
                  name: server_url
                  required: true
                  schema:
                    description: Shadow MCP server URL to expand.
                    format: uri
                    type: string
                - allowEmptyValue: true
                  in: query
                  name: limit
                  schema:
                    default: 50
                    format: int64
                    maximum: 200
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Cursor for the next page of results.
                  in: query
                  name: cursor
                  schema:
                    description: Cursor for the next page of results.
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListShadowMCPInventoryUsersResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listShadowMCPInventoryUsers access
            tags:
                - access
            x-speakeasy-name-override: listShadowMCPInventoryUsers
            x-speakeasy-react-hook:
                name: ShadowMCPInventoryUsers
    /rpc/access.listTemporaryGrants:
        get:
            description: List the temporary grants given to one principal, with their boundary, deadline and remaining time, soonest deadline first. Organization administrators may list any principal's grants; anyone else may list only grants given to themselves (their own user:<id>). Each active grant says which other grants would still give the principal the same access once it ends. Revoked grants are removed and appear only in the audit log.
            operationId: listTemporaryGrants
            parameters:
                - allowEmptyValue: true
                  description: The principal whose grants to list, e.g. user:<id>, role:organization:<id> or agent:<id>. Members who are not organization administrators may only pass their own user URN.
                  in: query
                  name: principal_urn
                  required: true
                  schema:
                    description: The principal whose grants to list, e.g. user:<id>, role:organization:<id> or agent:<id>. Members who are not organization administrators may only pass their own user URN.
                    type: string
                - allowEmptyValue: true
                  description: Include grants whose deadline has passed.
                  in: query
                  name: include_expired
                  schema:
                    default: false
                    description: Include grants whose deadline has passed.
                    type: boolean
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListTemporaryGrantsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listTemporaryGrants access
            tags:
                - access
            x-speakeasy-name-override: listTemporaryGrants
            x-speakeasy-react-hook:
                name: TemporaryGrants
    /rpc/access.previewDirectoryRoleSetup:
        get:
            description: 'Propose roles for every live directory group and mappable attribute value, for bulk setup. An unmapped source is proposed one role: the live role whose slug matches the source name, or a new role named after the source. A mapped source is listed with its current roles. Nothing is written. Each item carries a version that applyDirectoryRoleSetup checks to detect changes since the preview; the version authorizes nothing.'
            operationId: previewDirectoryRoleSetup
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DirectoryRoleSetupPreviewResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: previewDirectoryRoleSetup access
            tags:
                - access
            x-speakeasy-name-override: previewDirectoryRoleSetup
            x-speakeasy-react-hook:
                name: DirectoryRoleSetupPreview
    /rpc/access.renewTemporaryGrant:
        post:
            description: 'Move an active temporary grant''s deadline, earlier or later. The boundary cannot change: to widen access, give a new grant. An expired grant cannot be renewed; give it again instead. Requires org:admin.'
            operationId: renewTemporaryGrant
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RenewTemporaryGrantForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/TemporaryGrant'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: renewTemporaryGrant access
            tags:
                - access
            x-speakeasy-name-override: renewTemporaryGrant
            x-speakeasy-react-hook:
                name: RenewTemporaryGrant
                type: mutation
    /rpc/access.requestAccess:
        post:
            description: Request access to a scope by sending an email notification to organization administrators.
            operationId: requestAccess
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RequestAccessForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RequestAccessResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: requestAccess access
            tags:
                - access
            x-speakeasy-name-override: requestAccess
            x-speakeasy-react-hook:
                name: RequestAccess
                type: mutation
    /rpc/access.resolveChallenge:
        post:
            description: Dismiss one or more denied authz challenges, or atomically add one custom role to the denied user before recording the challenges as resolved.
            operationId: resolveChallenge
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ResolveChallengeForm'
                required: true
            responses:
                "201":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ResolveChallengesResult'
                    description: Created response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: resolveChallenge access
            tags:
                - access
            x-speakeasy-name-override: resolveChallenge
            x-speakeasy-react-hook:
                name: ResolveChallenge
    /rpc/access.resolveDirectoryReviewItem:
        post:
            description: Decide one pending directory review item. approve on a new group or attribute value maps it to the given role set, creating new roles as applyDirectoryRoleSetup does; approve on a missing source removes its mappings. dismiss leaves a new source unmapped, or keeps a missing source's mappings. opt_out_key dismisses a new attribute value and stops raising new values of its key. approve checks version as applyDirectoryRoleSetup does and returns conflict if the source changed. An item that is no longer pending returns conflict.
            operationId: resolveDirectoryReviewItem
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ResolveDirectoryReviewItemForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ResolveDirectoryReviewItemResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: resolveDirectoryReviewItem access
            tags:
                - access
            x-speakeasy-name-override: resolveDirectoryReviewItem
            x-speakeasy-react-hook:
                name: ResolveDirectoryReviewItem
                type: mutation
    /rpc/access.resolveShadowMCPInventoryRequest:
        post:
            description: Review the latest pending Shadow MCP URL request and resolve all pending requests for that URL.
            operationId: resolveShadowMCPInventoryRequest
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ResolveShadowMCPInventoryRequestForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ShadowMCPInventoryURLState'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: resolveShadowMCPInventoryRequest access
            tags:
                - access
            x-speakeasy-name-override: resolveShadowMCPInventoryRequest
            x-speakeasy-react-hook:
                name: ResolveShadowMCPInventoryRequest
                type: mutation
    /rpc/access.revokeTemporaryGrant:
        post:
            description: 'End an active temporary grant before its deadline. Only this grant ends: a permanent grant is never removed this way, and the principal''s roles and other grants giving the same access are left alone. Requires org:admin, except that a member may end a grant given directly to themselves.'
            operationId: revokeTemporaryGrant
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RiskIDRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/TemporaryGrant'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: revokeTemporaryGrant access
            tags:
                - access
            x-speakeasy-name-override: revokeTemporaryGrant
            x-speakeasy-react-hook:
                name: RevokeTemporaryGrant
                type: mutation
    /rpc/access.setAIToolDecision:
        post:
            description: 'Record whether a detected AI tool may reach this organization''s MCP gateway. The decision is organization-level and applies to every server: a blocked tool is refused when it authenticates, so its users see an error their client cannot recover from. Enforcement needs a credential Speakeasy can verify, so a tool that carries no verifiable gateway matcher — one linked only by a self-reported client name, or by nothing at all — cannot be decided on: the request is rejected with bad_request, nothing is recorded, and no summary is returned. An id the organization''s scan target catalog does not know is rejected with not_found. Requires an authenticated session authorized for org:admin on the active organization.'
            operationId: setAIToolDecision
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetAIToolDecisionRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SetAIToolDecisionResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: setAIToolDecision access
            tags:
                - access
            x-speakeasy-name-override: setAIToolDecision
            x-speakeasy-react-hook:
                name: SetAIToolDecision
                type: mutation
    /rpc/access.setDirectoryRoleMapping:
        post:
            deprecated: true
            description: Deprecated compatibility endpoint for older dashboard clients. Use setDirectoryRoleMappings. Rejects replacement when the source already grants multiple roles.
            operationId: setDirectoryRoleMapping
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetDirectoryRoleMappingForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DirectoryRoleMapping'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: setDirectoryRoleMapping access
            tags:
                - access
            x-speakeasy-name-override: setDirectoryRoleMapping
            x-speakeasy-react-hook:
                name: SetDirectoryRoleMapping
                type: mutation
    /rpc/access.setDirectoryRoleMappings:
        post:
            description: Replace the full set of roles granted by a directory group or attribute value. An empty role list removes all mappings for the source.
            operationId: setDirectoryRoleMappings
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetDirectoryRoleMappingsForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                items:
                                    $ref: '#/components/schemas/DirectoryRoleMapping'
                                type: array
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: setDirectoryRoleMappings access
            tags:
                - access
            x-speakeasy-name-override: setDirectoryRoleMappings
            x-speakeasy-react-hook:
                name: SetDirectoryRoleMappings
                type: mutation
    /rpc/access.setResourceAudience:
        post:
            description: Replace the rules that name one resource. Organization-wide rules are left untouched.
            operationId: setResourceAudience
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetResourceAudienceForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ResourceAudienceResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: setResourceAudience access
            tags:
                - access
            x-speakeasy-name-override: setResourceAudience
            x-speakeasy-react-hook:
                name: SetResourceAudience
                type: mutation
    /rpc/access.syncDirectoryGroups:
        post:
            description: Fetch the organization's directory groups from WorkOS and save any that are new or changed.
            operationId: syncDirectoryGroups
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SyncDirectoryGroupsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: syncDirectoryGroups access
            tags:
                - access
            x-speakeasy-name-override: syncDirectoryGroups
            x-speakeasy-react-hook:
                name: SyncDirectoryGroups
                type: mutation
    /rpc/access.updateDirectoryReviewSettings:
        post:
            description: Turn the organization's directory review emails on or off. Pending items stay listed in the dashboard either way, and webhooks are unaffected.
            operationId: updateDirectoryReviewSettings
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DirectoryReviewSettings'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DirectoryReviewSettings'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: updateDirectoryReviewSettings access
            tags:
                - access
            x-speakeasy-name-override: updateDirectoryReviewSettings
            x-speakeasy-react-hook:
                name: UpdateDirectoryReviewSettings
                type: mutation
    /rpc/access.updateMemberRoles:
        put:
            description: Update a team member's role assignments.
            operationId: updateMemberRoles
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateMemberRolesForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AccessMember'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: updateMemberRoles access
            tags:
                - access
            x-speakeasy-name-override: updateMemberRoles
            x-speakeasy-react-hook:
                name: UpdateMemberRoles
    /rpc/access.updateRole:
        put:
            description: Update an existing custom role.
            operationId: updateRole
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateRoleForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Role'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: updateRole access
            tags:
                - access
            x-speakeasy-name-override: updateRole
            x-speakeasy-react-hook:
                name: UpdateRole
    /rpc/access.updateShadowMCPInventoryServerName:
        post:
            description: Update or clear the administrator-defined display name for one project-scoped Shadow MCP inventory server URL.
            operationId: updateShadowMCPInventoryServerName
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateShadowMCPInventoryServerNameForm'
                required: true
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: updateShadowMCPInventoryServerName access
            tags:
                - access
            x-speakeasy-name-override: updateShadowMCPInventoryServerName
            x-speakeasy-react-hook:
                name: UpdateShadowMCPInventoryServerName
                type: mutation
    /rpc/adminAssets.uploadImage:
        post:
            description: Upload a platform-tier image (e.g. a global remote identity provider logo). Requires platform admin.
            operationId: uploadPlatformImage
            parameters:
                - allowEmptyValue: true
                  in: header
                  name: Content-Type
                  required: true
                  schema:
                    type: string
                - allowEmptyValue: true
                  in: header
                  name: Content-Length
                  required: true
                  schema:
                    format: int64
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UploadImageResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: uploadPlatformImage adminAssets
            tags:
                - adminAssets
            x-speakeasy-name-override: uploadImage
            x-speakeasy-react-hook:
                name: UploadPlatformImage
    /rpc/adminChatAnalysis.getSettings:
        get:
            description: Get the named organization's chat analysis settings. Requires platform admin.
            operationId: getChatAnalysisSettings
            parameters:
                - allowEmptyValue: true
                  description: Organization whose settings to read.
                  in: query
                  name: organization_id
                  required: true
                  schema:
                    description: Organization whose settings to read.
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ChatAnalysisSettings'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getSettings adminChatAnalysis
            tags:
                - adminChatAnalysis
            x-speakeasy-name-override: getSettings
            x-speakeasy-react-hook:
                name: ChatAnalysisSettings
    /rpc/adminChatAnalysis.triggerAnalysis:
        post:
            description: Wake the chat analysis coordinator for every project in the named organization, instead of waiting for the periodic sweep. Requires platform admin.
            operationId: triggerChatAnalysis
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/TriggerAnalysisRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminChatAnalysisTriggerResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: triggerAnalysis adminChatAnalysis
            tags:
                - adminChatAnalysis
            x-speakeasy-name-override: triggerAnalysis
            x-speakeasy-react-hook:
                name: TriggerChatAnalysis
    /rpc/adminChatAnalysis.upsertBusinessMemorySettings:
        post:
            description: Create or replace the named organization's business-memory extraction settings. Requires platform admin.
            operationId: upsertBusinessMemoryAnalysisSettings
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpsertBusinessMemorySettingsRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ChatAnalysisSettings'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: upsertBusinessMemorySettings adminChatAnalysis
            tags:
                - adminChatAnalysis
            x-speakeasy-name-override: upsertBusinessMemorySettings
            x-speakeasy-react-hook:
                name: UpsertBusinessMemoryAnalysisSettings
    /rpc/adminChatAnalysis.upsertWorkUnitsSettings:
        post:
            description: Create or replace the named organization's chat analysis settings. Requires platform admin.
            operationId: upsertChatAnalysisSettings
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpsertWorkUnitsSettingsRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ChatAnalysisSettings'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: upsertWorkUnitsSettings adminChatAnalysis
            tags:
                - adminChatAnalysis
            x-speakeasy-name-override: upsertWorkUnitsSettings
            x-speakeasy-react-hook:
                name: UpsertChatAnalysisSettings
    /rpc/adminExternalCredentials.createGcpIam:
        post:
            description: Create a platform GCP IAM external credential (organization_id NULL, project_id NULL). Requires platform admin.
            operationId: createGcpIamPlatformCredential
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreatePlatformGcpIamCredentialForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GcpIamCredential'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: createGcpIamPlatformCredential adminExternalCredentials
            tags:
                - adminExternalCredentials
            x-speakeasy-name-override: createGcpIam
            x-speakeasy-react-hook:
                name: CreateGcpIamPlatformCredential
    /rpc/adminExternalCredentials.deleteGcpIam:
        delete:
            description: Soft-delete a platform GCP IAM external credential by ID. Requires platform admin.
            operationId: deleteGcpIamPlatformCredential
            parameters:
                - allowEmptyValue: true
                  description: The ID of the credential to delete.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the credential to delete.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: deleteGcpIamPlatformCredential adminExternalCredentials
            tags:
                - adminExternalCredentials
            x-speakeasy-name-override: deleteGcpIam
            x-speakeasy-react-hook:
                name: DeleteGcpIamPlatformCredential
    /rpc/adminExternalCredentials.getGcpIam:
        get:
            description: Get a platform GCP IAM external credential by ID. Requires platform admin.
            operationId: getGcpIamPlatformCredential
            parameters:
                - allowEmptyValue: true
                  description: The ID of the credential to get.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the credential to get.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GcpIamCredential'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getGcpIamPlatformCredential adminExternalCredentials
            tags:
                - adminExternalCredentials
            x-speakeasy-name-override: getGcpIam
            x-speakeasy-react-hook:
                name: GetGcpIamPlatformCredential
    /rpc/adminExternalCredentials.list:
        get:
            description: List the platform external credentials (provider-independent summary). Optionally filter by provider. Requires platform admin.
            operationId: listPlatformExternalCredentials
            parameters:
                - allowEmptyValue: true
                  description: Only return credentials for this provider.
                  in: query
                  name: provider
                  schema:
                    description: Only return credentials for this provider.
                    enum:
                        - aws_iam
                        - gcp_iam
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListExternalCredentialsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listPlatformExternalCredentials adminExternalCredentials
            tags:
                - adminExternalCredentials
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: ListPlatformExternalCredentials
    /rpc/adminExternalCredentials.updateGcpIam:
        post:
            description: Replace a platform GCP IAM external credential's configuration. Requires platform admin.
            operationId: updateGcpIamPlatformCredential
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateGcpIamPlatformCredentialRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GcpIamCredential'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: updateGcpIamPlatformCredential adminExternalCredentials
            tags:
                - adminExternalCredentials
            x-speakeasy-name-override: updateGcpIam
            x-speakeasy-react-hook:
                name: UpdateGcpIamPlatformCredential
    /rpc/adminExternalCredentials.verifyGcpIam:
        post:
            description: 'Run a live ''who am I'' probe against a platform GCP IAM credential''s resolved identity and report the effective principal. Ephemeral: nothing is persisted. Requires platform admin.'
            operationId: verifyGcpIamPlatformCredential
            parameters:
                - allowEmptyValue: true
                  description: The ID of the credential to verify.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the credential to verify.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/VerifyPlatformCredentialResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: verifyGcpIamPlatformCredential adminExternalCredentials
            tags:
                - adminExternalCredentials
            x-speakeasy-name-override: verifyGcpIam
            x-speakeasy-react-hook:
                name: VerifyGcpIamPlatformCredential
    /rpc/adminOpenRouterKeys.disableKey:
        post:
            description: Lock down an organization's platform OpenRouter key, upstream and locally. Requires platform admin.
            operationId: disableAdminOpenRouterKey
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DisableOpenRouterKeyRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminOpenRouterKey'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: disableKey adminOpenRouterKeys
            tags:
                - adminOpenRouterKeys
            x-speakeasy-name-override: disableKey
            x-speakeasy-react-hook:
                name: DisableAdminOpenRouterKey
    /rpc/adminOpenRouterKeys.enableKey:
        post:
            description: Reinstate a disabled platform OpenRouter key, upstream and locally, keeping its recorded credit ceiling. Requires platform admin.
            operationId: enableAdminOpenRouterKey
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/EnableOpenRouterKeyRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AdminOpenRouterKey'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: enableKey adminOpenRouterKeys
            tags:
                - adminOpenRouterKeys
            x-speakeasy-name-override: enableKey
            x-speakeasy-react-hook:
                name: EnableAdminOpenRouterKey
    /rpc/adminOpenRouterKeys.getKeyUsage:
        get:
            description: Fetch an organization's live credit usage from OpenRouter for one key. Requires platform admin.
            operationId: getAdminOpenRouterKeyUsage
            parameters:
                - allowEmptyValue: true
                  description: Organization that owns the key.
                  in: query
                  name: organization_id
                  required: true
                  schema:
                    description: Organization that owns the key.
                    type: string
                - allowEmptyValue: true
                  description: Key type to inspect.
                  in: query
                  name: key_type
                  required: true
                  schema:
                    description: Key type to inspect.
                    enum:
                        - chat
                        - internal
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetKeyUsageResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getKeyUsage adminOpenRouterKeys
            tags:
                - adminOpenRouterKeys
            x-speakeasy-name-override: getKeyUsage
            x-speakeasy-react-hook:
                name: AdminOpenRouterKeyUsage
    /rpc/adminOpenRouterKeys.listKeys:
        get:
            description: List every organization's platform OpenRouter keys. Requires platform admin.
            operationId: listAdminOpenRouterKeys
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListKeysResponseBody2'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listKeys adminOpenRouterKeys
            tags:
                - adminOpenRouterKeys
            x-speakeasy-name-override: listKeys
            x-speakeasy-react-hook:
                name: AdminOpenRouterKeys
    /rpc/adminRemoteSessions.createGlobalClient:
        post:
            description: Register a global remote_session_client under an existing global remote_session_issuer. Caller supplies client_id and optional client_secret obtained out-of-band from the upstream issuer. Requires platform admin.
            operationId: createGlobalRemoteSessionClient
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateGlobalRemoteSessionClientForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionClient'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: createGlobalClient adminRemoteSessions
            tags:
                - adminRemoteSessions
            x-speakeasy-name-override: createGlobalClient
            x-speakeasy-react-hook:
                name: CreateGlobalRemoteSessionClient
    /rpc/adminRemoteSessions.createGlobalIssuer:
        post:
            description: Create a global remote_session_issuer (project_id NULL, organization_id NULL). Requires platform admin.
            operationId: createGlobalRemoteSessionIssuer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateRemoteSessionIssuerForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionIssuer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: createGlobalIssuer adminRemoteSessions
            tags:
                - adminRemoteSessions
            x-speakeasy-name-override: createGlobalIssuer
            x-speakeasy-react-hook:
                name: CreateGlobalRemoteSessionIssuer
    /rpc/adminRemoteSessions.deleteGlobalClient:
        delete:
            description: Soft-delete a global remote_session_client. Cascades to the remote_sessions minted against it. Requires platform admin.
            operationId: deleteGlobalRemoteSessionClient
            parameters:
                - allowEmptyValue: true
                  description: The remote_session_client id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The remote_session_client id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: deleteGlobalClient adminRemoteSessions
            tags:
                - adminRemoteSessions
            x-speakeasy-name-override: deleteGlobalClient
            x-speakeasy-react-hook:
                name: DeleteGlobalRemoteSessionClient
    /rpc/adminRemoteSessions.deleteGlobalIssuer:
        delete:
            description: Soft-delete a global remote_session_issuer. Blocked when any global remote_session_clients still reference it. Requires platform admin.
            operationId: deleteGlobalRemoteSessionIssuer
            parameters:
                - allowEmptyValue: true
                  description: The remote_session_issuer id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The remote_session_issuer id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: deleteGlobalIssuer adminRemoteSessions
            tags:
                - adminRemoteSessions
            x-speakeasy-name-override: deleteGlobalIssuer
            x-speakeasy-react-hook:
                name: DeleteGlobalRemoteSessionIssuer
    /rpc/adminRemoteSessions.fetchGlobalIssuerMetadata:
        post:
            description: Hit an upstream issuer's RFC 8414 .well-known/oauth-authorization-server document and return a draft suitable for createGlobalIssuer. Keyed by issuer URL; no record need exist and nothing is persisted. Requires platform admin.
            operationId: fetchGlobalRemoteSessionIssuerMetadata
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/FetchIssuerMetadataRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionIssuerDraft'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: fetchGlobalIssuerMetadata adminRemoteSessions
            tags:
                - adminRemoteSessions
            x-speakeasy-name-override: fetchGlobalIssuerMetadata
            x-speakeasy-react-hook:
                name: FetchGlobalRemoteSessionIssuerMetadata
    /rpc/adminRemoteSessions.getGlobalClient:
        get:
            description: Get a global remote_session_client by id. Requires platform admin.
            operationId: getGlobalRemoteSessionClient
            parameters:
                - allowEmptyValue: true
                  description: The remote_session_client id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The remote_session_client id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionClient'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getGlobalClient adminRemoteSessions
            tags:
                - adminRemoteSessions
            x-speakeasy-name-override: getGlobalClient
            x-speakeasy-react-hook:
                name: GlobalRemoteSessionClient
    /rpc/adminRemoteSessions.getGlobalIssuer:
        get:
            description: Get a global remote_session_issuer by id. Requires platform admin.
            operationId: getGlobalRemoteSessionIssuer
            parameters:
                - allowEmptyValue: true
                  description: The remote_session_issuer id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The remote_session_issuer id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GlobalRemoteSessionIssuer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getGlobalIssuer adminRemoteSessions
            tags:
                - adminRemoteSessions
            x-speakeasy-name-override: getGlobalIssuer
            x-speakeasy-react-hook:
                name: GlobalRemoteSessionIssuer
    /rpc/adminRemoteSessions.getGlobalIssuerDuplicatePreflight:
        get:
            description: |-
                Report the global remote_session_issuers that already describe an upstream issuer URL, so the catalog create and edit forms can warn before curating a second entry for the same authorization server. Requires platform admin.

                Scoped to the global partition only. Tenant issuers naming the same URL are deliberately not reported here — listGlobalIssuerConvergenceCandidates is the surface for those, and it is keyed on a global issuer that already exists.

                The global tier is unique on slug but not on issuer, so nothing prevents a duplicate catalog entry and this warning is the only thing that will catch one. Advisory all the same: it never blocks the write. Matching uses the same canonicalization as the tenant-facing preflights, and an unparseable URL returns no matches rather than an error.
            operationId: getGlobalRemoteSessionIssuerDuplicatePreflight
            parameters:
                - allowEmptyValue: true
                  description: The upstream issuer URL being entered (e.g. https://login.linear.app). Empty or unparseable returns no matches.
                  in: query
                  name: issuer
                  schema:
                    description: The upstream issuer URL being entered (e.g. https://login.linear.app). Empty or unparseable returns no matches.
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionIssuerDuplicatePreflight'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getGlobalIssuerDuplicatePreflight adminRemoteSessions
            tags:
                - adminRemoteSessions
            x-speakeasy-name-override: getGlobalIssuerDuplicatePreflight
            x-speakeasy-react-hook:
                name: GlobalRemoteSessionIssuerDuplicatePreflight
    /rpc/adminRemoteSessions.getGlobalIssuerMigratePreflight:
        get:
            description: 'Authoritative impact summary for consolidating a tenant remote_session_issuer onto a global one: the clients that would move, the affected MCP servers, and every blocker (endpoint mismatches, conflicting MCP-server bindings). Also reports how many tenant-owned clients the target already carries, since those permanently block deleting it. Requires platform admin.'
            operationId: getGlobalRemoteSessionIssuerMigratePreflight
            parameters:
                - allowEmptyValue: true
                  description: The organization- or project-level remote_session_issuer to migrate away from.
                  in: query
                  name: source_id
                  required: true
                  schema:
                    description: The organization- or project-level remote_session_issuer to migrate away from.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: The global remote_session_issuer to migrate onto.
                  in: query
                  name: target_id
                  required: true
                  schema:
                    description: The global remote_session_issuer to migrate onto.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/IssuerMigratePreflight'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getGlobalIssuerMigratePreflight adminRemoteSessions
            tags:
                - adminRemoteSessions
            x-speakeasy-name-override: getGlobalIssuerMigratePreflight
            x-speakeasy-react-hook:
                name: GlobalRemoteSessionIssuerMigratePreflight
    /rpc/adminRemoteSessions.listGlobalClients:
        get:
            description: List the global remote_session_clients registered with a global remote_session_issuer. Requires platform admin.
            operationId: listGlobalRemoteSessionClients
            parameters:
                - allowEmptyValue: true
                  description: The global remote_session_issuer id to list clients for.
                  in: query
                  name: remote_session_issuer_id
                  required: true
                  schema:
                    description: The global remote_session_issuer id to list clients for.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Pagination cursor.
                  in: query
                  name: cursor
                  schema:
                    description: Pagination cursor.
                    type: string
                - allowEmptyValue: true
                  description: Page size (default 50, max 100).
                  in: query
                  name: limit
                  schema:
                    description: Page size (default 50, max 100).
                    format: int64
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListRemoteSessionClientsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listGlobalClients adminRemoteSessions
            tags:
                - adminRemoteSessions
            x-speakeasy-name-override: listGlobalClients
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: GlobalRemoteSessionClients
    /rpc/adminRemoteSessions.listGlobalIssuerConvergenceCandidates:
        get:
            description: List the organization- and project-level remote_session_issuers that describe the same upstream authorization server as a given global issuer, and so could be consolidated onto it. Matching is by canonical issuer URL, collapsing trailing-slash and default-port spellings. Each candidate carries its owning organization, the number of clients that would move, and the metadata differences that would block or accompany the migration. Requires platform admin.
            operationId: listGlobalRemoteSessionIssuerConvergenceCandidates
            parameters:
                - allowEmptyValue: true
                  description: The global remote_session_issuer that candidates would be consolidated onto.
                  in: query
                  name: target_id
                  required: true
                  schema:
                    description: The global remote_session_issuer that candidates would be consolidated onto.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Pagination cursor.
                  in: query
                  name: cursor
                  schema:
                    description: Pagination cursor.
                    type: string
                - allowEmptyValue: true
                  description: Page size (default 50, max 100).
                  in: query
                  name: limit
                  schema:
                    description: Page size (default 50, max 100).
                    format: int64
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListIssuerConvergenceCandidatesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listGlobalIssuerConvergenceCandidates adminRemoteSessions
            tags:
                - adminRemoteSessions
            x-speakeasy-name-override: listGlobalIssuerConvergenceCandidates
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: GlobalRemoteSessionIssuerConvergenceCandidates
    /rpc/adminRemoteSessions.listGlobalIssuers:
        get:
            description: List global remote_session_issuers. Requires platform admin.
            operationId: listGlobalRemoteSessionIssuers
            parameters:
                - allowEmptyValue: true
                  description: Pagination cursor.
                  in: query
                  name: cursor
                  schema:
                    description: Pagination cursor.
                    type: string
                - allowEmptyValue: true
                  description: Page size (default 50, max 100).
                  in: query
                  name: limit
                  schema:
                    description: Page size (default 50, max 100).
                    format: int64
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListGlobalRemoteSessionIssuersResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listGlobalIssuers adminRemoteSessions
            tags:
                - adminRemoteSessions
            x-speakeasy-name-override: listGlobalIssuers
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: GlobalRemoteSessionIssuers
    /rpc/adminRemoteSessions.migrateToGlobalIssuer:
        post:
            description: 'Consolidate an organization- or project-level remote_session_issuer onto a global one: re-point every client from the source issuer onto the target, then soft-delete the source. Existing remote sessions are preserved, so no user re-authenticates. The source may belong to any organization; the target must be a global issuer. Both must agree on issuer (compared canonically), token_endpoint, and authorization_endpoint. One source per call. Requires platform admin.'
            operationId: migrateToGlobalRemoteSessionIssuer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/MigrateRemoteSessionIssuerRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/MigrateRemoteSessionIssuerResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: migrateToGlobalIssuer adminRemoteSessions
            tags:
                - adminRemoteSessions
            x-speakeasy-name-override: migrateToGlobalIssuer
            x-speakeasy-react-hook:
                name: MigrateToGlobalRemoteSessionIssuer
    /rpc/adminRemoteSessions.refreshGlobalIssuerMetadata:
        post:
            description: Re-fetch an existing global remote_session_issuer's RFC 8414 metadata document and persist the discovered values. Keyed by issuer id. Only RFC 8414-derived columns are written — endpoints, the *_supported arrays, client_id_metadata_document_supported, and the documentation URLs. Speakeasy behavior and display fields (oidc, passthrough, name, slug, logo, client setup documentation) are left alone. Requires platform admin.
            operationId: refreshGlobalRemoteSessionIssuerMetadata
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RiskIDRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionIssuerRefresh'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: refreshGlobalIssuerMetadata adminRemoteSessions
            tags:
                - adminRemoteSessions
            x-speakeasy-name-override: refreshGlobalIssuerMetadata
            x-speakeasy-react-hook:
                name: RefreshGlobalRemoteSessionIssuerMetadata
    /rpc/adminRemoteSessions.updateGlobalClient:
        post:
            description: Rotate the client_secret or change non-issuer settings on a global remote_session_client. Requires platform admin.
            operationId: updateGlobalRemoteSessionClient
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateGlobalRemoteSessionClientForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionClient'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: updateGlobalClient adminRemoteSessions
            tags:
                - adminRemoteSessions
            x-speakeasy-name-override: updateGlobalClient
            x-speakeasy-react-hook:
                name: UpdateGlobalRemoteSessionClient
    /rpc/adminRemoteSessions.updateGlobalIssuer:
        post:
            description: Update a global remote_session_issuer. Requires platform admin.
            operationId: updateGlobalRemoteSessionIssuer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateRemoteSessionIssuerForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionIssuer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: updateGlobalIssuer adminRemoteSessions
            tags:
                - adminRemoteSessions
            x-speakeasy-name-override: updateGlobalIssuer
            x-speakeasy-react-hook:
                name: UpdateGlobalRemoteSessionIssuer
    /rpc/agent.createSessionHandoff:
        post:
            description: 'Mint a short-lived capability URL for a rendered session-handoff document (session portability). The device agent uploads the handoff it rendered from the local transcript; the returned URL serves the markdown exactly once (burn-after-read) until expiry, so a cloud agent or another machine can continue the session. Content transits the server only for this purpose and stops being served at first read or expiry, whichever comes first. Requires a per-user key: the fleet-shared org install key is refused because minting a fetch-by-token URL for uploaded content is a per-user, content-bearing surface (the same DNO-383 blast-radius rule as getSessionMeta).'
            operationId: createAgentSessionHandoff
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Hardware serial number of the machine minting the link, when the agent can read it.
                  in: header
                  name: Gram-Device-Serial
                  schema:
                    description: Hardware serial number of the machine minting the link, when the agent can read it.
                    type: string
                - allowEmptyValue: true
                  description: Hostname of the machine minting the link, when the agent can read it.
                  in: header
                  name: Gram-Device-Hostname
                  schema:
                    description: Hostname of the machine minting the link, when the agent can read it.
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateSessionHandoffRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CreateSessionHandoffResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
            summary: createSessionHandoff agent
            tags:
                - agent
            x-speakeasy-name-override: createSessionHandoff
            x-speakeasy-react-hook:
                name: CreateAgentSessionHandoff
    /rpc/agent.deleteAiScanTarget:
        post:
            description: Remove a target the organization added, or clear the row a built-in carries so it returns to having no recorded decision. A built-in itself cannot be removed here; it leaves the list only by leaving Speakeasy's catalog. Requires a session with the org:admin scope.
            operationId: deleteAiScanTarget
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DeleteAiScanTargetRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DeleteAiScanTargetResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: deleteAiScanTarget agent
            tags:
                - agent
            x-speakeasy-name-override: deleteAiScanTarget
            x-speakeasy-react-hook:
                name: DeleteAiScanTarget
    /rpc/agent.getClaudeObservabilityPlugin:
        get:
            description: 'Download the organization''s Claude observability plugin as a ZIP for the enrolled user to upload to claude.ai (Customize > Plugins), so sessions in Claude''s cloud environment are recorded. The plugin carries a hooks-only key attributed to the enrolled user; each download replaces that user''s previous key. Requires a per-user key, whose owner is the enrolled user. The org install key is refused: it is shared by every device in the organization, so it cannot prove which member is asking, and accepting it would let any holder mint a key attributed to any member and revoke theirs.'
            operationId: getAgentClaudeObservabilityPlugin
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            responses:
                "200":
                    content:
                        application/zip:
                            schema:
                                format: binary
                                type: string
                    description: OK response.
                    headers:
                        Content-Disposition:
                            schema:
                                type: string
                        Content-Type:
                            schema:
                                type: string
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
            summary: getClaudeObservabilityPlugin agent
            tags:
                - agent
            x-speakeasy-name-override: getClaudeObservabilityPlugin
    /rpc/agent.getConfiguration:
        get:
            description: Get the organization-wide device-agent configuration for the dashboard. Requires a session with the org:admin scope. An unconfigured organization returns an empty document with is_configured=false; enrolled agents do not receive a remote layer until an administrator saves one.
            operationId: getDeviceAgentConfiguration
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DeviceAgentConfiguration'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getConfiguration agent
            tags:
                - agent
            x-speakeasy-name-override: getConfiguration
            x-speakeasy-react-hook:
                name: DeviceAgentConfiguration
    /rpc/agent.getMyConnections:
        get:
            description: Report the enrolled user's sign-in state for each MCP server in the plugins delivered to them, with the page that signs in to each. Sign-in belongs to the server, so one sign-in covers every plugin that contains it. Accepts a per-user key, or an org install key with the user's email vouched in the Gram-User-Email header, the same way getPlugins resolves the polling user.
            operationId: getAgentMyConnections
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Email address of the enrolled user, sent in the Gram-User-Email header. Required when authenticating with an org-scoped agent install key; ignored for a per-user key, whose owner is the enrolled user.
                  example: dev@acme.corp
                  in: header
                  name: Gram-User-Email
                  schema:
                    description: Email address of the enrolled user, sent in the Gram-User-Email header. Required when authenticating with an org-scoped agent install key; ignored for a per-user key, whose owner is the enrolled user.
                    example: dev@acme.corp
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetMyConnectionsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
            summary: getMyConnections agent
            tags:
                - agent
            x-speakeasy-name-override: getMyConnections
            x-speakeasy-react-hook:
                name: AgentMyConnections
    /rpc/agent.getPlugins:
        get:
            description: Resolve the marketplaces, plugins, and optional organization configuration assigned to the enrolled user. The device agent reconciles these into the AI developer tools it manages. Organization configuration is delivered on this existing poll so agents do not need a second control-plane request.
            operationId: getAgentPlugins
            parameters:
                - allowEmptyValue: true
                  description: 'Deprecated: the vouched email as the `?email=` query parameter, sent by agents predating the Gram-User-Email header. Used only when the header is absent.'
                  example: dev@acme.corp
                  in: query
                  name: email
                  schema:
                    description: 'Deprecated: the vouched email as the `?email=` query parameter, sent by agents predating the Gram-User-Email header. Used only when the header is absent.'
                    example: dev@acme.corp
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Email address of the enrolled user, sent in the Gram-User-Email header. Required when authenticating with an org-scoped agent install key (the MDM zero-touch path); ignored for a per-user key, whose owner is the enrolled user.
                  example: dev@acme.corp
                  in: header
                  name: Gram-User-Email
                  schema:
                    description: Email address of the enrolled user, sent in the Gram-User-Email header. Required when authenticating with an org-scoped agent install key (the MDM zero-touch path); ignored for a per-user key, whose owner is the enrolled user.
                    example: dev@acme.corp
                    type: string
                - allowEmptyValue: true
                  description: Hardware serial number of the machine the agent runs on, when it can be read. Lets device coverage attest this specific machine rather than its assigned user.
                  example: C02XK1ABCDEF
                  in: header
                  name: Gram-Device-Serial
                  schema:
                    description: Hardware serial number of the machine the agent runs on, when it can be read. Lets device coverage attest this specific machine rather than its assigned user.
                    example: C02XK1ABCDEF
                    type: string
                - allowEmptyValue: true
                  description: Hostname of the machine the agent runs on, when it can be read.
                  example: dev-macbook-pro
                  in: header
                  name: Gram-Device-Hostname
                  schema:
                    description: Hostname of the machine the agent runs on, when it can be read.
                    example: dev-macbook-pro
                    type: string
                - allowEmptyValue: true
                  description: 'What kind of machine the agent runs on: `endpoint` (the default when omitted) for an end-user device of any form factor, `ephemeral` for a short-lived cloud sandbox or container, or `server` for a long-running shared host. Lets coverage distinguish a developer''s machine from a cloud session, which reports no hardware serial and a generic hostname. An unrecognized value is treated as `endpoint`.'
                  example: ephemeral
                  in: header
                  name: Gram-Device-Environment
                  schema:
                    description: 'What kind of machine the agent runs on: `endpoint` (the default when omitted) for an end-user device of any form factor, `ephemeral` for a short-lived cloud sandbox or container, or `server` for a long-running shared host. Lets coverage distinguish a developer''s machine from a cloud session, which reports no hardware serial and a generic hostname. An unrecognized value is treated as `endpoint`.'
                    example: ephemeral
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetPluginsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - device_agent_token_header_Authorization: []
                - apikey_header_Gram-Key: []
            summary: getPlugins agent
            tags:
                - agent
            x-speakeasy-name-override: getPlugins
            x-speakeasy-react-hook:
                name: AgentPlugins
    /rpc/agent.getSessionMeta:
        get:
            description: 'Resolve display metadata (Speakeasy chat id, generated title, last activity) for captured agent sessions the calling user owns. Used by the device agent''s session picker to overlay server-generated titles on locally discovered transcripts; unknown or non-owned session ids are silently omitted, so the picker degrades gracefully. Requires a per-user key: the fleet-shared org install key is refused because session metadata is per-user data.'
            operationId: getAgentSessionMeta
            parameters:
                - allowEmptyValue: true
                  description: Native harness session identifiers (e.g. Claude Code session UUIDs, Codex rollout ids) to resolve. Speakeasy derives its chat ids from these the same way hook ingest does.
                  in: query
                  name: session_ids
                  required: true
                  schema:
                    description: Native harness session identifiers (e.g. Claude Code session UUIDs, Codex rollout ids) to resolve. Speakeasy derives its chat ids from these the same way hook ingest does.
                    items:
                        type: string
                    maxItems: 50
                    type: array
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetSessionMetaResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
            summary: getSessionMeta agent
            tags:
                - agent
            x-speakeasy-name-override: getSessionMeta
            x-speakeasy-react-hook:
                name: AgentSessionMeta
    /rpc/agent.hideMcpServer:
        post:
            description: Hide an MCP server for the enrolled user, the same preference the gateway consent page's Hide sets. Gateways leave a hidden server out of the user's tools, and getMyConnections reports it as hidden. Only servers getMyConnections reports to the user can be hidden; anything else is not found. Hiding a hidden server changes nothing. Accepts a per-user key, or an org install key with the user's email vouched in the Gram-User-Email header, the same way getMyConnections resolves the user.
            operationId: hideAgentMcpServer
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Email address of the enrolled user, sent in the Gram-User-Email header. Required when authenticating with an org-scoped agent install key; ignored for a per-user key, whose owner is the enrolled user.
                  example: dev@acme.corp
                  in: header
                  name: Gram-User-Email
                  schema:
                    description: Email address of the enrolled user, sent in the Gram-User-Email header. Required when authenticating with an org-scoped agent install key; ignored for a per-user key, whose owner is the enrolled user.
                    example: dev@acme.corp
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/HideAgentMcpServerRequestBody'
                required: true
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
            summary: hideMcpServer agent
            tags:
                - agent
            x-speakeasy-name-override: hideMcpServer
            x-speakeasy-react-hook:
                name: HideAgentMcpServer
    /rpc/agent.listAiScanTargets:
        get:
            description: 'List the Shadow AI scan targets this organization''s device agents probe for: the Speakeasy built-ins plus the organization''s own additions, with the catalog version agents echo on scan receipts. Everything listed is probed for; a built-in leaves the list by leaving Speakeasy''s catalog, an organization target by being deleted. Requires a session with the org:admin scope.'
            operationId: listAiScanTargets
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListAiScanTargetsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listAiScanTargets agent
            tags:
                - agent
            x-speakeasy-name-override: listAiScanTargets
            x-speakeasy-react-hook:
                name: AiScanTargets
    /rpc/agent.listSyncedUsers:
        get:
            description: List users in the current organization who are actively running the Speakeasy device agent, attributed by the email each agent reports on sync. Dashboard-only; requires an org admin session.
            operationId: listSyncedAgentUsers
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListSyncedUsersResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listSyncedUsers agent
            tags:
                - agent
            x-speakeasy-name-override: listSyncedUsers
            x-speakeasy-react-hook:
                name: SyncedAgentUsers
    /rpc/agent.reportAIScan:
        post:
            description: 'Report the result of a device-agent AI scan: which AI tools from the served scan target catalog (or the list embedded in the agent as a fallback) were found installed or running on the device. A scan with zero matches still reports, so organizations can prove a device was scanned and came back clean. Accepts both the per-user key and the org install key (with a vouched email), mirroring getPlugins, because fleet devices must be able to report scans. Fire-and-forget from the agent''s perspective: the daemon must never block on this call.'
            operationId: reportAgentAIScan
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Email of the enrolled user, sent in the Gram-User-Email header. Authoritative when authenticating with an org-scoped agent install key (the MDM zero-touch path); ignored for a per-user key, whose owner is the enrolled user.
                  in: header
                  name: Gram-User-Email
                  schema:
                    description: Email of the enrolled user, sent in the Gram-User-Email header. Authoritative when authenticating with an org-scoped agent install key (the MDM zero-touch path); ignored for a per-user key, whose owner is the enrolled user.
                    type: string
                - allowEmptyValue: true
                  description: Hardware serial number of the machine that was scanned, when the agent can read it.
                  in: header
                  name: Gram-Device-Serial
                  schema:
                    description: Hardware serial number of the machine that was scanned, when the agent can read it.
                    type: string
                - allowEmptyValue: true
                  description: Hostname of the machine that was scanned, when the agent can read it.
                  in: header
                  name: Gram-Device-Hostname
                  schema:
                    description: Hostname of the machine that was scanned, when the agent can read it.
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ReportAIScanRequestBody'
                required: true
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
            summary: reportAIScan agent
            tags:
                - agent
            x-speakeasy-name-override: reportAIScan
            x-speakeasy-react-hook:
                name: ReportAgentAIScan
    /rpc/agent.reportCrash:
        post:
            description: 'Report device agent crashes: fatal crashes, recovered panics and self-rollbacks (device-agent ADR-0030). Forwarded to Speakeasy''s monitoring and not stored. Accepts the credentials getPlugins accepts: the per-user key, the org install key (with a vouched email), and, with the device-sync grant, agent keys and device-agent tokens. The agent scrubs every report before sending it; the server accepts only reports shaped like a Go crash and scrubs them again.'
            operationId: reportAgentCrash
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Email of the enrolled user, sent in the Gram-User-Email header. Authoritative when authenticating with an org-scoped agent install key; ignored for a per-user key, whose owner is the enrolled user.
                  in: header
                  name: Gram-User-Email
                  schema:
                    description: Email of the enrolled user, sent in the Gram-User-Email header. Authoritative when authenticating with an org-scoped agent install key; ignored for a per-user key, whose owner is the enrolled user.
                    type: string
                - allowEmptyValue: true
                  description: Hardware serial number of the machine that crashed, when the agent can read it.
                  in: header
                  name: Gram-Device-Serial
                  schema:
                    description: Hardware serial number of the machine that crashed, when the agent can read it.
                    type: string
                - allowEmptyValue: true
                  description: Kind of machine the agent runs on (endpoint, server or ephemeral), sent in the Gram-Device-Environment header.
                  in: header
                  name: Gram-Device-Environment
                  schema:
                    description: Kind of machine the agent runs on (endpoint, server or ephemeral), sent in the Gram-Device-Environment header.
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ReportCrashRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ReportCrashResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - device_agent_token_header_Authorization: []
                - apikey_header_Gram-Key: []
            summary: reportCrash agent
            tags:
                - agent
            x-speakeasy-name-override: reportCrash
            x-speakeasy-react-hook:
                name: ReportAgentCrash
    /rpc/agent.reportSessionMoved:
        post:
            description: 'Record that a captured agent session was moved to another harness on a device (session portability). Carries no session content — only the session identity, the target harness, and device attribution — and lands as a chat_session:move audit event so organizations retain governance visibility over local-first moves. Accepts both the per-user key and the org install key (with a vouched email), mirroring getPlugins, because fleet devices must be able to report moves. Fire-and-forget from the agent''s perspective: the daemon must never fail a move because this call failed.'
            operationId: reportAgentSessionMoved
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Hardware serial number of the machine the move happened on, when the agent can read it.
                  in: header
                  name: Gram-Device-Serial
                  schema:
                    description: Hardware serial number of the machine the move happened on, when the agent can read it.
                    type: string
                - allowEmptyValue: true
                  description: Hostname of the machine the move happened on, when the agent can read it.
                  in: header
                  name: Gram-Device-Hostname
                  schema:
                    description: Hostname of the machine the move happened on, when the agent can read it.
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ReportSessionMovedRequestBody'
                required: true
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
            summary: reportSessionMoved agent
            tags:
                - agent
            x-speakeasy-name-override: reportSessionMoved
            x-speakeasy-react-hook:
                name: ReportAgentSessionMoved
    /rpc/agent.reportState:
        post:
            description: 'Record the device agent''s applied state: the policy etag it enforces, each tool''s enforcement outcome, its versions and update posture. A snapshot: the latest report per enrolled user per machine replaces the previous one. Accepts the per-user key and the org install key (with a vouched email), mirroring reportAIScan; agent keys and device-agent tokens are refused. A report from a non-endpoint environment is accepted and not stored, because device coverage matches managed endpoints only. Contract: device-agent ADR-0029.'
            operationId: reportAgentState
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Email of the enrolled user, sent in the Gram-User-Email header. Authoritative when authenticating with an org-scoped agent install key (the MDM zero-touch path); ignored for a per-user key, whose owner is the enrolled user.
                  in: header
                  name: Gram-User-Email
                  schema:
                    description: Email of the enrolled user, sent in the Gram-User-Email header. Authoritative when authenticating with an org-scoped agent install key (the MDM zero-touch path); ignored for a per-user key, whose owner is the enrolled user.
                    type: string
                - allowEmptyValue: true
                  description: Hardware serial number of the reporting machine, when the agent can read it.
                  in: header
                  name: Gram-Device-Serial
                  schema:
                    description: Hardware serial number of the reporting machine, when the agent can read it.
                    type: string
                - allowEmptyValue: true
                  description: Hostname of the reporting machine, when the agent can read it.
                  in: header
                  name: Gram-Device-Hostname
                  schema:
                    description: Hostname of the reporting machine, when the agent can read it.
                    type: string
                - allowEmptyValue: true
                  description: 'What kind of machine the agent runs on, as in getPlugins: endpoint (the default when omitted), ephemeral, or server.'
                  in: header
                  name: Gram-Device-Environment
                  schema:
                    description: 'What kind of machine the agent runs on, as in getPlugins: endpoint (the default when omitted), ephemeral, or server.'
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ReportStateRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ReportStateResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
            summary: reportState agent
            tags:
                - agent
            x-speakeasy-name-override: reportState
            x-speakeasy-react-hook:
                name: ReportAgentState
    /rpc/agent.unhideMcpServer:
        post:
            description: Show a hidden MCP server again for the enrolled user. Unhiding a server that is not hidden changes nothing. Authenticates like hideMcpServer.
            operationId: unhideAgentMcpServer
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Email address of the enrolled user, sent in the Gram-User-Email header. Required when authenticating with an org-scoped agent install key; ignored for a per-user key, whose owner is the enrolled user.
                  example: dev@acme.corp
                  in: header
                  name: Gram-User-Email
                  schema:
                    description: Email address of the enrolled user, sent in the Gram-User-Email header. Required when authenticating with an org-scoped agent install key; ignored for a per-user key, whose owner is the enrolled user.
                    example: dev@acme.corp
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UnhideAgentMcpServerRequestBody'
                required: true
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
            summary: unhideMcpServer agent
            tags:
                - agent
            x-speakeasy-name-override: unhideMcpServer
            x-speakeasy-react-hook:
                name: UnhideAgentMcpServer
    /rpc/agent.updateConfiguration:
        post:
            description: Create or replace the organization-wide, non-secret device-agent configuration. Requires a session with the org:admin scope. Known settings are replaced wholesale — omitting one removes it — while stored keys this server does not recognize are preserved for forward compatibility; identity and credential keys are rejected.
            operationId: updateDeviceAgentConfiguration
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateConfigurationRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DeviceAgentConfiguration'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: updateConfiguration agent
            tags:
                - agent
            x-speakeasy-name-override: updateConfiguration
            x-speakeasy-react-hook:
                name: UpdateDeviceAgentConfiguration
    /rpc/agent.upsertAiScanTarget:
        post:
            description: 'Add a scan target for this organization or replace one it added earlier. Built-in targets are system-supplied and read-only: a write under a built-in''s id is accepted only when it carries that built-in''s definition unchanged. Every field is a full replacement except gateway_client, which an existing target keeps when the field is omitted, so a write need not restate the target''s matchers; sending gateway_client with empty lists still clears them. Clearing a target''s last verifiable matcher also clears any access decision recorded about it, since nothing could enforce it any more; the organization decides again once the target can be recognized at the gateway. Agents pick the change up on their next policy poll. Requires a session with the org:admin scope.'
            operationId: upsertAiScanTarget
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpsertAiScanTargetRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AiScanTargetMutationResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: upsertAiScanTarget agent
            tags:
                - agent
            x-speakeasy-name-override: upsertAiScanTarget
            x-speakeasy-react-hook:
                name: UpsertAiScanTarget
    /rpc/agents.blockOnConnection:
        post:
            description: Block one agent in the caller's organization from the caller's own connection through an upstream OAuth client, across every auth client sharing it. Only the connection owner can do this, and it needs no agent management access. Blocks only; it never grants access.
            operationId: blockAgentOnConnection
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/BlockAgentOnConnectionForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AgentConnectionBlock'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: blockAgentOnConnection agents
            tags:
                - agents
            x-speakeasy-name-override: blockOnConnection
            x-speakeasy-react-hook:
                name: BlockAgentOnConnection
    /rpc/agents.checkPolicyGrants:
        post:
            description: 'Check whether policy grants could be written without writing them: to agent_id, or to a new agent the caller would create for owner_user_id (the caller by default). Uses the authorization and containment rule of agents.create and agents.createPolicyGrant, which still check every write.'
            operationId: checkAgentPolicyGrants
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CheckAgentPolicyGrantsForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CheckAgentPolicyGrantsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: checkPolicyGrants agents
            tags:
                - agents
            x-speakeasy-name-override: checkPolicyGrants
            x-speakeasy-react-hook:
                name: CheckAgentPolicyGrants
    /rpc/agents.create:
        post:
            operationId: createAgent
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateAgentForm'
                required: true
            responses:
                "201":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ManagedAgent'
                    description: Created response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: create agents
            tags:
                - agents
            x-speakeasy-name-override: create
            x-speakeasy-react-hook:
                name: CreateAgent
    /rpc/agents.createPolicyGrant:
        post:
            operationId: createAgentPolicyGrant
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateAgentPolicyGrantForm'
                required: true
            responses:
                "201":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AgentPolicyGrant'
                    description: Created response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: createPolicyGrant agents
            tags:
                - agents
            x-speakeasy-name-override: createPolicyGrant
    /rpc/agents.delete:
        post:
            operationId: deleteAgent
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/AgentIDForm'
                required: true
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: delete agents
            tags:
                - agents
            x-speakeasy-name-override: delete
    /rpc/agents.deletePolicyGrant:
        post:
            operationId: deleteAgentPolicyGrant
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DeleteAgentPolicyGrantForm'
                required: true
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: deletePolicyGrant agents
            tags:
                - agents
            x-speakeasy-name-override: deletePolicyGrant
    /rpc/agents.get:
        get:
            operationId: getAgent
            parameters:
                - allowEmptyValue: true
                  in: query
                  name: id
                  required: true
                  schema:
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ManagedAgent'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: get agents
            tags:
                - agents
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: Agent
    /rpc/agents.list:
        get:
            operationId: listAgents
            parameters:
                - allowEmptyValue: true
                  description: Cursor for the next page of agents.
                  in: query
                  name: cursor
                  schema:
                    description: Cursor for the next page of agents.
                    type: string
                - allowEmptyValue: true
                  description: The number of agents to return per page.
                  in: query
                  name: limit
                  schema:
                    default: 50
                    description: The number of agents to return per page.
                    format: int64
                    maximum: 200
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Case-insensitive substring match on the agent name.
                  in: query
                  name: search
                  schema:
                    description: Case-insensitive substring match on the agent name.
                    type: string
                - allowEmptyValue: true
                  description: Name order for the page.
                  in: query
                  name: name_order
                  schema:
                    default: asc
                    description: Name order for the page.
                    enum:
                        - asc
                        - desc
                    type: string
                - allowEmptyValue: true
                  description: Keep only agents in these lifecycle states.
                  in: query
                  name: lifecycle
                  schema:
                    description: Keep only agents in these lifecycle states.
                    items:
                        enum:
                            - active
                            - suspended
                            - revoked
                        type: string
                    type: array
                - allowEmptyValue: true
                  description: Keep only agents owned by these users.
                  in: query
                  name: owner_user_ids
                  schema:
                    description: Keep only agents owned by these users.
                    items:
                        type: string
                    type: array
                - allowEmptyValue: true
                  description: Keep only agents registered at or after this moment.
                  in: query
                  name: registered_after
                  schema:
                    description: Keep only agents registered at or after this moment.
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: Keep only agents registered before this moment.
                  in: query
                  name: registered_before
                  schema:
                    description: Keep only agents registered before this moment.
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListAgentsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: list agents
            tags:
                - agents
            x-speakeasy-name-override: list
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: Agents
    /rpc/agents.listConnectionBlocks:
        get:
            description: List the agents the caller blocked from their own connections. Needs no agent management access.
            operationId: listAgentConnectionBlocks
            parameters:
                - allowEmptyValue: true
                  description: Cursor for the next page of blocks.
                  in: query
                  name: cursor
                  schema:
                    description: Cursor for the next page of blocks.
                    type: string
                - allowEmptyValue: true
                  description: The number of blocks to return per page.
                  in: query
                  name: limit
                  schema:
                    default: 50
                    description: The number of blocks to return per page.
                    format: int64
                    maximum: 100
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListAgentConnectionBlocksResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listConnectionBlocks agents
            tags:
                - agents
            x-speakeasy-name-override: listConnectionBlocks
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: AgentConnectionBlocks
    /rpc/agents.listDelegableGrants:
        get:
            description: List safe allow-only credential grant candidates shared by the live agent, owner, and current authorizer. Candidates with unrepresentable exclusions are conservatively omitted unless carry_exclusions is set. Issuance revalidates every grant.
            operationId: listAgentDelegableGrants
            parameters:
                - allowEmptyValue: true
                  description: First-class agent identifier
                  in: query
                  name: agent_id
                  required: true
                  schema:
                    description: First-class agent identifier
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: 'Optional MCP authorization resource identifier: the toolset ID when present, otherwise the MCP server ID. Narrows discovery to this server and its project before evaluating exclusions.'
                  in: query
                  name: toolset_id
                  schema:
                    description: 'Optional MCP authorization resource identifier: the toolset ID when present, otherwise the MCP server ID. Narrows discovery to this server and its project before evaluating exclusions.'
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Optional MCP authorization resource identifiers, discovered in one request. Each narrows discovery like toolset_id; the result is the union of candidates across all of them.
                  in: query
                  name: toolset_ids
                  schema:
                    description: Optional MCP authorization resource identifiers, discovered in one request. Each narrows discovery like toolset_id; the result is the union of candidates across all of them.
                    items:
                        format: uuid
                        type: string
                    maxItems: 100
                    type: array
                - allowEmptyValue: true
                  description: Keep a wildcard candidate that a narrower exclusion overlaps, and return that exclusion beside it as a blocklist-scope grant, instead of omitting the candidate. Requesting both on a key needs delegated grants version 4 or later.
                  in: query
                  name: carry_exclusions
                  schema:
                    default: false
                    description: Keep a wildcard candidate that a narrower exclusion overlaps, and return that exclusion beside it as a blocklist-scope grant, instead of omitting the candidate. Requesting both on a key needs delegated grants version 4 or later.
                    type: boolean
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                items:
                                    $ref: '#/components/schemas/AgentPolicyGrantForm'
                                type: array
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listDelegableGrants agents
            tags:
                - agents
            x-speakeasy-name-override: listDelegableGrants
            x-speakeasy-react-hook:
                name: ListAgentDelegableGrants
    /rpc/agents.listPolicyGrants:
        get:
            operationId: listAgentPolicyGrants
            parameters:
                - allowEmptyValue: true
                  description: First-class agent identifier
                  in: query
                  name: agent_id
                  required: true
                  schema:
                    description: First-class agent identifier
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                items:
                                    $ref: '#/components/schemas/AgentPolicyGrant'
                                type: array
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listPolicyGrants agents
            tags:
                - agents
            x-speakeasy-name-override: listPolicyGrants
    /rpc/agents.listSessions:
        get:
            operationId: listAgentSessions
            parameters:
                - allowEmptyValue: true
                  description: First-class agent identifier
                  in: query
                  name: agent_id
                  required: true
                  schema:
                    description: First-class agent identifier
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  in: query
                  name: cursor
                  schema:
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  in: query
                  name: limit
                  schema:
                    default: 50
                    format: int64
                    maximum: 100
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListSessionsResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listSessions agents
            tags:
                - agents
            x-speakeasy-name-override: listSessions
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: AgentSessions
    /rpc/agents.reassign:
        post:
            operationId: reassignAgent
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/AgentOwnerAssignmentForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ManagedAgent'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: reassign agents
            tags:
                - agents
            x-speakeasy-name-override: reassign
            x-speakeasy-react-hook:
                name: ReassignAgent
    /rpc/agents.removeConnectionBlock:
        post:
            description: Remove a block the caller wrote on their own connection. Blocks written by an agent manager are not affected.
            operationId: removeAgentConnectionBlock
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/AgentConnectionBlockIDForm'
                required: true
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: removeConnectionBlock agents
            tags:
                - agents
            x-speakeasy-name-override: removeConnectionBlock
            x-speakeasy-react-hook:
                name: RemoveAgentConnectionBlock
    /rpc/agents.rename:
        post:
            operationId: renameAgent
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RenameAgentForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ManagedAgent'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: rename agents
            tags:
                - agents
            x-speakeasy-name-override: rename
            x-speakeasy-react-hook:
                name: RenameAgent
    /rpc/agents.resume:
        post:
            operationId: resumeAgent
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/AgentIDForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ManagedAgent'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: resume agents
            tags:
                - agents
            x-speakeasy-name-override: resume
    /rpc/agents.revoke:
        post:
            operationId: revokeAgent
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/AgentIDForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ManagedAgent'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: revoke agents
            tags:
                - agents
            x-speakeasy-name-override: revoke
    /rpc/agents.revokeSession:
        post:
            operationId: revokeAgentSession
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RevokeSessionRequestBody'
                required: true
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: revokeSession agents
            tags:
                - agents
            x-speakeasy-name-override: revokeSession
            x-speakeasy-react-hook:
                name: RevokeAgentSession
    /rpc/agents.suspend:
        post:
            operationId: suspendAgent
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/AgentIDForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ManagedAgent'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: suspend agents
            tags:
                - agents
            x-speakeasy-name-override: suspend
    /rpc/agents.transfer:
        post:
            operationId: transferAgent
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/AgentOwnerAssignmentForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ManagedAgent'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: transfer agents
            tags:
                - agents
            x-speakeasy-name-override: transfer
            x-speakeasy-react-hook:
                name: TransferAgent
    /rpc/agents.updatePolicyGrant:
        post:
            operationId: updateAgentPolicyGrant
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateAgentPolicyGrantForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AgentPolicyGrant'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: updatePolicyGrant agents
            tags:
                - agents
            x-speakeasy-name-override: updatePolicyGrant
    /rpc/aiIntegrations.deleteAnthropicInferenceConfig:
        post:
            description: Disconnect the organization Anthropic inference hook and revoke its URL.
            operationId: deleteAnthropicInferenceConfig
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: deleteAnthropicInferenceConfig aiIntegrations
            tags:
                - aiIntegrations
            x-speakeasy-name-override: deleteAnthropicInferenceConfig
            x-speakeasy-react-hook:
                name: DeleteAnthropicInferenceConfig
    /rpc/aiIntegrations.deleteConfig:
        post:
            description: Delete the org-wide AI integration config for a provider.
            operationId: deleteAIIntegrationConfig
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DeleteConfigRequestBody'
                required: true
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: deleteConfig aiIntegrations
            tags:
                - aiIntegrations
            x-speakeasy-name-override: deleteConfig
            x-speakeasy-react-hook:
                name: DeleteAIIntegrationConfig
    /rpc/aiIntegrations.getAnthropicInferenceConfig:
        get:
            description: Get the organization Anthropic inference hook setup.
            operationId: getAnthropicInferenceConfig
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AnthropicInferenceConfig'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: getAnthropicInferenceConfig aiIntegrations
            tags:
                - aiIntegrations
            x-speakeasy-name-override: getAnthropicInferenceConfig
            x-speakeasy-react-hook:
                name: AnthropicInferenceConfig
    /rpc/aiIntegrations.getConfig:
        get:
            description: Get the org-wide AI integration config for a provider. Returns an empty config (enabled=false, has_api_key=false) when none is set.
            operationId: getAIIntegrationConfig
            parameters:
                - allowEmptyValue: true
                  description: AI provider identifier. Supported values include cursor, anthropic_compliance, codex_compliance, and chatgpt_compliance.
                  in: query
                  name: provider
                  required: true
                  schema:
                    description: AI provider identifier. Supported values include cursor, anthropic_compliance, codex_compliance, and chatgpt_compliance.
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AIIntegrationConfig'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: getConfig aiIntegrations
            tags:
                - aiIntegrations
            x-speakeasy-name-override: getConfig
            x-speakeasy-react-hook:
                name: AIIntegrationConfig
    /rpc/aiIntegrations.listSchedules:
        get:
            description: List the sync schedules and their scheduler state for a provider's org-wide AI integration config. Returns an empty list when no config is set.
            operationId: listAIIntegrationSchedules
            parameters:
                - allowEmptyValue: true
                  description: AI provider identifier. Supported values include cursor, anthropic_compliance, codex_compliance, and chatgpt_compliance.
                  in: query
                  name: provider
                  required: true
                  schema:
                    description: AI provider identifier. Supported values include cursor, anthropic_compliance, codex_compliance, and chatgpt_compliance.
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListAIIntegrationSchedulesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: listSchedules aiIntegrations
            tags:
                - aiIntegrations
            x-speakeasy-name-override: listSchedules
            x-speakeasy-react-hook:
                name: AIIntegrationSchedules
    /rpc/aiIntegrations.retrySchedule:
        post:
            description: Make one sync schedule due immediately, lifting any automatic pause and resetting its failure streak. The scheduler picks it up on its next tick.
            operationId: retryAIIntegrationSchedule
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RetryScheduleRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AIIntegrationScheduleState'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: retrySchedule aiIntegrations
            tags:
                - aiIntegrations
            x-speakeasy-name-override: retrySchedule
            x-speakeasy-react-hook:
                name: RetryAIIntegrationSchedule
    /rpc/aiIntegrations.setScheduleEnabled:
        post:
            description: Enable or disable one sync schedule of a provider's org-wide AI integration config. Disabled schedules are skipped by the poller until re-enabled.
            operationId: setAIIntegrationScheduleEnabled
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetScheduleEnabledRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AIIntegrationScheduleState'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: setScheduleEnabled aiIntegrations
            tags:
                - aiIntegrations
            x-speakeasy-name-override: setScheduleEnabled
            x-speakeasy-react-hook:
                name: SetAIIntegrationScheduleEnabled
    /rpc/aiIntegrations.upsertAnthropicInferenceConfig:
        post:
            description: Prepare a webhook URL or update its signing secret and enabled state.
            operationId: upsertAnthropicInferenceConfig
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpsertAnthropicInferenceConfigRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AnthropicInferenceConfig'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: upsertAnthropicInferenceConfig aiIntegrations
            tags:
                - aiIntegrations
            x-speakeasy-name-override: upsertAnthropicInferenceConfig
            x-speakeasy-react-hook:
                name: UpsertAnthropicInferenceConfig
    /rpc/aiIntegrations.upsertConfig:
        post:
            description: Create or update the org-wide AI integration config for a provider.
            operationId: upsertAIIntegrationConfig
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpsertConfigRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AIIntegrationConfig'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: upsertConfig aiIntegrations
            tags:
                - aiIntegrations
            x-speakeasy-name-override: upsertConfig
            x-speakeasy-react-hook:
                name: UpsertAIIntegrationConfig
    /rpc/analytics.describe:
        get:
            description: Describe every dataset and the fields it exposes, with the operators and aggregations each admits.
            operationId: analyticsDescribe
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AnalyticsDescribeResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: describe analytics
            tags:
                - analytics
            x-speakeasy-name-override: describe
            x-speakeasy-react-hook:
                name: AnalyticsDescribe
    /rpc/analytics.dimensionValues:
        post:
            description: List the values a dimension holds inside a window, most frequent first, for filter pickers. Values are resolved after the dataset collapses its observations, so every value returned is one a query would match.
            operationId: analyticsDimensionValues
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DimensionValuesRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AnalyticsDimensionValuesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: dimensionValues analytics
            tags:
                - analytics
            x-speakeasy-name-override: dimensionValues
            x-speakeasy-react-hook:
                name: AnalyticsDimensionValues
                type: query
    /rpc/analytics.query:
        post:
            description: 'Run a query against one dataset. Grouped: aggregate over dimensions, optionally bucketed by time. Ungrouped: rows at the dataset''s grain, newest first.'
            operationId: analyticsQuery
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/AnalyticsQueryPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AnalyticsQueryResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: query analytics
            tags:
                - analytics
            x-speakeasy-name-override: query
            x-speakeasy-react-hook:
                name: AnalyticsQuery
                type: query
    /rpc/analytics.signalDefinition:
        get:
            description: Inspect the immutable semantic definition used by a signal reading. Requires signals_intelligence and project:read.
            operationId: analyticsSignalDefinition
            parameters:
                - allowEmptyValue: true
                  in: query
                  name: sensor_id
                  required: true
                  schema:
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  in: query
                  name: definition_hash
                  required: true
                  schema:
                    maxLength: 64
                    minLength: 64
                    pattern: ^[a-f0-9]{64}$
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AnalyticsSignalDefinition'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: signalDefinition analytics
            tags:
                - analytics
            x-speakeasy-name-override: signalDefinition
            x-speakeasy-react-hook:
                name: AnalyticsSignalDefinition
    /rpc/analytics.signalFindings:
        post:
            description: Find cross-session signal patterns, joint-answer co-occurrence and guarded previous-window changes. Aggregate reads require project:read and Signals Intelligence; each evidence reference additionally passes the underlying conversation access checks.
            operationId: analyticsSignalFindings
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SignalFindingsRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AnalyticsSignalFindings'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: signalFindings analytics
            tags:
                - analytics
            x-speakeasy-name-override: signalFindings
            x-speakeasy-react-hook:
                name: AnalyticsSignalFindings
    /rpc/assets.createSignedChatAttachmentURL:
        post:
            description: Create a time-limited signed URL to access a chat attachment without authentication.
            operationId: createSignedChatAttachmentURL
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: Chat Sessions token header
                  in: header
                  name: Gram-Chat-Session
                  schema:
                    description: Chat Sessions token header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateSignedChatAttachmentURLForm2'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CreateSignedChatAttachmentURLResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - chat_sessions_token_header_Gram-Chat-Session: []
                  project_slug_header_Gram-Project: []
            summary: createSignedChatAttachmentURL assets
            tags:
                - assets
            x-speakeasy-name-override: createSignedChatAttachmentURL
            x-speakeasy-react-hook:
                name: CreateSignedChatAttachmentURL
    /rpc/assets.fetchImageFromURL:
        post:
            description: Fetch an image from a URL and upload it to Speakeasy as an image asset.
            operationId: fetchImageFromURL
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/FetchImageFromURLForm2'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UploadImageResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: fetchImageFromURL assets
            tags:
                - assets
            x-speakeasy-name-override: fetchImageFromURL
            x-speakeasy-react-hook:
                name: FetchImageFromURL
    /rpc/assets.fetchOpenAPIv3FromURL:
        post:
            description: Fetch an OpenAPI v3 document from a URL and upload it to Speakeasy.
            operationId: fetchOpenAPIv3FromURL
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/FetchOpenAPIv3FromURLForm2'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UploadOpenAPIv3Result'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: fetchOpenAPIv3FromURL assets
            tags:
                - assets
            x-speakeasy-name-override: fetchOpenAPIv3FromURL
            x-speakeasy-react-hook:
                name: FetchOpenAPIv3FromURL
    /rpc/assets.list:
        get:
            description: List all assets for a project.
            operationId: listAssets
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListAssetsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listAssets assets
            tags:
                - assets
            x-speakeasy-name-override: listAssets
            x-speakeasy-react-hook:
                name: ListAssets
    /rpc/assets.serveChatAttachment:
        get:
            description: Serve a chat attachment from Speakeasy.
            operationId: serveChatAttachment
            parameters:
                - allowEmptyValue: true
                  description: The ID of the attachment to serve
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the attachment to serve
                    type: string
                - allowEmptyValue: true
                  description: The project ID that the attachment belongs to
                  in: query
                  name: project_id
                  required: true
                  schema:
                    description: The project ID that the attachment belongs to
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: Chat Sessions token header
                  in: header
                  name: Gram-Chat-Session
                  schema:
                    description: Chat Sessions token header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                format: binary
                                type: string
                    description: OK response.
                    headers:
                        Content-Disposition:
                            schema:
                                type: string
                        Content-Length:
                            schema:
                                format: int64
                                type: integer
                        Content-Security-Policy:
                            schema:
                                type: string
                        Content-Type:
                            schema:
                                type: string
                        Last-Modified:
                            schema:
                                type: string
                        X-Content-Type-Options:
                            schema:
                                type: string
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
                - chat_sessions_token_header_Gram-Chat-Session: []
            summary: serveChatAttachment assets
            tags:
                - assets
            x-speakeasy-name-override: serveChatAttachment
            x-speakeasy-react-hook:
                name: serveChatAttachment
    /rpc/assets.serveChatAttachmentSigned:
        get:
            description: Serve a chat attachment using a signed URL token.
            operationId: serveChatAttachmentSigned
            parameters:
                - allowEmptyValue: true
                  description: The signed JWT token
                  in: query
                  name: token
                  required: true
                  schema:
                    description: The signed JWT token
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                format: binary
                                type: string
                    description: OK response.
                    headers:
                        Access-Control-Allow-Origin:
                            schema:
                                type: string
                        Content-Disposition:
                            schema:
                                type: string
                        Content-Length:
                            schema:
                                format: int64
                                type: integer
                        Content-Security-Policy:
                            schema:
                                type: string
                        Content-Type:
                            schema:
                                type: string
                        Last-Modified:
                            schema:
                                type: string
                        X-Content-Type-Options:
                            schema:
                                type: string
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            summary: serveChatAttachmentSigned assets
            tags:
                - assets
            x-speakeasy-name-override: serveChatAttachmentSigned
            x-speakeasy-react-hook:
                name: serveChatAttachmentSigned
    /rpc/assets.serveFunction:
        get:
            description: Serve a Speakeasy Functions asset from Speakeasy.
            operationId: serveFunction
            parameters:
                - allowEmptyValue: true
                  description: The ID of the asset to serve
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the asset to serve
                    type: string
                - allowEmptyValue: true
                  description: The procect ID that the asset belongs to
                  in: query
                  name: project_id
                  required: true
                  schema:
                    description: The procect ID that the asset belongs to
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                format: binary
                                type: string
                    description: OK response.
                    headers:
                        Content-Length:
                            schema:
                                format: int64
                                type: integer
                        Content-Type:
                            schema:
                                type: string
                        Last-Modified:
                            schema:
                                type: string
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: serveFunction assets
            tags:
                - assets
            x-speakeasy-name-override: serveFunction
            x-speakeasy-react-hook:
                name: serveFunction
    /rpc/assets.serveImage:
        get:
            description: Serve an image from Speakeasy.
            operationId: serveImage
            parameters:
                - allowEmptyValue: true
                  description: The ID of the asset to serve
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the asset to serve
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                format: binary
                                type: string
                    description: OK response.
                    headers:
                        Access-Control-Allow-Origin:
                            schema:
                                type: string
                        Content-Length:
                            schema:
                                format: int64
                                type: integer
                        Content-Security-Policy:
                            schema:
                                type: string
                        Content-Type:
                            schema:
                                type: string
                        Cross-Origin-Resource-Policy:
                            schema:
                                type: string
                        Last-Modified:
                            schema:
                                type: string
                        X-Content-Type-Options:
                            schema:
                                type: string
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            summary: serveImage assets
            tags:
                - assets
            x-speakeasy-name-override: serveImage
            x-speakeasy-react-hook:
                name: serveImage
    /rpc/assets.serveOpenAPIv3:
        get:
            description: Serve an OpenAPIv3 asset from Speakeasy.
            operationId: serveOpenAPIv3
            parameters:
                - allowEmptyValue: true
                  description: The ID of the asset to serve
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the asset to serve
                    type: string
                - allowEmptyValue: true
                  description: The procect ID that the asset belongs to
                  in: query
                  name: project_id
                  required: true
                  schema:
                    description: The procect ID that the asset belongs to
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        '*/*':
                            schema:
                                format: binary
                                type: string
                    description: OK response.
                    headers:
                        Content-Length:
                            schema:
                                format: int64
                                type: integer
                        Content-Type:
                            schema:
                                type: string
                        Last-Modified:
                            schema:
                                type: string
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: serveOpenAPIv3 assets
            tags:
                - assets
            x-speakeasy-name-override: serveOpenAPIv3
            x-speakeasy-react-hook:
                name: serveOpenAPIv3
    /rpc/assets.uploadChatAttachment:
        post:
            description: Upload a chat attachment to Speakeasy.
            operationId: uploadChatAttachment
            parameters:
                - allowEmptyValue: true
                  in: header
                  name: Content-Type
                  required: true
                  schema:
                    type: string
                - allowEmptyValue: true
                  in: header
                  name: Content-Length
                  required: true
                  schema:
                    format: int64
                    type: integer
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: Chat Sessions token header
                  in: header
                  name: Gram-Chat-Session
                  schema:
                    description: Chat Sessions token header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UploadChatAttachmentResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - chat_sessions_token_header_Gram-Chat-Session: []
                  project_slug_header_Gram-Project: []
            summary: uploadChatAttachment assets
            tags:
                - assets
            x-speakeasy-name-override: uploadChatAttachment
            x-speakeasy-react-hook:
                name: UploadChatAttachment
    /rpc/assets.uploadFunctions:
        post:
            description: Upload functions to Speakeasy.
            operationId: uploadFunctions
            parameters:
                - allowEmptyValue: true
                  in: header
                  name: Content-Type
                  required: true
                  schema:
                    type: string
                - allowEmptyValue: true
                  in: header
                  name: Content-Length
                  required: true
                  schema:
                    format: int64
                    type: integer
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UploadFunctionsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: uploadFunctions assets
            tags:
                - assets
            x-speakeasy-name-override: uploadFunctions
            x-speakeasy-react-hook:
                name: UploadFunctions
    /rpc/assets.uploadImage:
        post:
            description: Upload an image to Speakeasy.
            operationId: uploadImage
            parameters:
                - allowEmptyValue: true
                  in: header
                  name: Content-Type
                  required: true
                  schema:
                    type: string
                - allowEmptyValue: true
                  in: header
                  name: Content-Length
                  required: true
                  schema:
                    format: int64
                    type: integer
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UploadImageResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: uploadImage assets
            tags:
                - assets
            x-speakeasy-name-override: uploadImage
            x-speakeasy-react-hook:
                name: UploadImage
    /rpc/assets.uploadOpenAPIv3:
        post:
            description: Upload an OpenAPI v3 document to Speakeasy.
            operationId: uploadOpenAPIv3Asset
            parameters:
                - allowEmptyValue: true
                  in: header
                  name: Content-Type
                  required: true
                  schema:
                    type: string
                - allowEmptyValue: true
                  in: header
                  name: Content-Length
                  required: true
                  schema:
                    format: int64
                    type: integer
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UploadOpenAPIv3Result'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: uploadOpenAPIv3 assets
            tags:
                - assets
            x-speakeasy-name-override: uploadOpenAPIv3
            x-speakeasy-react-hook:
                name: UploadOpenAPIv3
    /rpc/assistantMemories.delete:
        delete:
            description: Delete an assistant memory by ID.
            operationId: deleteAssistantMemory
            parameters:
                - allowEmptyValue: true
                  description: The assistant memory ID.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The assistant memory ID.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: deleteAssistantMemory assistantMemories
            tags:
                - assistantMemories
            x-speakeasy-name-override: delete
    /rpc/assistantMemories.get:
        get:
            description: Get an assistant memory by ID.
            operationId: getAssistantMemory
            parameters:
                - allowEmptyValue: true
                  description: The assistant memory ID.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The assistant memory ID.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AssistantMemory'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getAssistantMemory assistantMemories
            tags:
                - assistantMemories
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: GetAssistantMemory
    /rpc/assistantMemories.list:
        get:
            description: List assistant memories for an assistant.
            operationId: listAssistantMemories
            parameters:
                - allowEmptyValue: true
                  description: The assistant ID.
                  in: query
                  name: assistant_id
                  required: true
                  schema:
                    description: The assistant ID.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Optional tags to filter memories by.
                  in: query
                  name: tags
                  schema:
                    description: Optional tags to filter memories by.
                    items:
                        type: string
                    type: array
                - allowEmptyValue: true
                  description: Whether to include soft-deleted memories.
                  in: query
                  name: include_deleted
                  schema:
                    default: false
                    description: Whether to include soft-deleted memories.
                    type: boolean
                - allowEmptyValue: true
                  description: The cursor to fetch results from.
                  in: query
                  name: cursor
                  schema:
                    description: The cursor to fetch results from.
                    type: string
                - allowEmptyValue: true
                  description: The number of memories to return per page.
                  in: query
                  name: limit
                  schema:
                    default: 50
                    description: The number of memories to return per page.
                    format: int64
                    maximum: 200
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListAssistantMemoriesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listAssistantMemories assistantMemories
            tags:
                - assistantMemories
            x-speakeasy-name-override: list
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: ListAssistantMemories
    /rpc/assistants.create:
        post:
            description: Create an assistant.
            operationId: createAssistant
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateAssistantForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Assistant'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: createAssistant assistants
            tags:
                - assistants
            x-speakeasy-name-override: create
    /rpc/assistants.delete:
        delete:
            description: Delete an assistant.
            operationId: deleteAssistant
            parameters:
                - allowEmptyValue: true
                  description: The assistant ID.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The assistant ID.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: deleteAssistant assistants
            tags:
                - assistants
            x-speakeasy-name-override: delete
    /rpc/assistants.ensureManagedAssistant:
        post:
            description: Get the project's built-in Project Assistant, provisioning it on first access. Idempotent — safe to call on every sidebar open.
            operationId: ensureManagedAssistant
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Assistant'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: ensureManagedAssistant assistants
            tags:
                - assistants
            x-speakeasy-name-override: ensureManaged
            x-speakeasy-react-hook:
                name: EnsureManagedAssistant
                type: mutation
    /rpc/assistants.get:
        get:
            description: Get an assistant by ID.
            operationId: getAssistant
            parameters:
                - allowEmptyValue: true
                  description: The assistant ID.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The assistant ID.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Assistant'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getAssistant assistants
            tags:
                - assistants
            x-speakeasy-name-override: get
    /rpc/assistants.getManagedAssistant:
        get:
            description: Get the project's built-in Project Assistant if it exists. Returns 404 when no managed assistant has been provisioned yet — call ensureManagedAssistant to create one.
            operationId: getManagedAssistant
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Assistant'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getManagedAssistant assistants
            tags:
                - assistants
            x-speakeasy-name-override: getManaged
    /rpc/assistants.interruptTurn:
        post:
            description: 'Stop whatever a conversation is currently generating. Cancels turns still queued on the conversation''s thread and interrupts the turn in flight on the assistant runtime, so the reply stops where it is rather than finishing in the background. Idempotent and safe to call when nothing is running: `stopped` is false when the reply had already finished.'
            operationId: interruptAssistantTurn
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/InterruptTurnRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/InterruptTurnResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: interruptTurn assistants
            tags:
                - assistants
            x-speakeasy-name-override: interruptTurn
            x-speakeasy-react-hook:
                name: InterruptAssistantTurn
                type: mutation
    /rpc/assistants.list:
        get:
            description: List assistants for the current project.
            operationId: listAssistants
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListAssistantsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listAssistants assistants
            tags:
                - assistants
            x-speakeasy-name-override: list
    /rpc/assistants.listExecutionProfiles:
        get:
            description: List the upstream credentials an assistant's turns use on each MCP server it reaches, per root trigger and per whether the turn acts for a user. Each server shows its current choice, or why it has none, and the credentials that can be chosen. Requires assistant read access.
            operationId: listAssistantExecutionProfiles
            parameters:
                - allowEmptyValue: true
                  description: The assistant ID.
                  in: query
                  name: assistant_id
                  required: true
                  schema:
                    description: The assistant ID.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListExecutionProfilesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listExecutionProfiles assistants
            tags:
                - assistants
            x-speakeasy-name-override: listExecutionProfiles
            x-speakeasy-react-hook:
                name: AssistantExecutionProfiles
    /rpc/assistants.sendMessage:
        post:
            description: Send a message from the dashboard to an assistant as the calling user. Continue an existing conversation by passing its chat_id (from listChats), or omit chat_id to start a new conversation — the server mints and returns a fresh chat id. The reply is delivered asynchronously; poll the chat service (loadChat) to read it.
            operationId: sendAssistantMessage
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SendMessageRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SendMessageResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: sendMessage assistants
            tags:
                - assistants
            x-speakeasy-name-override: sendMessage
            x-speakeasy-react-hook:
                name: SendAssistantMessage
    /rpc/assistants.setExecutionProfileChoice:
        post:
            description: 'Choose the upstream credential an assistant''s turns use on one MCP server, for one root trigger and execution context: an auth client, no upstream authentication, or back to the choice the next turn makes on its own. Turns already running keep their choice; later turns use the new one. Turns that act for nobody can use shared credentials only. Choosing grants nothing: each request checks the turn may use the credential. Requires assistant write access.'
            operationId: setAssistantExecutionProfileChoice
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetExecutionProfileChoiceRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AssistantExecutionProfile'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: setExecutionProfileChoice assistants
            tags:
                - assistants
            x-speakeasy-name-override: setExecutionProfileChoice
            x-speakeasy-react-hook:
                name: SetAssistantExecutionProfileChoice
    /rpc/assistants.update:
        post:
            description: Update an assistant.
            operationId: updateAssistant
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateAssistantForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Assistant'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: updateAssistant assistants
            tags:
                - assistants
            x-speakeasy-name-override: update
    /rpc/assistants.upgradeIdentity:
        post:
            description: Give an existing assistant an agent and per-trigger workload identities. By default a new agent is created with access to every MCP server and skill in the project and to administering this assistant. Passing agent_id points the assistant at an existing agent of the project instead; that agent keeps its policy and gains administration of this assistant. Either way the agent is managed like any other agent afterwards. Existing assistants are never upgraded implicitly; repeating the upgrade is safe.
            operationId: upgradeAssistantIdentity
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpgradeAssistantIdentityRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Assistant'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: upgradeAssistantIdentity assistants
            tags:
                - assistants
            x-speakeasy-name-override: upgradeIdentity
    /rpc/auditlogs.list:
        get:
            description: List audit logs across organization and projects.
            operationId: listAuditLogs
            parameters:
                - allowEmptyValue: true
                  description: The cursor for paginating through audit logs.
                  in: query
                  name: cursor
                  schema:
                    description: The cursor for paginating through audit logs.
                    type: string
                - allowEmptyValue: true
                  description: Project slug to filter audit logs to a specific project.
                  in: query
                  name: project_slug
                  schema:
                    description: Project slug to filter audit logs to a specific project.
                    type: string
                - allowEmptyValue: true
                  description: Actor ID to filter audit logs to a specific actor.
                  in: query
                  name: actor_id
                  schema:
                    description: Actor ID to filter audit logs to a specific actor.
                    type: string
                - allowEmptyValue: true
                  description: Action to filter audit logs to a specific action.
                  in: query
                  name: action
                  schema:
                    description: Action to filter audit logs to a specific action.
                    type: string
                - allowEmptyValue: true
                  description: Subject type to filter audit logs to a specific kind of subject. When omitted, assistant activity events are excluded; pass 'assistant' to list them.
                  in: query
                  name: subject_type
                  schema:
                    description: Subject type to filter audit logs to a specific kind of subject. When omitted, assistant activity events are excluded; pass 'assistant' to list them.
                    type: string
                - allowEmptyValue: true
                  description: Subject ID to filter audit logs to a specific subject (e.g. a single assistant).
                  in: query
                  name: subject_id
                  schema:
                    description: Subject ID to filter audit logs to a specific subject (e.g. a single assistant).
                    type: string
                - allowEmptyValue: true
                  description: Subject IDs to filter audit logs to a set of subjects at once, e.g. a resource together with the child resources whose events name the child as the subject. Matches any listed subject of any subject type, except that assistant activity events stay excluded unless subject_type is 'assistant'; combine with subject_type to pin the kind. Blank entries are ignored.
                  in: query
                  name: subject_ids
                  schema:
                    description: Subject IDs to filter audit logs to a set of subjects at once, e.g. a resource together with the child resources whose events name the child as the subject. Matches any listed subject of any subject type, except that assistant activity events stay excluded unless subject_type is 'assistant'; combine with subject_type to pin the kind. Blank entries are ignored.
                    items:
                        type: string
                    maxItems: 200
                    type: array
                - allowEmptyValue: true
                  description: Acting surface to filter audit logs to changes made through one surface, e.g. 'platform_mcp' to review agent-driven activity alone.
                  in: query
                  name: acting_surface
                  schema:
                    description: Acting surface to filter audit logs to changes made through one surface, e.g. 'platform_mcp' to review agent-driven activity alone.
                    type: string
                - allowEmptyValue: true
                  description: Inclusive start of the window to list changes from. Omit for the whole history.
                  in: query
                  name: from
                  schema:
                    description: Inclusive start of the window to list changes from. Omit for the whole history.
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: Exclusive end of the window to list changes from. Omit for the whole history.
                  in: query
                  name: to
                  schema:
                    description: Exclusive end of the window to list changes from. Omit for the whole history.
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: 'Category of entries to list: ''configuration'' (the default) for changes to the platform''s configuration, or ''security'' for machine access and other security-relevant activity such as workloads admitting themselves.'
                  in: query
                  name: category
                  schema:
                    default: configuration
                    description: 'Category of entries to list: ''configuration'' (the default) for changes to the platform''s configuration, or ''security'' for machine access and other security-relevant activity such as workloads admitting themselves.'
                    enum:
                        - configuration
                        - security
                    type: string
                - allowEmptyValue: true
                  description: 'Who initiated the entries to list: ''user'' for changes initiated by a person, API key, agent or assistant, or ''system'' for changes Speakeasy made on its own, such as background jobs. Omit for both.'
                  in: query
                  name: origin
                  schema:
                    description: 'Who initiated the entries to list: ''user'' for changes initiated by a person, API key, agent or assistant, or ''system'' for changes Speakeasy made on its own, such as background jobs. Omit for both.'
                    enum:
                        - user
                        - system
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListAuditLogsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: list auditlogs
            tags:
                - auditlogs
            x-speakeasy-name-override: list
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: AuditLogs
    /rpc/auditlogs.listFacets:
        get:
            description: List available audit log facet values across organization and projects.
            operationId: listAuditLogFacets
            parameters:
                - allowEmptyValue: true
                  description: Project slug to filter facet values to a specific project.
                  in: query
                  name: project_slug
                  schema:
                    description: Project slug to filter facet values to a specific project.
                    type: string
                - allowEmptyValue: true
                  description: Category of entries to compute facet values from, matching the list being filtered. Defaults to 'configuration'.
                  in: query
                  name: category
                  schema:
                    default: configuration
                    description: Category of entries to compute facet values from, matching the list being filtered. Defaults to 'configuration'.
                    enum:
                        - configuration
                        - security
                    type: string
                - allowEmptyValue: true
                  description: 'Who initiated the entries to compute facet values from, matching the list being filtered: ''user'' for changes initiated by a person, API key, agent or assistant, or ''system'' for changes Speakeasy made on its own, such as background jobs. Omit for both.'
                  in: query
                  name: origin
                  schema:
                    description: 'Who initiated the entries to compute facet values from, matching the list being filtered: ''user'' for changes initiated by a person, API key, agent or assistant, or ''system'' for changes Speakeasy made on its own, such as background jobs. Omit for both.'
                    enum:
                        - user
                        - system
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListAuditLogFacetsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: listFacets auditlogs
            tags:
                - auditlogs
            x-speakeasy-name-override: listFacets
            x-speakeasy-react-hook:
                name: AuditLogFacets
    /rpc/auth.callback:
        get:
            description: Handles the authentication callback.
            operationId: authCallback
            parameters:
                - allowEmptyValue: true
                  description: The auth code for authentication from the speakeasy system
                  in: query
                  name: code
                  schema:
                    description: The auth code for authentication from the speakeasy system
                    type: string
                - allowEmptyValue: true
                  description: The identity provider error, when sign-in was not completed.
                  in: query
                  name: error
                  schema:
                    description: The identity provider error, when sign-in was not completed.
                    type: string
                - allowEmptyValue: true
                  description: The opaque state string optionally provided during initialization.
                  in: query
                  name: state
                  schema:
                    description: The opaque state string optionally provided during initialization.
                    type: string
            responses:
                "307":
                    description: Temporary Redirect response.
                    headers:
                        Gram-Session:
                            description: Session header
                            schema:
                                description: Session header
                                type: string
                        Location:
                            description: The URL to redirect to after authentication
                            schema:
                                description: The URL to redirect to after authentication
                                type: string
                        Set-Cookie:
                            description: The authentication session
                            schema:
                                description: The authentication session
                                type: string
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            summary: callback auth
            tags:
                - auth
            x-speakeasy-name-override: callback
            x-speakeasy-react-hook:
                disabled: true
    /rpc/auth.enterDemo:
        post:
            description: Switches the current session into the shared read-only demo organization.
            operationId: enterDemo
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    description: OK response.
                    headers:
                        Gram-Session:
                            description: Session header
                            schema:
                                description: Session header
                                type: string
                        Set-Cookie:
                            description: The authentication session
                            schema:
                                description: The authentication session
                                type: string
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: enterDemo auth
            tags:
                - auth
            x-speakeasy-name-override: enterDemo
            x-speakeasy-react-hook:
                name: EnterDemo
    /rpc/auth.info:
        get:
            description: Provides information about the current authentication status.
            operationId: sessionInfo
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/InfoResponseBody'
                    description: OK response.
                    headers:
                        Gram-Session:
                            description: Session header
                            schema:
                                description: Session header
                                type: string
                        Set-Cookie:
                            description: The authentication session
                            schema:
                                description: The authentication session
                                type: string
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: info auth
            tags:
                - auth
            x-speakeasy-name-override: info
            x-speakeasy-react-hook:
                name: SessionInfo
    /rpc/auth.login:
        get:
            description: Proxies to auth login through speakeasy oidc.
            operationId: authLogin
            parameters:
                - allowEmptyValue: true
                  description: Optional URL to redirect to after successful authentication
                  in: query
                  name: redirect
                  schema:
                    description: Optional URL to redirect to after successful authentication
                    type: string
                - allowEmptyValue: true
                  description: Optional organization name. When set, the organization is created for a new user during the auth callback.
                  in: query
                  name: org_name
                  schema:
                    description: Optional organization name. When set, the organization is created for a new user during the auth callback.
                    type: string
                - allowEmptyValue: true
                  description: Optional partner signup code.
                  in: query
                  name: partner_code
                  schema:
                    description: Optional partner signup code.
                    maxLength: 80
                    type: string
                - allowEmptyValue: true
                  description: Optional email address. Pre-fills the email field on the identity provider's sign-up screen. Never stored.
                  in: query
                  name: email
                  schema:
                    description: Optional email address. Pre-fills the email field on the identity provider's sign-up screen. Never stored.
                    type: string
                - allowEmptyValue: true
                  description: Opaque, one-time organization support handoff. Never included in OAuth state.
                  in: query
                  name: support_handoff
                  schema:
                    description: Opaque, one-time organization support handoff. Never included in OAuth state.
                    type: string
                - allowEmptyValue: true
                  description: 'Optional sign-up attribution: UTM source.'
                  in: query
                  name: utm_source
                  schema:
                    description: 'Optional sign-up attribution: UTM source.'
                    type: string
                - allowEmptyValue: true
                  description: 'Optional sign-up attribution: UTM medium.'
                  in: query
                  name: utm_medium
                  schema:
                    description: 'Optional sign-up attribution: UTM medium.'
                    type: string
                - allowEmptyValue: true
                  description: 'Optional sign-up attribution: UTM campaign.'
                  in: query
                  name: utm_campaign
                  schema:
                    description: 'Optional sign-up attribution: UTM campaign.'
                    type: string
                - allowEmptyValue: true
                  description: 'Optional sign-up attribution: UTM term.'
                  in: query
                  name: utm_term
                  schema:
                    description: 'Optional sign-up attribution: UTM term.'
                    type: string
                - allowEmptyValue: true
                  description: 'Optional sign-up attribution: UTM content.'
                  in: query
                  name: utm_content
                  schema:
                    description: 'Optional sign-up attribution: UTM content.'
                    type: string
                - allowEmptyValue: true
                  description: 'Optional sign-up attribution: the browser''s product analytics session id.'
                  in: query
                  name: analytics_session_id
                  schema:
                    description: 'Optional sign-up attribution: the browser''s product analytics session id.'
                    type: string
            responses:
                "307":
                    description: Temporary Redirect response.
                    headers:
                        Location:
                            description: The URL to redirect to after authentication
                            schema:
                                description: The URL to redirect to after authentication
                                type: string
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            summary: login auth
            tags:
                - auth
            x-speakeasy-name-override: login
            x-speakeasy-react-hook:
                disabled: true
    /rpc/auth.logout:
        post:
            description: Logs out the current user by clearing their session.
            operationId: logout
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    description: OK response.
                    headers:
                        Set-Cookie:
                            description: Empty string to clear the session
                            schema:
                                description: Empty string to clear the session
                                type: string
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: logout auth
            tags:
                - auth
            x-speakeasy-name-override: logout
            x-speakeasy-react-hook:
                name: Logout
    /rpc/auth.logoutEverywhere:
        post:
            description: 'Signs the caller out everywhere: ends every dashboard and identity provider session, revokes their sign-ins in every organization, and revokes every MCP grant made from them.'
            operationId: logoutEverywhere
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RevokeSignInsResult'
                    description: OK response.
                    headers:
                        Set-Cookie:
                            description: Empty string to clear the session
                            schema:
                                description: Empty string to clear the session
                                type: string
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: logoutEverywhere auth
            tags:
                - auth
            x-speakeasy-name-override: logoutEverywhere
            x-speakeasy-react-hook:
                name: LogoutEverywhere
    /rpc/auth.register:
        post:
            description: Register a new org for a user with their session information.
            operationId: register
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RegisterRequestBody'
                required: true
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: register auth
            tags:
                - auth
            x-speakeasy-name-override: register
            x-speakeasy-react-hook:
                name: Register
    /rpc/auth.switchScopes:
        post:
            description: Switches the authentication scope to a different organization.
            operationId: switchAuthScopes
            parameters:
                - allowEmptyValue: true
                  description: The organization slug to switch scopes
                  in: query
                  name: organization_id
                  schema:
                    description: The organization slug to switch scopes
                    type: string
                - allowEmptyValue: true
                  description: The project id to switch scopes too
                  in: query
                  name: project_id
                  schema:
                    description: The project id to switch scopes too
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    description: OK response.
                    headers:
                        Gram-Session:
                            description: Session header
                            schema:
                                description: Session header
                                type: string
                        Set-Cookie:
                            description: The authentication session
                            schema:
                                description: The authentication session
                                type: string
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: switchScopes auth
            tags:
                - auth
            x-speakeasy-name-override: switchScopes
            x-speakeasy-react-hook:
                name: SwitchScopes
    /rpc/auth.transferIn:
        get:
            description: 'Steps 1/3 and 3/3 of a cross-domain session transfer, on the target platform host. Step 1/3 (start: source_host, no code) sets a short-lived cookie that binds the transfer to this browser and redirects to Step 2/3, transferOut on the source host. Step 3/3 (callback: code, no source_host) redeems the one-time code that transferOut issued, checks it against that cookie, and sets a new session cookie on this host, unless the browser already holds a valid session here for the same user and start mode did not set replace_session; that session is then kept. The cookie exists because a code alone would let anyone who holds one sign another person into the code''s account (login CSRF). A request with both or neither, and any failed check, lands on this host''s login page with a signin_error code; a failed callback never starts a new transfer. See the flow diagram in server/internal/auth/transfer.go.'
            operationId: authTransferIn
            parameters:
                - allowEmptyValue: true
                  description: 'Start mode: the platform host that holds the session to move here (e.g. app.getgram.ai)'
                  in: query
                  name: source_host
                  schema:
                    description: 'Start mode: the platform host that holds the session to move here (e.g. app.getgram.ai)'
                    type: string
                - allowEmptyValue: true
                  description: 'Callback mode: the opaque one-time transfer code from the source host''s transferOut endpoint'
                  in: query
                  name: code
                  schema:
                    description: 'Callback mode: the opaque one-time transfer code from the source host''s transferOut endpoint'
                    type: string
                - allowEmptyValue: true
                  description: Optional URL path to land on once the session is established on this host
                  in: query
                  name: redirect
                  schema:
                    description: Optional URL path to land on once the session is established on this host
                    type: string
                - allowEmptyValue: true
                  description: 'Start mode: replace a session this browser already holds on this host for the same user. Without it, the callback keeps that session and its organization, so a stale source session cannot undo an organization switch made here. Set it right after switching organization on the source host.'
                  in: query
                  name: replace_session
                  schema:
                    description: 'Start mode: replace a session this browser already holds on this host for the same user. Without it, the callback keeps that session and its organization, so a stale source session cannot undo an organization switch made here. Set it right after switching organization on the source host.'
                    type: boolean
            responses:
                "307":
                    description: Temporary Redirect response.
                    headers:
                        Gram-Session:
                            description: Session header
                            schema:
                                description: Session header
                                type: string
                        Location:
                            description: 'The URL to redirect to: the source host''s transferOut (start mode), the requested page (callback mode), or this host''s login page when a check fails'
                            schema:
                                description: 'The URL to redirect to: the source host''s transferOut (start mode), the requested page (callback mode), or this host''s login page when a check fails'
                                type: string
                        Set-Cookie:
                            description: The new authentication session on this host. Set only when callback mode mints one.
                            schema:
                                description: The new authentication session on this host. Set only when callback mode mints one.
                                type: string
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            summary: transferIn auth
            tags:
                - auth
            x-speakeasy-name-override: transferIn
            x-speakeasy-react-hook:
                disabled: true
    /rpc/auth.transferOut:
        get:
            description: Step 2/3 (authorize) of a cross-domain session transfer, on the source platform host. Reached from Step 1/3, transferIn's start mode on the target host; redirects to Step 3/3, transferIn's callback mode there. Authenticates the session from the session cookie or header, checks that its active organization's default host is the target, and stores a one-time transfer code bound to the browser's nonce. Only an ordinary session whose organization lives on the target host can transfer. On any failure the browser is sent to a login page with a signin_error code instead of an error. See the flow diagram in server/internal/auth/transfer.go.
            operationId: authTransferOut
            parameters:
                - allowEmptyValue: true
                  description: The target platform host to transfer the session to (e.g. ai.speakeasy.com)
                  in: query
                  name: target_host
                  schema:
                    description: The target platform host to transfer the session to (e.g. ai.speakeasy.com)
                    type: string
                - allowEmptyValue: true
                  description: The browser binding nonce from the target host's transferIn start mode
                  in: query
                  name: nonce
                  schema:
                    description: The browser binding nonce from the target host's transferIn start mode
                    type: string
                - allowEmptyValue: true
                  description: Optional URL path to redirect to after the transfer completes on the target host
                  in: query
                  name: redirect
                  schema:
                    description: Optional URL path to redirect to after the transfer completes on the target host
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "307":
                    description: Temporary Redirect response.
                    headers:
                        Location:
                            description: 'The URL to redirect to: the target host''s transferIn callback with the transfer code, or a login page when the transfer cannot continue'
                            schema:
                                description: 'The URL to redirect to: the target host''s transferIn callback with the transfer code, or a login page when the transfer cannot continue'
                                type: string
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            summary: transferOut auth
            tags:
                - auth
            x-speakeasy-name-override: transferOut
            x-speakeasy-react-hook:
                disabled: true
    /rpc/authClients.attachToMcpServer:
        post:
            description: 'Offer an existing auth client on another MCP server instead of creating a copy. The client stays one client: changing or rotating it changes upstream behavior on every server that offers it. Offering a client grants nobody permission to use it or access to the server. Takes effect only where typed auth client resolution is enforced. Requires org:admin.'
            operationId: attachAuthClientToMcpServer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/AttachAuthClientToMcpServerRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AuthClient'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: attachAuthClientToMcpServer authClients
            tags:
                - authClients
            x-speakeasy-name-override: attachToMcpServer
            x-speakeasy-react-hook:
                name: AttachAuthClientToMcpServer
    /rpc/authClients.create:
        post:
            description: 'Create an auth client and, optionally, offer it on MCP servers. A remote_session or service_account client authenticates through an existing OAuth registration whose credential owner matches its type; a static_credential or pass_through client authenticates with its own headers. Creating a client gives nobody permission to use it: set its audience to decide who may. Takes effect only where typed auth client resolution is enforced. Requires org:admin.'
            operationId: createAuthClient
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateAuthClientRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AuthClient'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: createAuthClient authClients
            tags:
                - authClients
            x-speakeasy-name-override: create
            x-speakeasy-react-hook:
                name: CreateAuthClient
    /rpc/authClients.deleteIssuanceProfile:
        post:
            description: Delete an issuance profile. Sessions already issued keep their choices; later sessions decide theirs without it. Requires org:admin.
            operationId: deleteIssuanceProfile
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DeleteIssuanceProfileRequestBody'
                required: true
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: deleteIssuanceProfile authClients
            tags:
                - authClients
            x-speakeasy-name-override: deleteIssuanceProfile
            x-speakeasy-react-hook:
                name: DeleteIssuanceProfile
    /rpc/authClients.detachFromMcpServer:
        post:
            description: Stop an MCP server offering an auth client in its typed auth configuration. The client and its other servers are unchanged. Takes effect only where typed auth client resolution is enforced. It revokes no upstream credentials and does not remove the server's existing upstream OAuth association, which keeps serving elsewhere, including in shadow mode. Requires org:admin.
            operationId: detachAuthClientFromMcpServer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DetachAuthClientFromMcpServerRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AuthClient'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: detachAuthClientFromMcpServer authClients
            tags:
                - authClients
            x-speakeasy-name-override: detachFromMcpServer
            x-speakeasy-react-hook:
                name: DetachAuthClientFromMcpServer
    /rpc/authClients.get:
        get:
            description: Get an auth client in the caller's organization. Requires org:read.
            operationId: getAuthClient
            parameters:
                - allowEmptyValue: true
                  description: The auth client id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The auth client id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AuthClient'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: getAuthClient authClients
            tags:
                - authClients
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: AuthClient
    /rpc/authClients.getAudience:
        get:
            description: 'List who may use an auth client: the rules naming it and the broader rules that reach it. Requires org:read.'
            operationId: getAuthClientAudience
            parameters:
                - allowEmptyValue: true
                  description: The auth client id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The auth client id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AuthClientAudience'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: getAuthClientAudience authClients
            tags:
                - authClients
            x-speakeasy-name-override: getAudience
            x-speakeasy-react-hook:
                name: AuthClientAudience
    /rpc/authClients.getMcpServerAuthentication:
        get:
            description: 'Get how an MCP server authenticates to its upstream: whether authentication is required and which auth clients it offers. Requires org:read.'
            operationId: getMcpServerAuthentication
            parameters:
                - allowEmptyValue: true
                  description: The MCP server id.
                  in: query
                  name: mcp_server_id
                  required: true
                  schema:
                    description: The MCP server id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/McpServerAuthentication'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: getMcpServerAuthentication authClients
            tags:
                - authClients
            x-speakeasy-name-override: getMcpServerAuthentication
            x-speakeasy-react-hook:
                name: McpServerAuthentication
    /rpc/authClients.list:
        get:
            description: List the auth clients in the caller's organization. Requires org:read.
            operationId: listAuthClients
            parameters:
                - allowEmptyValue: true
                  description: Only clients offered by this MCP server.
                  in: query
                  name: mcp_server_id
                  schema:
                    description: Only clients offered by this MCP server.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Only clients of this type.
                  in: query
                  name: client_type
                  schema:
                    description: Only clients of this type.
                    enum:
                        - remote_session
                        - service_account
                        - static_credential
                        - pass_through
                        - ema
                    type: string
                - allowEmptyValue: true
                  description: Pagination cursor.
                  in: query
                  name: cursor
                  schema:
                    description: Pagination cursor.
                    type: string
                - allowEmptyValue: true
                  description: Page size.
                  in: query
                  name: limit
                  schema:
                    default: 50
                    description: Page size.
                    format: int64
                    maximum: 100
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListAuthClientsResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: listAuthClients authClients
            tags:
                - authClients
            x-speakeasy-name-override: list
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: AuthClients
    /rpc/authClients.listIssuanceProfiles:
        get:
            description: List the issuance profiles for headless callers signing in through a sign-in. Requires org:read.
            operationId: listIssuanceProfiles
            parameters:
                - allowEmptyValue: true
                  description: The sign-in.
                  in: query
                  name: user_session_issuer_id
                  required: true
                  schema:
                    description: The sign-in.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListIssuanceProfilesResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: listIssuanceProfiles authClients
            tags:
                - authClients
            x-speakeasy-name-override: listIssuanceProfiles
            x-speakeasy-react-hook:
                name: IssuanceProfiles
    /rpc/authClients.listMcpServerChoices:
        get:
            description: List the shared upstream credentials an MCP server offers that a credential of the caller's, such as an agent key, can be set up to use. Requires access to connect to the server. Returns each choice's id, name and client_type, and whether the upstream requires authentication; no headers or credentials.
            operationId: listMcpServerAuthClientChoices
            parameters:
                - allowEmptyValue: true
                  description: The MCP server id.
                  in: query
                  name: mcp_server_id
                  required: true
                  schema:
                    description: The MCP server id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListMcpServerAuthClientChoicesResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: listMcpServerAuthClientChoices authClients
            tags:
                - authClients
            x-speakeasy-name-override: listMcpServerChoices
            x-speakeasy-react-hook:
                name: McpServerAuthClientChoices
    /rpc/authClients.setAudience:
        post:
            description: Replace the rules naming an auth client. Use grants mcp:auth on the client and Blocked writes mcp:blocked_auth; both apply on every server that offers the client. Server access is unchanged and still needs mcp:connect. Administering a client gives nobody permission to use it. Requires org:admin.
            operationId: setAuthClientAudience
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetAuthClientAudienceRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AuthClientAudience'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: setAuthClientAudience authClients
            tags:
                - authClients
            x-speakeasy-name-override: setAudience
            x-speakeasy-react-hook:
                name: SetAuthClientAudience
    /rpc/authClients.setHeaders:
        post:
            description: Replace the headers an auth client sends upstream. Rotating a shared client's credential changes upstream behavior on every server that offers it. Token-generating clients produce their own Authorization header, which cannot be configured. Clients created from a server's existing settings follow those settings and are edited there. Takes effect only where typed auth client resolution is enforced. Requires org:admin.
            operationId: setAuthClientHeaders
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetAuthClientHeadersRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AuthClient'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: setAuthClientHeaders authClients
            tags:
                - authClients
            x-speakeasy-name-override: setHeaders
            x-speakeasy-react-hook:
                name: SetAuthClientHeaders
    /rpc/authClients.setIssuanceProfile:
        post:
            description: 'Create or replace the issuance profile of one headless caller signing in through a sign-in: an OAuth client, or a workload issuer and subject. Each choice names a credential the server offers, or none for a server that needs no upstream authentication. A workload subject represents no person, so its profile names shared credentials only. Choices take effect on sessions issued afterwards; existing sessions keep theirs. Choosing a credential grants nothing: each issuance checks the caller may use it. Takes effect only where typed auth client resolution is enforced. Requires org:admin.'
            operationId: setIssuanceProfile
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetIssuanceProfileRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/IssuanceProfile'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: setIssuanceProfile authClients
            tags:
                - authClients
            x-speakeasy-name-override: setIssuanceProfile
            x-speakeasy-react-hook:
                name: SetIssuanceProfile
    /rpc/authClients.setMcpServerUpstreamAuthRequirement:
        post:
            deprecated: true
            description: |-
                Return how an MCP server authenticates to its upstream. The requested requirement is ignored: whether the upstream needs authentication follows from the enabled auth clients the server offers. Not available for hosted toolsets. Requires org:admin.

                Deprecated: read getMcpServerAuthentication, and attach, detach, enable or disable auth clients instead.
            operationId: setMcpServerUpstreamAuthRequirement
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetMcpServerUpstreamAuthRequirementRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/McpServerAuthentication'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: setMcpServerUpstreamAuthRequirement authClients
            tags:
                - authClients
            x-speakeasy-name-override: setMcpServerUpstreamAuthRequirement
            x-speakeasy-react-hook:
                name: SetMcpServerUpstreamAuthRequirement
    /rpc/authClients.update:
        post:
            description: Rename, enable or disable an auth client. The change applies to the typed auth configuration of every MCP server that offers the client and takes effect only where typed auth client resolution is enforced. It revokes no upstream credentials; elsewhere, including in shadow mode, an MCP server's existing upstream configuration keeps serving. Requires org:admin.
            operationId: updateAuthClient
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateAuthClientRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AuthClient'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: updateAuthClient authClients
            tags:
                - authClients
            x-speakeasy-name-override: update
            x-speakeasy-react-hook:
                name: UpdateAuthClient
    /rpc/businessMemories.contentScopes:
        get:
            description: List the complete content-scope tree and distinct-memory counts for the active project. Requires organization admin.
            operationId: listBusinessMemoryContentScopes
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListBusinessMemoryContentScopesResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listBusinessMemoryContentScopes businessMemories
            tags:
                - businessMemories
            x-speakeasy-name-override: listContentScopes
            x-speakeasy-react-hook:
                name: ListBusinessMemoryContentScopes
    /rpc/businessMemories.list:
        get:
            description: List memories extracted for the active project. Requires organization admin.
            operationId: listBusinessMemories
            parameters:
                - allowEmptyValue: true
                  description: Cursor for the next result page.
                  in: query
                  name: cursor
                  schema:
                    description: Cursor for the next result page.
                    type: string
                - allowEmptyValue: true
                  description: Exact content-scope tag to match.
                  in: query
                  name: content_scope
                  schema:
                    description: Exact content-scope tag to match.
                    pattern: ^[a-z0-9][a-z0-9:_-]{0,127}$
                    type: string
                - allowEmptyValue: true
                  description: Content-scope namespace to match.
                  in: query
                  name: content_scope_namespace
                  schema:
                    description: Content-scope namespace to match.
                    pattern: ^[a-z0-9][a-z0-9_-]{0,127}$
                    type: string
                - allowEmptyValue: true
                  description: Number of memories to return.
                  in: query
                  name: limit
                  schema:
                    default: 50
                    description: Number of memories to return.
                    format: int64
                    maximum: 200
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListBusinessMemoriesResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listBusinessMemories businessMemories
            tags:
                - businessMemories
            x-speakeasy-name-override: list
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: ListBusinessMemories
    /rpc/businessMemories.search:
        post:
            description: Run semantic search over active memories in the active project. Requires organization admin.
            operationId: searchBusinessMemories
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SearchBusinessMemoriesRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SearchBusinessMemoriesResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: searchBusinessMemories businessMemories
            tags:
                - businessMemories
            x-speakeasy-name-override: search
            x-speakeasy-react-hook:
                name: SearchBusinessMemories
    /rpc/chat.countByUser:
        get:
            description: Count agent sessions per user for a time range. Uses the same population and visibility scoping as listChats, so each user's count matches listChats filtered to that user and the total matches the unfiltered listChats total.
            operationId: countChatsByUser
            parameters:
                - allowEmptyValue: true
                  description: Count chats last active after this timestamp (ISO 8601)
                  in: query
                  name: from
                  schema:
                    description: Count chats last active after this timestamp (ISO 8601)
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: Count chats created before this timestamp (ISO 8601)
                  in: query
                  name: to
                  schema:
                    description: Count chats created before this timestamp (ISO 8601)
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: Maximum number of users to return
                  in: query
                  name: limit
                  schema:
                    default: 10
                    description: Maximum number of users to return
                    format: int64
                    maximum: 100
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
                - allowEmptyValue: true
                  description: Chat Sessions token header
                  in: header
                  name: Gram-Chat-Session
                  schema:
                    description: Chat Sessions token header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CountChatsByUserResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - chat_sessions_token_header_Gram-Chat-Session: []
            summary: countByUser chat
            tags:
                - chat
            x-speakeasy-name-override: countByUser
            x-speakeasy-react-hook:
                name: CountChatsByUser
                type: query
    /rpc/chat.creditUsage:
        get:
            description: Get the total number of chat credits and usage for the current billing period
            operationId: creditUsage
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CreditUsageResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: creditUsage chat
            tags:
                - chat
            x-speakeasy-name-override: creditUsage
            x-speakeasy-react-hook:
                name: GetCreditUsage
    /rpc/chat.delete:
        delete:
            description: Soft-delete a chat by its ID
            operationId: deleteChat
            parameters:
                - allowEmptyValue: true
                  description: The ID of the chat to delete
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the chat to delete
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: deleteChat chat
            tags:
                - chat
            x-speakeasy-name-override: delete
    /rpc/chat.generateTitle:
        post:
            description: Read or set a chat's title. Omit `title` to return the current/auto-generated title (titles are generated asynchronously after a completion). Provide `title` to set a manual title that auto-generation will never overwrite; provide an empty `title` to clear the manual title and re-enable auto-generation.
            operationId: generateTitle
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
                - allowEmptyValue: true
                  description: Chat Sessions token header
                  in: header
                  name: Gram-Chat-Session
                  schema:
                    description: Chat Sessions token header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GenerateTitleRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GenerateTitleResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - chat_sessions_token_header_Gram-Chat-Session: []
            summary: generateTitle chat
            tags:
                - chat
            x-speakeasy-name-override: generateTitle
    /rpc/chat.getAssistantSessionSummary:
        get:
            description: Get assistant session activity totals for a time range.
            operationId: getAssistantSessionSummary
            parameters:
                - allowEmptyValue: true
                  description: The assistant whose activity to summarize
                  in: query
                  name: assistant_id
                  required: true
                  schema:
                    description: The assistant whose activity to summarize
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Start of the activity range (ISO 8601)
                  in: query
                  name: from
                  required: true
                  schema:
                    description: Start of the activity range (ISO 8601)
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: End of the activity range (ISO 8601)
                  in: query
                  name: to
                  required: true
                  schema:
                    description: End of the activity range (ISO 8601)
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AssistantSessionSummary'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getAssistantSessionSummary chat
            tags:
                - chat
            x-speakeasy-name-override: getAssistantSessionSummary
            x-speakeasy-react-hook:
                name: AssistantSessionSummary
                type: query
    /rpc/chat.getWorkUnitsTrend:
        get:
            description: 'Aggregate work-units analysis results over time for the project: work done and cost/token efficiency per UTC day.'
            operationId: getWorkUnitsTrend
            parameters:
                - allowEmptyValue: true
                  description: Start of the window (ISO 8601). Defaults to 30 days before `to`.
                  in: query
                  name: from
                  schema:
                    description: Start of the window (ISO 8601). Defaults to 30 days before `to`.
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: End of the window (ISO 8601). Defaults to now.
                  in: query
                  name: to
                  schema:
                    description: End of the window (ISO 8601). Defaults to now.
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/WorkUnitsTrendResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getWorkUnitsTrend chat
            tags:
                - chat
            x-speakeasy-name-override: getWorkUnitsTrend
            x-speakeasy-react-hook:
                name: WorkUnitsTrend
                type: query
    /rpc/chat.list:
        get:
            description: List all chats for a project
            operationId: listChats
            parameters:
                - allowEmptyValue: true
                  description: Search query (searches chat ID, user ID, user name, and title)
                  in: query
                  name: search
                  schema:
                    description: Search query (searches chat ID, user ID, user name, and title)
                    type: string
                - allowEmptyValue: true
                  description: Filter by external user ID
                  in: query
                  name: external_user_id
                  schema:
                    description: Filter by external user ID
                    type: string
                - allowEmptyValue: true
                  description: Filter by Speakeasy user ID
                  in: query
                  name: user_id
                  schema:
                    description: Filter by Speakeasy user ID
                    type: string
                - allowEmptyValue: true
                  description: Filter by agent source. Comma-separated list of exact source values (e.g. 'claude-code,Codex,playground') matched against each session's inferred source; empty for no filter. Use chat.listSources to discover the available values.
                  in: query
                  name: source
                  schema:
                    description: Filter by agent source. Comma-separated list of exact source values (e.g. 'claude-code,Codex,playground') matched against each session's inferred source; empty for no filter. Use chat.listSources to discover the available values.
                    type: string
                - allowEmptyValue: true
                  description: Filter to chats produced by this assistant
                  in: query
                  name: assistant_id
                  schema:
                    description: Filter to chats produced by this assistant
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Filter to chats produced by this agent (the agent principal recorded on the session at capture)
                  in: query
                  name: agent_id
                  schema:
                    description: Filter to chats produced by this agent (the agent principal recorded on the session at capture)
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: When set with assistant_id, list only that assistant's threads whose source_kind matches this value (e.g. 'setup' for onboarding threads). Empty for no filter.
                  in: query
                  name: source_kind
                  schema:
                    description: When set with assistant_id, list only that assistant's threads whose source_kind matches this value (e.g. 'setup' for onboarding threads). Empty for no filter.
                    type: string
                - allowEmptyValue: true
                  description: When set with assistant_id, exclude that assistant's threads whose source_kind matches this value (e.g. 'setup' to hide onboarding threads from runtime views). Empty for no filter.
                  in: query
                  name: exclude_source_kind
                  schema:
                    description: When set with assistant_id, exclude that assistant's threads whose source_kind matches this value (e.g. 'setup' to hide onboarding threads from runtime views). Empty for no filter.
                    type: string
                - allowEmptyValue: true
                  description: 'Filter by whether chat has risk findings: ''true'', ''false'', or empty for no filter.'
                  in: query
                  name: has_risk
                  schema:
                    description: 'Filter by whether chat has risk findings: ''true'', ''false'', or empty for no filter.'
                    enum:
                        - ""
                        - "true"
                        - "false"
                    type: string
                - allowEmptyValue: true
                  description: 'Filter by AI account type: ''team'', ''personal'', or empty for no filter.'
                  in: query
                  name: account_type
                  schema:
                    description: 'Filter by AI account type: ''team'', ''personal'', or empty for no filter.'
                    enum:
                        - ""
                        - team
                        - personal
                    type: string
                - allowEmptyValue: true
                  description: 'Filter by pinned state: ''true'' for pinned chats, ''false'' for unpinned, or empty for no filter.'
                  in: query
                  name: pinned
                  schema:
                    description: 'Filter by pinned state: ''true'' for pinned chats, ''false'' for unpinned, or empty for no filter.'
                    enum:
                        - ""
                        - "true"
                        - "false"
                    type: string
                - allowEmptyValue: true
                  description: Filter to chats with at least this many active risk findings (inclusive). Omit or pass 0 for no threshold.
                  in: query
                  name: min_risk_score
                  schema:
                    description: Filter to chats with at least this many active risk findings (inclusive). Omit or pass 0 for no threshold.
                    format: int64
                    minimum: 0
                    type: integer
                - allowEmptyValue: true
                  description: Filter chats last active after this timestamp (ISO 8601)
                  in: query
                  name: from
                  schema:
                    description: Filter chats last active after this timestamp (ISO 8601)
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: Filter chats last active before this timestamp (ISO 8601)
                  in: query
                  name: to
                  schema:
                    description: Filter chats last active before this timestamp (ISO 8601)
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: Number of results per page
                  in: query
                  name: limit
                  schema:
                    default: 50
                    description: Number of results per page
                    format: int64
                    maximum: 100
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Pagination offset
                  in: query
                  name: offset
                  schema:
                    default: 0
                    description: Pagination offset
                    format: int64
                    minimum: 0
                    type: integer
                - allowEmptyValue: true
                  description: Field to sort by
                  in: query
                  name: sort_by
                  schema:
                    default: last_message_timestamp
                    description: Field to sort by
                    enum:
                        - last_message_timestamp
                        - num_messages
                    type: string
                - allowEmptyValue: true
                  description: Sort order
                  in: query
                  name: sort_order
                  schema:
                    default: desc
                    description: Sort order
                    enum:
                        - asc
                        - desc
                    type: string
                - allowEmptyValue: true
                  description: List pinned chats before unpinned ones, then apply sort_by and sort_order within each group
                  in: query
                  name: pinned_first
                  schema:
                    default: false
                    description: List pinned chats before unpinned ones, then apply sort_by and sort_order within each group
                    type: boolean
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
                - allowEmptyValue: true
                  description: Chat Sessions token header
                  in: header
                  name: Gram-Chat-Session
                  schema:
                    description: Chat Sessions token header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListChatsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - chat_sessions_token_header_Gram-Chat-Session: []
            summary: listChats chat
            tags:
                - chat
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: ListChats
                type: query
    /rpc/chat.listSessionLinks:
        get:
            description: List session-lineage links touching the given chats (session portability). A link records that a session was moved to another harness; the child side is present when the continuation's session id was known at move time. Returns every link where a requested chat is either the parent or the child, honoring the same visibility scoping as listChats.
            operationId: listChatSessionLinks
            parameters:
                - allowEmptyValue: true
                  description: Chat ids to resolve links for.
                  in: query
                  name: chat_ids
                  required: true
                  schema:
                    description: Chat ids to resolve links for.
                    items:
                        format: uuid
                        type: string
                    maxItems: 100
                    minItems: 1
                    type: array
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
                - allowEmptyValue: true
                  description: Chat Sessions token header
                  in: header
                  name: Gram-Chat-Session
                  schema:
                    description: Chat Sessions token header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListSessionLinksResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - chat_sessions_token_header_Gram-Chat-Session: []
            summary: listSessionLinks chat
            tags:
                - chat
            x-speakeasy-name-override: listSessionLinks
            x-speakeasy-react-hook:
                name: ListChatSessionLinks
                type: query
    /rpc/chat.listSources:
        get:
            description: List the distinct agent sources present in this project's chats, for populating the agent-type filter on the Agent Sessions page.
            operationId: listChatSources
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
                - allowEmptyValue: true
                  description: Chat Sessions token header
                  in: header
                  name: Gram-Chat-Session
                  schema:
                    description: Chat Sessions token header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListSourcesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - chat_sessions_token_header_Gram-Chat-Session: []
            summary: listSources chat
            tags:
                - chat
            x-speakeasy-name-override: listSources
            x-speakeasy-react-hook:
                name: ListChatSources
                type: query
    /rpc/chat.load:
        get:
            description: 'Load a chat by its ID. Messages within a generation are paginated by `seq` keyset: omit cursors to receive the newest page, pass `before_seq` to load older messages (scroll up) or `after_seq` to load newer ones (scroll down). Set `from_start` to receive the oldest page (the start of the thread) instead of the newest. Omit `generation` to receive the latest generation. Set `risk_only` to return only messages with risk findings plus a few messages of surrounding context per finding. Set `query` to instead return only messages whose text matches a search query plus surrounding context (mutually exclusive with `risk_only`).'
            operationId: loadChat
            parameters:
                - allowEmptyValue: true
                  description: The ID of the chat
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the chat
                    type: string
                - allowEmptyValue: true
                  description: 'Generation to load. A generation is an immutable snapshot of the chat transcript: a new one is opened whenever the conversation is compacted or an earlier message is edited, while normal turns append to the current generation. Generations are numbered from 0 (oldest) up to `max_generation` (latest). Omit this attribute to receive the latest generation, or page through history by walking from `max_generation` down to 0.'
                  in: query
                  name: generation
                  schema:
                    description: 'Generation to load. A generation is an immutable snapshot of the chat transcript: a new one is opened whenever the conversation is compacted or an earlier message is edited, while normal turns append to the current generation. Generations are numbered from 0 (oldest) up to `max_generation` (latest). Omit this attribute to receive the latest generation, or page through history by walking from `max_generation` down to 0.'
                    format: int64
                    minimum: 0
                    type: integer
                - allowEmptyValue: true
                  description: Maximum number of messages to return for this page.
                  in: query
                  name: limit
                  schema:
                    default: 50
                    description: Maximum number of messages to return for this page.
                    format: int64
                    maximum: 200
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: 'Keyset cursor: return the page of messages with `seq` strictly less than this value (older messages). The returned `messages` are always ordered oldest to newest by `seq`, like every other response. Use the `seq` of the oldest message you currently hold to load the previous page. Ignored when `risk_only` is set. Mutually exclusive with `after_seq`; if both are supplied, `after_seq` takes precedence.'
                  in: query
                  name: before_seq
                  schema:
                    description: 'Keyset cursor: return the page of messages with `seq` strictly less than this value (older messages). The returned `messages` are always ordered oldest to newest by `seq`, like every other response. Use the `seq` of the oldest message you currently hold to load the previous page. Ignored when `risk_only` is set. Mutually exclusive with `after_seq`; if both are supplied, `after_seq` takes precedence.'
                    format: int64
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: 'Keyset cursor: return the page of messages with `seq` strictly greater than this value (newer messages). The returned `messages` are always ordered oldest to newest by `seq`. Use the `seq` of the newest message you currently hold to load the next page. Ignored when `risk_only` is set. Mutually exclusive with `before_seq`; if both are supplied, `after_seq` takes precedence.'
                  in: query
                  name: after_seq
                  schema:
                    description: 'Keyset cursor: return the page of messages with `seq` strictly greater than this value (newer messages). The returned `messages` are always ordered oldest to newest by `seq`. Use the `seq` of the newest message you currently hold to load the next page. Ignored when `risk_only` is set. Mutually exclusive with `before_seq`; if both are supplied, `after_seq` takes precedence.'
                    format: int64
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: When true, return the oldest page of the generation (the start of the thread), ordered oldest to newest, with `has_more_before=false`. Page forward from there with `after_seq`. Ignored when `before_seq`, `after_seq`, or `risk_only` is set.
                  in: query
                  name: from_start
                  schema:
                    default: false
                    description: When true, return the oldest page of the generation (the start of the thread), ordered oldest to newest, with `has_more_before=false`. Page forward from there with `after_seq`. Ignored when `before_seq`, `after_seq`, or `risk_only` is set.
                    type: boolean
                - allowEmptyValue: true
                  description: 'When true, return only messages that have active risk findings, each padded with a fixed window of surrounding messages, grouped into contiguous segments (see `risk_segments`). The flagged messages themselves are marked with `is_risk` on each `ChatMessage` (surrounding context is `is_risk: false`). Cursors are ignored in this mode; expand a segment with a follow-up `before_seq`/`after_seq` request. Mutually exclusive with `query`.'
                  in: query
                  name: risk_only
                  schema:
                    default: false
                    description: 'When true, return only messages that have active risk findings, each padded with a fixed window of surrounding messages, grouped into contiguous segments (see `risk_segments`). The flagged messages themselves are marked with `is_risk` on each `ChatMessage` (surrounding context is `is_risk: false`). Cursors are ignored in this mode; expand a segment with a follow-up `before_seq`/`after_seq` request. Mutually exclusive with `query`.'
                    type: boolean
                - allowEmptyValue: true
                  description: When set (and `risk_only` is false), return only messages whose text matches this query (case-insensitive substring over message text, tool names/arguments, and structured content), each padded with a fixed window of surrounding messages, grouped into contiguous segments (see `match_segments`). Cursors are ignored on the initial request; expand a segment with a follow-up `before_seq`/`after_seq` request. Mutually exclusive with `risk_only`.
                  in: query
                  name: query
                  schema:
                    description: When set (and `risk_only` is false), return only messages whose text matches this query (case-insensitive substring over message text, tool names/arguments, and structured content), each padded with a fixed window of surrounding messages, grouped into contiguous segments (see `match_segments`). Cursors are ignored on the initial request; expand a segment with a follow-up `before_seq`/`after_seq` request. Mutually exclusive with `risk_only`.
                    maxLength: 200
                    minLength: 1
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
                - allowEmptyValue: true
                  description: Chat Sessions token header
                  in: header
                  name: Gram-Chat-Session
                  schema:
                    description: Chat Sessions token header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Chat'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - chat_sessions_token_header_Gram-Chat-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: loadChat chat
            tags:
                - chat
            x-speakeasy-name-override: load
            x-speakeasy-react-hook:
                name: LoadChat
    /rpc/chat.loadOverview:
        get:
            description: Load authorized chat overview metadata by exact ID without reading messages or recording a transcript-open audit event.
            operationId: loadChatOverview
            parameters:
                - allowEmptyValue: true
                  description: The ID of the chat
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the chat
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
                - allowEmptyValue: true
                  description: Chat Sessions token header
                  in: header
                  name: Gram-Chat-Session
                  schema:
                    description: Chat Sessions token header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ChatOverview'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - chat_sessions_token_header_Gram-Chat-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: loadChatOverview chat
            tags:
                - chat
            x-speakeasy-name-override: loadOverview
            x-speakeasy-react-hook:
                name: LoadChatOverview
                type: query
    /rpc/chat.setPinned:
        post:
            description: Pin or unpin a chat. Pinned chats surface in a dedicated section above recents on the chat page.
            operationId: setChatPinned
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetPinnedRequestBody'
                required: true
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: setPinned chat
            tags:
                - chat
            x-speakeasy-name-override: setPinned
    /rpc/chat.submitFeedback:
        post:
            description: Submit user feedback for a chat (success/failure)
            operationId: submitFeedback
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
                - allowEmptyValue: true
                  description: Chat Sessions token header
                  in: header
                  name: Gram-Chat-Session
                  schema:
                    description: Chat Sessions token header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SubmitFeedbackRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaptureEventResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - chat_sessions_token_header_Gram-Chat-Session: []
            summary: submitFeedback chat
            tags:
                - chat
            x-speakeasy-name-override: submitFeedback
    /rpc/chat.summarize:
        post:
            description: Generate or return a persisted LLM summary of a chat session transcript. When a summary already exists and regenerate is false, returns the cached summary without calling the model.
            operationId: summarizeChat
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SummarizeRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SummarizeChatResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: summarize chat
            tags:
                - chat
            x-speakeasy-name-override: summarize
            x-speakeasy-react-hook:
                name: SummarizeChat
    /rpc/chat.summarizeToolCall:
        post:
            description: Generate or return a persisted two-sentence summary of one tool call. Concurrent requests share the same cached result.
            operationId: summarizeToolCall
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SummarizeToolCallRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SummarizeToolCallResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: summarizeToolCall chat
            tags:
                - chat
            x-speakeasy-name-override: summarizeToolCall
            x-speakeasy-react-hook:
                name: SummarizeToolCall
    /rpc/chatSessions.create:
        post:
            description: Creates a new chat session token
            operationId: createChatSession
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CreateResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: create chatSessions
            tags:
                - chatSessions
            x-speakeasy-name-override: create
    /rpc/chatSessions.revoke:
        delete:
            description: Revokes an existing chat session token
            operationId: revokeChatSession
            parameters:
                - allowEmptyValue: true
                  description: The chat session token to revoke
                  in: query
                  name: token
                  required: true
                  schema:
                    description: The chat session token to revoke
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: revoke chatSessions
            tags:
                - chatSessions
            x-speakeasy-name-override: revoke
    /rpc/cliAuth.authorize:
        post:
            description: Mint a short-lived one-time code bound to a PKCE code_challenge, on behalf of the authenticated dashboard user. Resolves the target project (given slug, else the org's default/first project) and records {user, org, project, key scope, challenge} against the code with a ~5 minute TTL. A producer key scope requires org:admin. Requires membership in the active organization. Refused (403) while impersonating an organization or user, or without membership in the active org.
            operationId: cliAuthAuthorize
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/AuthorizeRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AuthorizeResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: authorize cliAuth
            tags:
                - cliAuth
            x-speakeasy-name-override: authorize
    /rpc/cliAuth.redeem:
        post:
            description: 'Exchange a one-time code plus its PKCE code_verifier for a freshly minted API key of the scope requested at authorize. No session or API-key auth: proving knowledge of the code_verifier that matches the stored challenge IS the credential. The code is single-use — consumed atomically on lookup — so any missing/expired/already-consumed code or PKCE mismatch returns 401. The raw key is returned exactly once and never again.'
            operationId: cliAuthRedeem
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RedeemRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RedeemResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            summary: redeem cliAuth
            tags:
                - cliAuth
            x-speakeasy-name-override: redeem
    /rpc/dashboards.addWidget:
        post:
            description: Place a saved widget on a dashboard, as a new card at the bottom, sized for its chart type.
            operationId: addDashboardWidget
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/AddDashboardWidgetRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Dashboard'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: addDashboardWidget dashboards
            tags:
                - dashboards
            x-speakeasy-name-override: addWidget
            x-speakeasy-react-hook:
                name: AddDashboardWidget
    /rpc/dashboards.create:
        post:
            description: Make an empty dashboard. Any member of the project can.
            operationId: createDashboard
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateDashboardRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Dashboard'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: createDashboard dashboards
            tags:
                - dashboards
            x-speakeasy-name-override: create
            x-speakeasy-react-hook:
                name: CreateDashboard
    /rpc/dashboards.delete:
        delete:
            description: Delete a dashboard and its cards. Its widgets stay saved. Its creator can; deleting someone else's needs project write access.
            operationId: deleteDashboard
            parameters:
                - allowEmptyValue: true
                  description: The dashboard to delete
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The dashboard to delete
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: deleteDashboard dashboards
            tags:
                - dashboards
            x-speakeasy-name-override: delete
            x-speakeasy-react-hook:
                name: DeleteDashboard
    /rpc/dashboards.duplicate:
        post:
            description: Copy a dashboard into a new one the caller owns, named "<name> (copy)". Every card's widget is copied into a new saved widget too, named the same way, so the copy is fully independent of the original. Like every widget save, each copy is validated, so a dashboard with a broken widget cannot be duplicated until the widget is fixed.
            operationId: duplicateDashboard
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DuplicateDashboardRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Dashboard'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: duplicateDashboard dashboards
            tags:
                - dashboards
            x-speakeasy-name-override: duplicate
            x-speakeasy-react-hook:
                name: DuplicateDashboard
    /rpc/dashboards.duplicateBuiltIn:
        post:
            description: Copy a Speakeasy-built dashboard into a new one the caller owns, named "<name> (copy)", with a new saved widget per card, named the same way. The copy is a project dashboard like any other and can be changed; the built-in stays as it is.
            operationId: duplicateBuiltInDashboard
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DuplicateBuiltInDashboardRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Dashboard'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: duplicateBuiltInDashboard dashboards
            tags:
                - dashboards
            x-speakeasy-name-override: duplicateBuiltIn
            x-speakeasy-react-hook:
                name: DuplicateBuiltInDashboard
    /rpc/dashboards.get:
        get:
            description: Get one dashboard by id, with its cards and saved filters.
            operationId: getDashboard
            parameters:
                - allowEmptyValue: true
                  description: The dashboard to get
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The dashboard to get
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Dashboard'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getDashboard dashboards
            tags:
                - dashboards
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: Dashboard
                type: query
    /rpc/dashboards.list:
        get:
            description: List the project's dashboards, most recently updated first, each with its cards.
            operationId: listDashboards
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListDashboardsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listDashboards dashboards
            tags:
                - dashboards
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: Dashboards
                type: query
    /rpc/dashboards.removeWidget:
        post:
            description: Take a card off a dashboard. The widget itself stays saved.
            operationId: removeDashboardWidget
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RemoveDashboardWidgetRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Dashboard'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: removeDashboardWidget dashboards
            tags:
                - dashboards
            x-speakeasy-name-override: removeWidget
            x-speakeasy-react-hook:
                name: RemoveDashboardWidget
    /rpc/dashboards.saveFilters:
        post:
            description: Store the date range and filter values a dashboard opens on, for everyone. Until saved, changes in the filter bar are the viewer's own.
            operationId: saveDashboardFilters
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SaveDashboardFiltersRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Dashboard'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: saveDashboardFilters dashboards
            tags:
                - dashboards
            x-speakeasy-name-override: saveFilters
            x-speakeasy-react-hook:
                name: SaveDashboardFilters
    /rpc/dashboards.saveLayout:
        post:
            description: Move and resize a dashboard's cards. Each card names an existing placement and where it now sits; cards not listed stay as they are, so a layout saved from an older view cannot take off a card someone has just added. A card is added with addWidget and taken off with removeWidget. The grid is 12 columns wide, and each chart type has a minimum size. Layout autosaves, so the last save wins.
            operationId: saveDashboardLayout
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SaveDashboardLayoutRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Dashboard'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: saveDashboardLayout dashboards
            tags:
                - dashboards
            x-speakeasy-name-override: saveLayout
            x-speakeasy-react-hook:
                name: SaveDashboardLayout
    /rpc/dashboards.update:
        post:
            description: Rename a dashboard or change its description. Its creator can; editing someone else's needs project write access.
            operationId: updateDashboard
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateDashboardRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Dashboard'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: updateDashboard dashboards
            tags:
                - dashboards
            x-speakeasy-name-override: update
            x-speakeasy-react-hook:
                name: UpdateDashboard
    /rpc/dataExports.createDestination:
        post:
            description: Create a data export destination in the selected project.
            operationId: createDataExportDestination
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateDestinationForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Destination'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: createDestination dataExports
            tags:
                - dataExports
            x-speakeasy-name-override: createDestination
            x-speakeasy-react-hook:
                name: CreateDataExportDestination
    /rpc/dataExports.createRoute:
        post:
            description: Create the selected data source's export route configuration.
            operationId: createDataExportRoute
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateDataExportRouteForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DataExportRoute'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: createRoute dataExports
            tags:
                - dataExports
            x-speakeasy-name-override: createRoute
            x-speakeasy-react-hook:
                name: CreateDataExportRoute
    /rpc/dataExports.deleteDestination:
        delete:
            description: Delete a data export destination that is not referenced by an active route.
            operationId: deleteDataExportDestination
            parameters:
                - allowEmptyValue: true
                  description: Destination ID.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: Destination ID.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Destination transport type.
                  in: query
                  name: destination_type
                  required: true
                  schema:
                    description: Destination transport type.
                    enum:
                        - otel
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: deleteDestination dataExports
            tags:
                - dataExports
            x-speakeasy-name-override: deleteDestination
            x-speakeasy-react-hook:
                name: DeleteDataExportDestination
    /rpc/dataExports.deleteRoute:
        delete:
            description: Delete a data source's export route configuration.
            operationId: deleteDataExportRoute
            parameters:
                - allowEmptyValue: true
                  description: Route ID.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: Route ID.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: deleteRoute dataExports
            tags:
                - dataExports
            x-speakeasy-name-override: deleteRoute
            x-speakeasy-react-hook:
                name: DeleteDataExportRoute
    /rpc/dataExports.listDestinations:
        get:
            description: List data export destinations for the selected project.
            operationId: listDataExportDestinations
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListDestinationsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listDestinations dataExports
            tags:
                - dataExports
            x-speakeasy-name-override: listDestinations
            x-speakeasy-react-hook:
                name: DataExportDestinations
    /rpc/dataExports.listForOrg:
        get:
            description: List data export destinations and routes across the active organization.
            operationId: listDataExportsForOrg
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListDataExportsForOrgResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listForOrg dataExports
            tags:
                - dataExports
            x-speakeasy-name-override: listForOrg
            x-speakeasy-react-hook:
                name: ListDataExportsForOrg
    /rpc/dataExports.listRoutes:
        get:
            description: List data source export route configurations for the selected project.
            operationId: listDataExportRoutes
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListDataExportRoutesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listRoutes dataExports
            tags:
                - dataExports
            x-speakeasy-name-override: listRoutes
            x-speakeasy-react-hook:
                name: DataExportRoutes
    /rpc/dataExports.updateDestination:
        post:
            description: Replace a data export destination in the selected project.
            operationId: updateDataExportDestination
            parameters:
                - allowEmptyValue: true
                  description: Destination ID.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: Destination ID.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateDestinationRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Destination'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: updateDestination dataExports
            tags:
                - dataExports
            x-speakeasy-name-override: updateDestination
            x-speakeasy-react-hook:
                name: UpdateDataExportDestination
    /rpc/dataExports.updateRoute:
        post:
            description: Replace the selected data source's export route configuration.
            operationId: updateDataExportRoute
            parameters:
                - allowEmptyValue: true
                  description: Route ID.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: Route ID.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateRouteRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DataExportRoute'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: updateRoute dataExports
            tags:
                - dataExports
            x-speakeasy-name-override: updateRoute
            x-speakeasy-react-hook:
                name: UpdateDataExportRoute
    /rpc/deployments.active:
        get:
            description: Get the active deployment for a project.
            operationId: getActiveDeployment
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetActiveDeploymentResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getActiveDeployment deployments
            tags:
                - deployments
            x-speakeasy-name-override: active
            x-speakeasy-react-hook:
                name: ActiveDeployment
    /rpc/deployments.create:
        post:
            description: Create a deployment to load tool definitions.
            operationId: createDeployment
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
                - allowEmptyValue: true
                  description: A unique identifier that will mitigate against duplicate deployments.
                  example: 01jqq0ajmb4qh9eppz48dejr2m
                  in: header
                  name: Idempotency-Key
                  required: true
                  schema:
                    description: A unique identifier that will mitigate against duplicate deployments.
                    example: 01jqq0ajmb4qh9eppz48dejr2m
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateDeploymentRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CreateDeploymentResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: createDeployment deployments
            tags:
                - deployments
            x-speakeasy-name-override: create
            x-speakeasy-react-hook:
                name: CreateDeployment
    /rpc/deployments.evaluateOpenAPIv3:
        post:
            description: Compare an uploaded OpenAPI document with the version of the same source in the active deployment. Reports changes to tools, inputs and security without deploying anything.
            operationId: evaluateOpenAPIv3
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/EvaluateOpenAPIv3Form'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/OpenAPIv3Evaluation'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: evaluateOpenAPIv3 deployments
            tags:
                - deployments
            x-speakeasy-name-override: evaluateOpenAPIv3
            x-speakeasy-react-hook:
                name: EvaluateOpenAPIv3
    /rpc/deployments.evaluation:
        get:
            description: Compare the OpenAPI documents in a deployment with the deployment it was created from.
            operationId: getDeploymentEvaluation
            parameters:
                - allowEmptyValue: true
                  description: The ID of the deployment to evaluate.
                  in: query
                  name: deployment_id
                  required: true
                  schema:
                    description: The ID of the deployment to evaluate.
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetDeploymentEvaluationResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getDeploymentEvaluation deployments
            tags:
                - deployments
            x-speakeasy-name-override: evaluation
            x-speakeasy-react-hook:
                name: DeploymentEvaluation
    /rpc/deployments.evolve:
        post:
            description: Create a new deployment with additional or updated tool sources.
            operationId: evolveDeployment
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/EvolveForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/EvolveResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: evolve deployments
            tags:
                - deployments
            x-speakeasy-name-override: evolveDeployment
            x-speakeasy-react-hook:
                name: EvolveDeployment
    /rpc/deployments.get:
        get:
            description: Get a deployment by its ID.
            operationId: getDeployment
            parameters:
                - allowEmptyValue: true
                  description: The ID of the deployment
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the deployment
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetDeploymentResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getDeployment deployments
            tags:
                - deployments
            x-speakeasy-name-override: getById
            x-speakeasy-react-hook:
                name: Deployment
    /rpc/deployments.latest:
        get:
            description: Get the latest deployment for a project.
            operationId: getLatestDeployment
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetLatestDeploymentResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getLatestDeployment deployments
            tags:
                - deployments
            x-speakeasy-name-override: latest
            x-speakeasy-react-hook:
                name: LatestDeployment
    /rpc/deployments.list:
        get:
            description: List all deployments in descending order of creation.
            operationId: listDeployments
            parameters:
                - allowEmptyValue: true
                  description: The cursor to fetch results from
                  in: query
                  name: cursor
                  schema:
                    description: The cursor to fetch results from
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListDeploymentResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listDeployments deployments
            tags:
                - deployments
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: ListDeployments
    /rpc/deployments.logs:
        get:
            description: Get logs for a deployment.
            operationId: getDeploymentLogs
            parameters:
                - allowEmptyValue: true
                  description: The ID of the deployment
                  in: query
                  name: deployment_id
                  required: true
                  schema:
                    description: The ID of the deployment
                    type: string
                - allowEmptyValue: true
                  description: The cursor to fetch results from
                  in: query
                  name: cursor
                  schema:
                    description: The cursor to fetch results from
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetDeploymentLogsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getDeploymentLogs deployments
            tags:
                - deployments
            x-speakeasy-name-override: logs
            x-speakeasy-react-hook:
                name: DeploymentLogs
    /rpc/deployments.redeploy:
        post:
            description: Redeploys an existing deployment.
            operationId: redeployDeployment
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RedeployRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RedeployResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: redeploy deployments
            tags:
                - deployments
            x-speakeasy-name-override: redeployDeployment
            x-speakeasy-react-hook:
                name: RedeployDeployment
    /rpc/deviceIntegrations.deleteConfig:
        post:
            description: Disconnect the org-wide device integration for a provider. Synced inventory becomes invisible to coverage; reconnecting starts fresh.
            operationId: deleteDeviceIntegrationConfig
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DeleteConfigRequestBody'
                required: true
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: deleteConfig deviceIntegrations
            tags:
                - deviceIntegrations
            x-speakeasy-name-override: deleteConfig
            x-speakeasy-react-hook:
                name: DeleteDeviceIntegrationConfig
    /rpc/deviceIntegrations.getConfig:
        get:
            description: Get the org-wide device integration config for a provider. Returns an empty config (enabled=false, has_credentials=false) when none is set.
            operationId: getDeviceIntegrationConfig
            parameters:
                - allowEmptyValue: true
                  description: Provider identifier (e.g. jamf, kandji, drata, vanta).
                  in: query
                  name: provider
                  required: true
                  schema:
                    description: Provider identifier (e.g. jamf, kandji, drata, vanta).
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DeviceIntegrationConfig'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: getConfig deviceIntegrations
            tags:
                - deviceIntegrations
            x-speakeasy-name-override: getConfig
            x-speakeasy-react-hook:
                name: DeviceIntegrationConfig
    /rpc/deviceIntegrations.getCoverage:
        get:
            description: Summarize agent coverage across the org's connected MDM inventories, optionally scoped to one provider.
            operationId: getDeviceIntegrationCoverage
            parameters:
                - allowEmptyValue: true
                  description: Optionally scope coverage to one provider (e.g. jamf).
                  in: query
                  name: provider
                  schema:
                    description: Optionally scope coverage to one provider (e.g. jamf).
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DeviceIntegrationCoverage'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: getCoverage deviceIntegrations
            tags:
                - deviceIntegrations
            x-speakeasy-name-override: getCoverage
            x-speakeasy-react-hook:
                name: DeviceIntegrationCoverage
    /rpc/deviceIntegrations.getFleetCoverage:
        get:
            description: Summarize agent coverage and policy enforcement across every device the org can see, with or without a connected MDM, optionally scoped to one provider's inventory.
            operationId: getFleetCoverage
            parameters:
                - allowEmptyValue: true
                  description: Optionally scope coverage to one provider's inventory (e.g. jamf), which excludes agent-only machines.
                  in: query
                  name: provider
                  schema:
                    description: Optionally scope coverage to one provider's inventory (e.g. jamf), which excludes agent-only machines.
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/FleetCoverage'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: getFleetCoverage deviceIntegrations
            tags:
                - deviceIntegrations
            x-speakeasy-name-override: getFleetCoverage
            x-speakeasy-react-hook:
                name: FleetCoverage
    /rpc/deviceIntegrations.listFleetDevices:
        get:
            description: 'Page through every device the org can see, newest first: its connected MDM inventories plus the machines running the agent that no inventory holds, each with its coverage bucket and policy state.'
            operationId: listFleetDevices
            parameters:
                - allowEmptyValue: true
                  description: Only devices synced from this provider. Excludes agent-only machines.
                  in: query
                  name: provider
                  schema:
                    description: Only devices synced from this provider. Excludes agent-only machines.
                    type: string
                - allowEmptyValue: true
                  description: true for devices a connected MDM holds, false for agent-only machines.
                  in: query
                  name: in_inventory
                  schema:
                    description: true for devices a connected MDM holds, false for agent-only machines.
                    type: boolean
                - allowEmptyValue: true
                  description: Only devices in this coverage bucket.
                  in: query
                  name: coverage_bucket
                  schema:
                    description: Only devices in this coverage bucket.
                    enum:
                        - agent_active
                        - agent_stale
                        - agent_other_device
                        - no_agent
                        - no_email
                        - unresolved_email
                        - missing
                    type: string
                - allowEmptyValue: true
                  description: Only agent_active devices in this policy state.
                  in: query
                  name: policy_state
                  schema:
                    description: Only agent_active devices in this policy state.
                    enum:
                        - attested
                        - outdated
                        - unreported
                        - halted
                    type: string
                - allowEmptyValue: true
                  description: Only devices of these Speakeasy users. Combined with user_emails as an OR.
                  in: query
                  name: user_ids
                  schema:
                    description: Only devices of these Speakeasy users. Combined with user_emails as an OR.
                    items:
                        type: string
                    type: array
                - allowEmptyValue: true
                  description: Only devices whose user_email is one of these, matched case-insensitively.
                  in: query
                  name: user_emails
                  schema:
                    description: Only devices whose user_email is one of these, matched case-insensitively.
                    items:
                        type: string
                    type: array
                - allowEmptyValue: true
                  description: Pagination cursor from a previous page.
                  in: query
                  name: cursor
                  schema:
                    description: Pagination cursor from a previous page.
                    type: string
                - allowEmptyValue: true
                  description: Page size. Defaults to 50, maximum 200.
                  in: query
                  name: limit
                  schema:
                    default: 50
                    description: Page size. Defaults to 50, maximum 200.
                    format: int64
                    maximum: 200
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListFleetDevicesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: listFleetDevices deviceIntegrations
            tags:
                - deviceIntegrations
            x-speakeasy-name-override: listFleetDevices
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: FleetDevices
    /rpc/deviceIntegrations.listManagedDevices:
        get:
            description: Page through the org's synced MDM device inventory, newest first, with each device's coverage bucket.
            operationId: listManagedDevices
            parameters:
                - allowEmptyValue: true
                  description: Only devices synced from this provider.
                  in: query
                  name: provider
                  schema:
                    description: Only devices synced from this provider.
                    type: string
                - allowEmptyValue: true
                  description: Only devices in this coverage bucket.
                  in: query
                  name: coverage_bucket
                  schema:
                    description: Only devices in this coverage bucket.
                    enum:
                        - agent_active
                        - agent_stale
                        - agent_other_device
                        - no_agent
                        - no_email
                        - unresolved_email
                        - missing
                    type: string
                - allowEmptyValue: true
                  description: Only agent_active devices in this policy state.
                  in: query
                  name: policy_state
                  schema:
                    description: Only agent_active devices in this policy state.
                    enum:
                        - attested
                        - outdated
                        - unreported
                        - halted
                    type: string
                - allowEmptyValue: true
                  description: Only devices assigned to these Speakeasy users. Combined with user_emails as an OR, because a device only carries a resolved user id when the MDM's reported email matched a member.
                  in: query
                  name: user_ids
                  schema:
                    description: Only devices assigned to these Speakeasy users. Combined with user_emails as an OR, because a device only carries a resolved user id when the MDM's reported email matched a member.
                    items:
                        type: string
                    type: array
                - allowEmptyValue: true
                  description: Only devices whose MDM-reported assigned email is one of these, matched case-insensitively.
                  in: query
                  name: user_emails
                  schema:
                    description: Only devices whose MDM-reported assigned email is one of these, matched case-insensitively.
                    items:
                        type: string
                    type: array
                - allowEmptyValue: true
                  description: Pagination cursor from a previous page.
                  in: query
                  name: cursor
                  schema:
                    description: Pagination cursor from a previous page.
                    type: string
                - allowEmptyValue: true
                  description: Page size. Defaults to 50, maximum 200.
                  in: query
                  name: limit
                  schema:
                    default: 50
                    description: Page size. Defaults to 50, maximum 200.
                    format: int64
                    maximum: 200
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListManagedDevicesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: listManagedDevices deviceIntegrations
            tags:
                - deviceIntegrations
            x-speakeasy-name-override: listManagedDevices
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: ManagedDevices
    /rpc/deviceIntegrations.listProviders:
        get:
            description: List the providers the device integrations framework supports, including the credential fields each needs.
            operationId: listDeviceIntegrationProviders
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListDeviceIntegrationProvidersResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: listProviders deviceIntegrations
            tags:
                - deviceIntegrations
            x-speakeasy-name-override: listProviders
            x-speakeasy-react-hook:
                name: DeviceIntegrationProviders
    /rpc/deviceIntegrations.listSchedules:
        get:
            description: List the sync schedules and their state for a provider's org-wide device integration config. Returns an empty list when no config is set.
            operationId: listDeviceIntegrationSchedules
            parameters:
                - allowEmptyValue: true
                  description: Provider identifier (e.g. jamf, kandji, drata, vanta).
                  in: query
                  name: provider
                  required: true
                  schema:
                    description: Provider identifier (e.g. jamf, kandji, drata, vanta).
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListDeviceIntegrationSchedulesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: listSchedules deviceIntegrations
            tags:
                - deviceIntegrations
            x-speakeasy-name-override: listSchedules
            x-speakeasy-react-hook:
                name: DeviceIntegrationSchedules
    /rpc/deviceIntegrations.retrySchedule:
        post:
            description: Make one sync schedule due immediately, lifting any automatic pause and resetting its failure streak.
            operationId: retryDeviceIntegrationSchedule
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RetryScheduleRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DeviceIntegrationScheduleState'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: retrySchedule deviceIntegrations
            tags:
                - deviceIntegrations
            x-speakeasy-name-override: retrySchedule
            x-speakeasy-react-hook:
                name: RetryDeviceIntegrationSchedule
    /rpc/deviceIntegrations.setScheduleEnabled:
        post:
            description: Enable or disable one sync schedule of a provider's device integration. Disabling records user intent on the schedule; only re-enabling clears it — config saves do not.
            operationId: setDeviceIntegrationScheduleEnabled
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetScheduleEnabledRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DeviceIntegrationScheduleState'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: setScheduleEnabled deviceIntegrations
            tags:
                - deviceIntegrations
            x-speakeasy-name-override: setScheduleEnabled
            x-speakeasy-react-hook:
                name: SetDeviceIntegrationScheduleEnabled
    /rpc/deviceIntegrations.testConnection:
        post:
            description: Probe the provider with the stored credentials to verify they work. Save the config first; this tests what is stored, so secrets never round-trip.
            operationId: testDeviceIntegrationConnection
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DeleteConfigRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DeviceIntegrationTestConnectionResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: testConnection deviceIntegrations
            tags:
                - deviceIntegrations
            x-speakeasy-name-override: testConnection
            x-speakeasy-react-hook:
                name: TestDeviceIntegrationConnection
    /rpc/deviceIntegrations.upsertConfig:
        post:
            description: 'Create or update the org-wide device integration config for a provider. Omit credentials to keep the stored secrets; supplying credentials rotates them in place and resets the schedules'' sync state. Settings merge per key: an omitted key keeps its stored value, a supplied key overwrites it.'
            operationId: upsertDeviceIntegrationConfig
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpsertConfigRequestBody2'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DeviceIntegrationConfig'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: upsertConfig deviceIntegrations
            tags:
                - deviceIntegrations
            x-speakeasy-name-override: upsertConfig
            x-speakeasy-react-hook:
                name: UpsertDeviceIntegrationConfig
    /rpc/domain.checkHealth:
        post:
            description: Check the routing and certificate health of the organization's custom domain
            operationId: checkDomainHealth
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CustomDomain'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: checkHealth domains
            tags:
                - domains
            x-speakeasy-name-override: checkHealth
            x-speakeasy-react-hook:
                name: CheckDomainHealth
    /rpc/domain.delete:
        delete:
            description: Delete a custom domain
            operationId: deleteDomain
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: deleteDomain domains
            tags:
                - domains
            x-speakeasy-name-override: deleteDomain
            x-speakeasy-react-hook:
                name: deleteDomain
    /rpc/domain.get:
        get:
            description: Get the custom domain for an organization
            operationId: getDomain
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CustomDomain'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getDomain domains
            tags:
                - domains
            x-speakeasy-name-override: getDomain
            x-speakeasy-react-hook:
                name: getDomain
    /rpc/domain.list:
        get:
            description: List the custom domains for an organization. The result is empty when no custom domain has been configured.
            operationId: listDomains
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListCustomDomainsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listDomains domains
            tags:
                - domains
            x-speakeasy-name-override: listDomains
            x-speakeasy-react-hook:
                name: listDomains
    /rpc/domain.listMcpEndpoints:
        get:
            description: List the MCP endpoints registered under the organization's custom domain across every project. Returns enriched rows that include the parent MCP server and project so callers can preview what a custom-domain deletion would cascade through.
            operationId: listCustomDomainMcpEndpoints
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListCustomDomainMcpEndpointsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listMcpEndpoints domains
            tags:
                - domains
            x-speakeasy-name-override: listMcpEndpoints
            x-speakeasy-react-hook:
                name: CustomDomainMcpEndpoints
    /rpc/domain.listRootMcpServers:
        get:
            description: List the organization's MCP servers that can be mapped to the custom domain root, including servers not yet attached to the domain
            operationId: listRootMcpServers
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListRootMcpServersResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listRootMcpServers domains
            tags:
                - domains
            x-speakeasy-name-override: listRootMcpServers
            x-speakeasy-react-hook:
                name: RootMcpServers
                type: query
    /rpc/domain.register:
        post:
            description: Create a custom domain for an organization
            operationId: registerDomain
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateDomainRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CustomDomain'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: createDomain domains
            tags:
                - domains
            x-speakeasy-name-override: registerDomain
            x-speakeasy-react-hook:
                name: registerDomain
    /rpc/domain.setRootMcpEndpoint:
        post:
            description: Set or clear the MCP endpoint mapped to a custom domain's root. Pass mcp_endpoint_id for an endpoint already attached to the domain, or mcp_server_id to attach a server (creating its domain endpoint if needed) and map it in one call — usable while the domain is still pending verification, so a migration can be staged before DNS cuts over.
            operationId: setRootMcpEndpoint
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetRootMcpEndpointRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CustomDomain'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: setRootMcpEndpoint domains
            tags:
                - domains
            x-speakeasy-name-override: setRootMcpEndpoint
            x-speakeasy-react-hook:
                name: SetRootMcpEndpoint
    /rpc/domain.update:
        post:
            description: Update settings for the organization's custom domain
            operationId: updateDomain
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateDomainRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CustomDomain'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: updateDomain domains
            tags:
                - domains
            x-speakeasy-name-override: updateDomain
            x-speakeasy-react-hook:
                name: updateDomain
    /rpc/environments.clone:
        post:
            description: Clone an environment into a new one. Either copies only the variable names with empty placeholder values, or copies the encrypted values verbatim. Encrypted secret values are never decrypted by the application during the clone operation.
            operationId: cloneEnvironment
            parameters:
                - allowEmptyValue: true
                  description: The slug of the source environment to clone
                  in: query
                  name: slug
                  required: true
                  schema:
                    description: A short url-friendly label that uniquely identifies a resource.
                    maxLength: 40
                    pattern: ^[a-z0-9_-]{1,128}$
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CloneEnvironmentRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Environment'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: cloneEnvironment environments
            tags:
                - environments
            x-speakeasy-name-override: clone
            x-speakeasy-react-hook:
                name: CloneEnvironment
    /rpc/environments.create:
        post:
            description: Create a new environment
            operationId: createEnvironment
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateEnvironmentForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Environment'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: createEnvironment environments
            tags:
                - environments
            x-speakeasy-name-override: create
            x-speakeasy-react-hook:
                name: CreateEnvironment
    /rpc/environments.delete:
        delete:
            description: Delete an environment
            operationId: deleteEnvironment
            parameters:
                - allowEmptyValue: true
                  description: The slug of the environment to delete
                  in: query
                  name: slug
                  required: true
                  schema:
                    description: A short url-friendly label that uniquely identifies a resource.
                    maxLength: 40
                    pattern: ^[a-z0-9_-]{1,128}$
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: deleteEnvironment environments
            tags:
                - environments
            x-speakeasy-name-override: deleteBySlug
            x-speakeasy-react-hook:
                name: DeleteEnvironment
    /rpc/environments.deleteSourceLink:
        delete:
            description: Delete a link between a source and an environment
            operationId: deleteSourceEnvironmentLink
            parameters:
                - allowEmptyValue: true
                  description: The kind of source (http or function)
                  in: query
                  name: source_kind
                  required: true
                  schema:
                    description: The kind of source that can be linked to an environment
                    enum:
                        - http
                        - function
                    type: string
                - allowEmptyValue: true
                  description: The slug of the source
                  in: query
                  name: source_slug
                  required: true
                  schema:
                    description: The slug of the source
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: deleteSourceEnvironmentLink environments
            tags:
                - environments
            x-speakeasy-name-override: deleteSourceLink
            x-speakeasy-react-hook:
                name: DeleteSourceEnvironmentLink
    /rpc/environments.deleteToolsetLink:
        delete:
            description: Delete a link between a toolset and an environment
            operationId: deleteToolsetEnvironmentLink
            parameters:
                - allowEmptyValue: true
                  description: The ID of the toolset
                  in: query
                  name: toolset_id
                  required: true
                  schema:
                    description: The ID of the toolset
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: deleteToolsetEnvironmentLink environments
            tags:
                - environments
            x-speakeasy-name-override: deleteToolsetLink
            x-speakeasy-react-hook:
                name: DeleteToolsetEnvironmentLink
    /rpc/environments.getSourceEnvironment:
        get:
            description: Get the environment linked to a source
            operationId: getSourceEnvironment
            parameters:
                - allowEmptyValue: true
                  description: The kind of source (http or function)
                  in: query
                  name: source_kind
                  required: true
                  schema:
                    description: The kind of source that can be linked to an environment
                    enum:
                        - http
                        - function
                    type: string
                - allowEmptyValue: true
                  description: The slug of the source
                  in: query
                  name: source_slug
                  required: true
                  schema:
                    description: The slug of the source
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Environment'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getSourceEnvironment environments
            tags:
                - environments
            x-speakeasy-name-override: getBySource
            x-speakeasy-react-hook:
                name: GetSourceEnvironment
    /rpc/environments.getToolsetEnvironment:
        get:
            description: Get the environment linked to a toolset
            operationId: getToolsetEnvironment
            parameters:
                - allowEmptyValue: true
                  description: The ID of the toolset
                  in: query
                  name: toolset_id
                  required: true
                  schema:
                    description: The ID of the toolset
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Environment'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getToolsetEnvironment environments
            tags:
                - environments
            x-speakeasy-name-override: getByToolset
            x-speakeasy-react-hook:
                name: GetToolsetEnvironment
    /rpc/environments.list:
        get:
            description: List all environments for an organization
            operationId: listEnvironments
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListEnvironmentsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listEnvironments environments
            tags:
                - environments
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: ListEnvironments
    /rpc/environments.setSourceLink:
        put:
            description: Set (upsert) a link between a source and an environment
            operationId: setSourceEnvironmentLink
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetSourceEnvironmentLinkRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SourceEnvironmentLink'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: setSourceEnvironmentLink environments
            tags:
                - environments
            x-speakeasy-name-override: setSourceLink
            x-speakeasy-react-hook:
                name: SetSourceEnvironmentLink
    /rpc/environments.setToolsetLink:
        put:
            description: Set (upsert) a link between a toolset and an environment
            operationId: setToolsetEnvironmentLink
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetToolsetEnvironmentLinkRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ToolsetEnvironmentLink'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: setToolsetEnvironmentLink environments
            tags:
                - environments
            x-speakeasy-name-override: setToolsetLink
            x-speakeasy-react-hook:
                name: SetToolsetEnvironmentLink
    /rpc/environments.update:
        post:
            description: Update an environment
            operationId: updateEnvironment
            parameters:
                - allowEmptyValue: true
                  description: The slug of the environment to update
                  in: query
                  name: slug
                  required: true
                  schema:
                    description: A short url-friendly label that uniquely identifies a resource.
                    maxLength: 40
                    pattern: ^[a-z0-9_-]{1,128}$
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateEnvironmentRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Environment'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: updateEnvironment environments
            tags:
                - environments
            x-speakeasy-name-override: updateBySlug
            x-speakeasy-react-hook:
                name: UpdateEnvironment
    /rpc/external.receiveWorkOSWebhook:
        post:
            description: Receive and enqueue a WorkOS webhook event.
            operationId: receiveWorkOSWebhook
            parameters:
                - allowEmptyValue: true
                  description: WorkOS webhook signature header
                  in: header
                  name: WorkOS-Signature
                  schema:
                    description: WorkOS webhook signature header
                    type: string
            responses:
                "204":
                    description: No Content response.
            summary: receiveWorkOSWebhook external
            tags:
                - external
            x-speakeasy-name-override: receiveWorkOSWebhook
            x-speakeasy-react-hook:
                disabled: true
    /rpc/externalCredentials.createAwsIam:
        post:
            description: Create an AWS IAM external credential. Requires org:admin.
            operationId: createAwsIamCredential
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateAwsIamCredentialForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwsIamCredential'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: createAwsIamCredential externalCredentials
            tags:
                - externalCredentials
            x-speakeasy-name-override: createAwsIam
            x-speakeasy-react-hook:
                name: CreateAwsIamCredential
    /rpc/externalCredentials.createGcpIam:
        post:
            description: Create a GCP IAM external credential. Requires org:admin.
            operationId: createGcpIamCredential
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateGcpIamCredentialForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GcpIamCredential'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: createGcpIamCredential externalCredentials
            tags:
                - externalCredentials
            x-speakeasy-name-override: createGcpIam
            x-speakeasy-react-hook:
                name: CreateGcpIamCredential
    /rpc/externalCredentials.deleteAwsIam:
        delete:
            description: Soft-delete an AWS IAM external credential by ID. Requires org:admin. Refused with a conflict while any live external key still names the credential, since deleting it would leave those keys unable to reach the key material they sign with.
            operationId: deleteAwsIamCredential
            parameters:
                - allowEmptyValue: true
                  description: The ID of the credential to delete.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the credential to delete.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: deleteAwsIamCredential externalCredentials
            tags:
                - externalCredentials
            x-speakeasy-name-override: deleteAwsIam
            x-speakeasy-react-hook:
                name: DeleteAwsIamCredential
    /rpc/externalCredentials.deleteGcpIam:
        delete:
            description: Soft-delete a GCP IAM external credential by ID. Requires org:admin. Refused with a conflict while any live external key still names the credential, since deleting it would leave those keys unable to reach the key material they sign with.
            operationId: deleteGcpIamCredential
            parameters:
                - allowEmptyValue: true
                  description: The ID of the credential to delete.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the credential to delete.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: deleteGcpIamCredential externalCredentials
            tags:
                - externalCredentials
            x-speakeasy-name-override: deleteGcpIam
            x-speakeasy-react-hook:
                name: DeleteGcpIamCredential
    /rpc/externalCredentials.getAwsIam:
        get:
            description: Get an AWS IAM external credential by ID. Requires org:read.
            operationId: getAwsIamCredential
            parameters:
                - allowEmptyValue: true
                  description: The ID of the credential to get.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the credential to get.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwsIamCredential'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getAwsIamCredential externalCredentials
            tags:
                - externalCredentials
            x-speakeasy-name-override: getAwsIam
            x-speakeasy-react-hook:
                name: GetAwsIamCredential
    /rpc/externalCredentials.getGcpIam:
        get:
            description: Get a GCP IAM external credential by ID. Requires org:read.
            operationId: getGcpIamCredential
            parameters:
                - allowEmptyValue: true
                  description: The ID of the credential to get.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the credential to get.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GcpIamCredential'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getGcpIamCredential externalCredentials
            tags:
                - externalCredentials
            x-speakeasy-name-override: getGcpIam
            x-speakeasy-react-hook:
                name: GetGcpIamCredential
    /rpc/externalCredentials.getGcpSetupInfo:
        get:
            description: Report what the customer must grant in their own GCP project before Speakeasy can impersonate a service account there. Readable before any credential exists, since impersonation is a precondition of creating one. Requires org:read.
            operationId: getGcpSetupInfo
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GcpSetupInfo'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getGcpSetupInfo externalCredentials
            tags:
                - externalCredentials
            x-speakeasy-name-override: getGcpSetupInfo
            x-speakeasy-react-hook:
                name: GcpSetupInfo
    /rpc/externalCredentials.list:
        get:
            description: List the organization's external credentials (provider-independent summary). Optionally filter by provider. Requires org:read.
            operationId: listExternalCredentials
            parameters:
                - allowEmptyValue: true
                  description: Only return credentials for this provider.
                  in: query
                  name: provider
                  schema:
                    description: Only return credentials for this provider.
                    enum:
                        - aws_iam
                        - gcp_iam
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListExternalCredentialsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listExternalCredentials externalCredentials
            tags:
                - externalCredentials
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: ListExternalCredentials
    /rpc/externalCredentials.listAwsIam:
        get:
            description: List the organization's AWS IAM external credentials. Requires org:read.
            operationId: listAwsIamCredentials
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListExternalCredentialsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listAwsIamCredentials externalCredentials
            tags:
                - externalCredentials
            x-speakeasy-name-override: listAwsIam
            x-speakeasy-react-hook:
                name: ListAwsIamCredentials
    /rpc/externalCredentials.listGcpIam:
        get:
            description: List the organization's GCP IAM external credentials. Requires org:read.
            operationId: listGcpIamCredentials
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListExternalCredentialsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listGcpIamCredentials externalCredentials
            tags:
                - externalCredentials
            x-speakeasy-name-override: listGcpIam
            x-speakeasy-react-hook:
                name: ListGcpIamCredentials
    /rpc/externalCredentials.updateAwsIam:
        post:
            description: Replace an AWS IAM external credential's configuration. Requires org:admin.
            operationId: updateAwsIamCredential
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateAwsIamCredentialRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwsIamCredential'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: updateAwsIamCredential externalCredentials
            tags:
                - externalCredentials
            x-speakeasy-name-override: updateAwsIam
            x-speakeasy-react-hook:
                name: UpdateAwsIamCredential
    /rpc/externalCredentials.updateGcpIam:
        post:
            description: Replace a GCP IAM external credential's configuration. Requires org:admin.
            operationId: updateGcpIamCredential
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateGcpIamCredentialRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GcpIamCredential'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: updateGcpIamCredential externalCredentials
            tags:
                - externalCredentials
            x-speakeasy-name-override: updateGcpIam
            x-speakeasy-react-hook:
                name: UpdateGcpIamCredential
    /rpc/externalCredentials.verifyGcpIam:
        post:
            description: 'Probe that Speakeasy can impersonate the service account a GCP IAM credential names, and report the principal it resolves to. Ephemeral: nothing is persisted. Rate limited per organization. Requires org:admin.'
            operationId: verifyGcpIamCredential
            parameters:
                - allowEmptyValue: true
                  description: The ID of the credential to verify.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the credential to verify.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/VerifyCredentialResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "429":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'rate_limit_exceeded: rate limit exceeded'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: verifyGcpIamCredential externalCredentials
            tags:
                - externalCredentials
            x-speakeasy-name-override: verifyGcpIam
            x-speakeasy-react-hook:
                name: VerifyGcpIamCredential
    /rpc/externalKeys.createAwsKms:
        post:
            description: Create an AWS KMS external key. Requires org:admin.
            operationId: createAwsKmsKey
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateAwsKmsKeyForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwsKmsKey'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: createAwsKmsKey externalKeys
            tags:
                - externalKeys
            x-speakeasy-name-override: createAwsKms
            x-speakeasy-react-hook:
                name: CreateAwsKmsKey
    /rpc/externalKeys.createGcpKms:
        post:
            description: Create a GCP KMS external key. Requires org:admin.
            operationId: createGcpKmsKey
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateGcpKmsKeyForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GcpKmsKey'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: createGcpKmsKey externalKeys
            tags:
                - externalKeys
            x-speakeasy-name-override: createGcpKms
            x-speakeasy-react-hook:
                name: CreateGcpKmsKey
    /rpc/externalKeys.deleteAwsKms:
        delete:
            description: Soft-delete an AWS KMS external key by ID. Requires org:admin. Refused with a conflict while any JSON Web Key Set or published JSON Web Key still references the key, since deleting it would break verification for every already-published kid.
            operationId: deleteAwsKmsKey
            parameters:
                - allowEmptyValue: true
                  description: The ID of the key to delete.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the key to delete.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: deleteAwsKmsKey externalKeys
            tags:
                - externalKeys
            x-speakeasy-name-override: deleteAwsKms
            x-speakeasy-react-hook:
                name: DeleteAwsKmsKey
    /rpc/externalKeys.deleteGcpKms:
        delete:
            description: Soft-delete a GCP KMS external key by ID. Requires org:admin. Refused with a conflict while any JSON Web Key Set or published JSON Web Key still references the key, since deleting it would break verification for every already-published kid.
            operationId: deleteGcpKmsKey
            parameters:
                - allowEmptyValue: true
                  description: The ID of the key to delete.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the key to delete.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: deleteGcpKmsKey externalKeys
            tags:
                - externalKeys
            x-speakeasy-name-override: deleteGcpKms
            x-speakeasy-react-hook:
                name: DeleteGcpKmsKey
    /rpc/externalKeys.getAwsKms:
        get:
            description: Get an AWS KMS external key by ID. Requires org:read.
            operationId: getAwsKmsKey
            parameters:
                - allowEmptyValue: true
                  description: The ID of the key to get.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the key to get.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwsKmsKey'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getAwsKmsKey externalKeys
            tags:
                - externalKeys
            x-speakeasy-name-override: getAwsKms
            x-speakeasy-react-hook:
                name: GetAwsKmsKey
    /rpc/externalKeys.getGcpKms:
        get:
            description: Get a GCP KMS external key by ID. Requires org:read.
            operationId: getGcpKmsKey
            parameters:
                - allowEmptyValue: true
                  description: The ID of the key to get.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the key to get.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GcpKmsKey'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getGcpKmsKey externalKeys
            tags:
                - externalKeys
            x-speakeasy-name-override: getGcpKms
            x-speakeasy-react-hook:
                name: GetGcpKmsKey
    /rpc/externalKeys.list:
        get:
            description: List the organization's external keys (provider-independent summary). Optionally filter by provider. Requires org:read.
            operationId: listExternalKeys
            parameters:
                - allowEmptyValue: true
                  description: Only return keys for this provider.
                  in: query
                  name: provider
                  schema:
                    description: Only return keys for this provider.
                    enum:
                        - aws_kms
                        - gcp_kms
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListExternalKeysResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listExternalKeys externalKeys
            tags:
                - externalKeys
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: ListExternalKeys
    /rpc/externalKeys.listAwsKms:
        get:
            description: List the organization's AWS KMS external keys. Requires org:read.
            operationId: listAwsKmsKeys
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListExternalKeysResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listAwsKmsKeys externalKeys
            tags:
                - externalKeys
            x-speakeasy-name-override: listAwsKms
            x-speakeasy-react-hook:
                name: ListAwsKmsKeys
    /rpc/externalKeys.listGcpKms:
        get:
            description: List the organization's GCP KMS external keys. Requires org:read.
            operationId: listGcpKmsKeys
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListExternalKeysResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listGcpKmsKeys externalKeys
            tags:
                - externalKeys
            x-speakeasy-name-override: listGcpKms
            x-speakeasy-react-hook:
                name: ListGcpKmsKeys
    /rpc/externalKeys.updateAwsKms:
        post:
            description: 'Update an AWS KMS external key''s name, backing credential and customer grant reference. Requires org:admin. These three fields are replaced, not patched: omitting the optional customer_grant_reference clears it. The key ARN and algorithm are immutable: an external key identifies exactly one signable key permanently, so changing what the key is means deleting it and creating a new one. The backing credential stays editable because repairing the path to a key does not change the key material Speakeasy signs with.'
            operationId: updateAwsKmsKey
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateAwsKmsKeyRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwsKmsKey'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: updateAwsKmsKey externalKeys
            tags:
                - externalKeys
            x-speakeasy-name-override: updateAwsKms
            x-speakeasy-react-hook:
                name: UpdateAwsKmsKey
    /rpc/externalKeys.updateGcpKms:
        post:
            description: 'Update a GCP KMS external key''s name, backing credential and customer grant reference. Requires org:admin. These three fields are replaced, not patched: omitting the optional customer_grant_reference clears it. The resource name and algorithm are immutable: an external key identifies exactly one signable crypto key version permanently, so changing what the key is means deleting it and creating a new one. The backing credential stays editable because repairing the path to a key does not change the key material Speakeasy signs with.'
            operationId: updateGcpKmsKey
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateGcpKmsKeyRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GcpKmsKey'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: updateGcpKmsKey externalKeys
            tags:
                - externalKeys
            x-speakeasy-name-override: updateGcpKms
            x-speakeasy-react-hook:
                name: UpdateGcpKmsKey
    /rpc/externalKeys.verifyGcpKms:
        post:
            description: 'Probe that Speakeasy can reach a GCP KMS external key through its backing credential and use it to sign: read the key''s public half, confirm its algorithm matches the one recorded, sign a probe digest, and verify that signature locally against the public half. Performs a real signing operation, which is billed to the key''s owner and lands in their Cloud Audit Log. Ephemeral: nothing is persisted. Rate limited per organization. Requires org:admin.'
            operationId: verifyGcpKmsKey
            parameters:
                - allowEmptyValue: true
                  description: The ID of the key to verify.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the key to verify.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/VerifyKmsKeyResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "429":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'rate_limit_exceeded: rate limit exceeded'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: verifyGcpKmsKey externalKeys
            tags:
                - externalKeys
            x-speakeasy-name-override: verifyGcpKms
            x-speakeasy-react-hook:
                name: VerifyGcpKmsKey
    /rpc/gatewaySessions.list:
        get:
            operationId: listGatewaySessions
            parameters:
                - allowEmptyValue: true
                  description: Project gateway id. Omit for the Organization Gateway; organization access is then required and the selected project is ignored.
                  in: query
                  name: gateway_id
                  schema:
                    description: Project gateway id. Omit for the Organization Gateway; organization access is then required and the selected project is ignored.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Case-insensitive literal search by subject URN, name, or email.
                  in: query
                  name: search
                  schema:
                    description: Case-insensitive literal search by subject URN, name, or email.
                    maxLength: 200
                    type: string
                - allowEmptyValue: true
                  description: Filter by an upstream account associated with this member server.
                  in: query
                  name: server_id
                  schema:
                    description: Filter by an upstream account associated with this member server.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Filter by upstream provider issuer.
                  in: query
                  name: provider_id
                  schema:
                    description: Filter by upstream provider issuer.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Inbound authorization status.
                  in: query
                  name: status
                  schema:
                    default: active
                    description: Inbound authorization status.
                    enum:
                        - active
                        - expired
                        - revoked
                        - all
                    type: string
                - allowEmptyValue: true
                  description: Inclusive creation time lower bound.
                  in: query
                  name: created_after
                  schema:
                    description: Inclusive creation time lower bound.
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: Exclusive creation time upper bound.
                  in: query
                  name: created_before
                  schema:
                    description: Exclusive creation time upper bound.
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: Ordering; expiry uses the inbound authorization deadline, not access-token expiry. Unknown last-use times sort last.
                  in: query
                  name: sort
                  schema:
                    default: newest
                    description: Ordering; expiry uses the inbound authorization deadline, not access-token expiry. Unknown last-use times sort last.
                    enum:
                        - newest
                        - oldest
                        - last_used
                        - expiry
                    type: string
                - allowEmptyValue: true
                  description: Opaque cursor bound to the current filters and ordering.
                  in: query
                  name: cursor
                  schema:
                    description: Opaque cursor bound to the current filters and ordering.
                    type: string
                - allowEmptyValue: true
                  description: Page size.
                  in: query
                  name: limit
                  schema:
                    default: 50
                    description: Page size.
                    format: int64
                    maximum: 100
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GatewaySessionsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: listGatewaySessions gatewaySessions
            tags:
                - gatewaySessions
            x-speakeasy-name-override: list
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: GatewaySessions
    /rpc/gatewaySessions.listFacets:
        get:
            description: Complete configured member server and provider choices, independent of pagination and active filters.
            operationId: listGatewaySessionFacets
            parameters:
                - allowEmptyValue: true
                  description: Project gateway id. Omit for the Organization Gateway; organization access is then required and the selected project is ignored.
                  in: query
                  name: gateway_id
                  schema:
                    description: Project gateway id. Omit for the Organization Gateway; organization access is then required and the selected project is ignored.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GatewaySessionFacets'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: listGatewaySessionFacets gatewaySessions
            tags:
                - gatewaySessions
            x-speakeasy-name-override: listFacets
            x-speakeasy-react-hook:
                name: GatewaySessionFacets
    /rpc/hiddenMcpServers.hide:
        post:
            description: Hide an MCP server for the signed-in user. Hiding a hidden server changes nothing.
            operationId: hideMcpServer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/HideMcpServerRequestBody'
                required: true
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: hide hiddenMcpServers
            tags:
                - hiddenMcpServers
            x-speakeasy-name-override: hide
            x-speakeasy-react-hook:
                name: HideMcpServer
    /rpc/hiddenMcpServers.list:
        get:
            description: List the MCP servers the signed-in user hid in the active organization.
            operationId: listHiddenMcpServers
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListHiddenMcpServersResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: list hiddenMcpServers
            tags:
                - hiddenMcpServers
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: HiddenMcpServers
    /rpc/hiddenMcpServers.unhide:
        post:
            description: Show a hidden MCP server again for the signed-in user. Unhiding a server that is not hidden changes nothing.
            operationId: unhideMcpServer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UnhideMcpServerRequestBody'
                required: true
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: unhide hiddenMcpServers
            tags:
                - hiddenMcpServers
            x-speakeasy-name-override: unhide
            x-speakeasy-react-hook:
                name: UnhideMcpServer
    /rpc/hooks.claude:
        post:
            tags:
                - hooks
            summary: claude hooks
            description: Unified endpoint for all Claude Code hook events. Handles SessionStart, PreToolUse, PostToolUse, and PostToolUseFailure.
            operationId: hooks#claude
            parameters:
                - name: Gram-Key
                  in: header
                  description: Optional API key for plugin-driven attribution.
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: Optional API key for plugin-driven attribution.
                - name: Gram-Project
                  in: header
                  description: Optional project slug for plugin-driven attribution.
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: Optional project slug for plugin-driven attribution.
                - name: X-Gram-Hook-Hostname
                  in: header
                  description: Optional endpoint hostname supplied by the Speakeasy hook plugin.
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: Optional endpoint hostname supplied by the Speakeasy hook plugin.
                - name: Idempotency-Key
                  in: header
                  description: Optional per-invocation token reused across retries so the server stores a redelivered event exactly once.
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: Optional per-invocation token reused across retries so the server stores a redelivered event exactly once.
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ClaudeHookPayload'
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ClaudeHookResult'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
    /rpc/hooks.codex:
        post:
            tags:
                - hooks
            summary: codex hooks
            description: Endpoint for Codex hook events. Handles SessionStart, PreToolUse, PermissionRequest, PostToolUse, UserPromptSubmit, and Stop.
            operationId: hooks#codex
            parameters:
                - name: Gram-Key
                  in: header
                  description: API Key header
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: API Key header
                - name: Gram-Project
                  in: header
                  description: project header
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: project header
                - name: X-Gram-Hook-Hostname
                  in: header
                  description: Optional endpoint hostname supplied by the Speakeasy hook plugin.
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: Optional endpoint hostname supplied by the Speakeasy hook plugin.
                - name: Idempotency-Key
                  in: header
                  description: Optional per-invocation token reused across retries so the server stores a redelivered event exactly once.
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: Optional per-invocation token reused across retries so the server stores a redelivered event exactly once.
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CodexHookPayload'
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CodexHookResult'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - device_agent_token_header_Authorization: []
                  project_slug_header_Gram-Project: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
    /rpc/hooks.cursor:
        post:
            tags:
                - hooks
            summary: cursor hooks
            description: Endpoint for Cursor hook events. Handles beforeSubmitPrompt, stop, afterAgentResponse, afterAgentThought, preToolUse, postToolUse, postToolUseFailure, beforeMCPExecution, and afterMCPExecution.
            operationId: hooks#cursor
            parameters:
                - name: Gram-Key
                  in: header
                  description: API Key header
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: API Key header
                - name: Gram-Project
                  in: header
                  description: project header
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: project header
                - name: X-Gram-Hook-Hostname
                  in: header
                  description: Optional endpoint hostname supplied by the Speakeasy hook plugin.
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: Optional endpoint hostname supplied by the Speakeasy hook plugin.
                - name: Idempotency-Key
                  in: header
                  description: Optional per-invocation token reused across retries so the server stores a redelivered event exactly once.
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: Optional per-invocation token reused across retries so the server stores a redelivered event exactly once.
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CursorHookPayload'
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CursorHookResult'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - device_agent_token_header_Authorization: []
                  project_slug_header_Gram-Project: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
    /rpc/hooks.deleteServerNameOverride:
        post:
            tags:
                - hooksServerNames
            summary: delete hooksServerNames
            description: Delete a server name display override
            operationId: deleteServerNameOverride
            parameters:
                - name: Gram-Key
                  in: header
                  description: API Key header
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: API Key header
                - name: Gram-Session
                  in: header
                  description: Session header
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: Session header
                - name: Gram-Project
                  in: header
                  description: project header
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: project header
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DeleteRequestBody'
            responses:
                "204":
                    description: No Content response.
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
    /rpc/hooks.getStatus:
        get:
            description: Report whether the organization has any hook telemetry source configured. Reads configuration only; it does not query hook traffic.
            operationId: getHooksStatus
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/HooksStatus'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: getStatus hooks
            tags:
                - hooks
            x-speakeasy-name-override: getStatus
            x-speakeasy-react-hook:
                name: GetHooksStatus
    /rpc/hooks.ingest:
        post:
            description: Feature-first unified endpoint for hook events from supported coding assistants.
            operationId: ingestHookEvent
            parameters:
                - allowEmptyValue: true
                  description: Optional API key for plugin-driven attribution.
                  in: header
                  name: Gram-Key
                  schema:
                    description: Optional API key for plugin-driven attribution.
                    type: string
                - allowEmptyValue: true
                  description: Optional project slug for plugin-driven attribution.
                  in: header
                  name: Gram-Project
                  schema:
                    description: Optional project slug for plugin-driven attribution.
                    type: string
                - allowEmptyValue: true
                  description: Optional per-invocation token reused across retries so the server stores a redelivered event exactly once.
                  in: header
                  name: Idempotency-Key
                  schema:
                    description: Optional per-invocation token reused across retries so the server stores a redelivered event exactly once.
                    type: string
                - allowEmptyValue: true
                  description: Set when the event is redelivered from a device's offline spool after control-plane downtime, under its original Idempotency-Key and occurred_at.
                  in: header
                  name: X-Gram-Replayed
                  schema:
                    description: Set when the event is redelivered from a device's offline spool after control-plane downtime, under its original Idempotency-Key and occurred_at.
                    type: boolean
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/IngestRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/IngestHookResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            summary: ingest hooks
            tags:
                - hooks
            x-speakeasy-name-override: ingest
            x-speakeasy-react-hook:
                name: IngestHookEvent
    /rpc/hooks.listServerNameOverrides:
        get:
            tags:
                - hooksServerNames
            summary: list hooksServerNames
            description: List all server name display overrides for a project
            operationId: listServerNameOverrides
            parameters:
                - name: Gram-Key
                  in: header
                  description: API Key header
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: API Key header
                - name: Gram-Session
                  in: header
                  description: Session header
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: Session header
                - name: Gram-Project
                  in: header
                  description: project header
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: project header
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                type: array
                                items:
                                    $ref: '#/components/schemas/ServerNameOverride'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
    /rpc/hooks.otel/v1/logs:
        post:
            tags:
                - hooks
            summary: logs hooks
            description: Endpoint to receive OTEL logs data from Claude Code. Requires API key authentication, or a device-agent token from a headless device enrolled as a workload.
            operationId: hooks#logs
            parameters:
                - name: Gram-Key
                  in: header
                  description: API Key header
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: API Key header
                - name: Gram-Project
                  in: header
                  description: project header
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: project header
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/OTELLogsPayload'
            responses:
                "202":
                    description: Accepted response.
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - device_agent_token_header_Authorization: []
                  project_slug_header_Gram-Project: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
    /rpc/hooks.otel/v1/metrics:
        post:
            tags:
                - hooks
            summary: metrics hooks
            description: Endpoint to receive OTEL metrics data from Claude Code. Requires API key authentication, or a device-agent token from a headless device enrolled as a workload.
            operationId: hooks#metrics
            parameters:
                - name: Gram-Key
                  in: header
                  description: API Key header
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: API Key header
                - name: Gram-Project
                  in: header
                  description: project header
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: project header
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/OTELMetricsPayload'
            responses:
                "202":
                    description: Accepted response.
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - device_agent_token_header_Authorization: []
                  project_slug_header_Gram-Project: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
    /rpc/hooks.skillFeedback:
        post:
            description: Records agent-volunteered feedback about a distributed skill.
            operationId: skillFeedback
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SkillFeedbackPayload'
                required: true
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: skillFeedback hooks
            tags:
                - hooks
            x-speakeasy-name-override: skillFeedback
    /rpc/hooks.uploadSkillContent:
        post:
            description: Uploads skill manifest content requested by the unified hook ingest endpoint.
            operationId: uploadSkillContent
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UploadSkillContentPayload'
                required: true
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: uploadSkillContent hooks
            tags:
                - hooks
            x-speakeasy-name-override: uploadSkillContent
    /rpc/hooks.upsertServerNameOverride:
        post:
            tags:
                - hooksServerNames
            summary: upsert hooksServerNames
            description: Create or update a server name display override
            operationId: upsertServerNameOverride
            parameters:
                - name: Gram-Key
                  in: header
                  description: API Key header
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: API Key header
                - name: Gram-Session
                  in: header
                  description: Session header
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: Session header
                - name: Gram-Project
                  in: header
                  description: project header
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: project header
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpsertRequestBody'
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ServerNameOverride'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
    /rpc/identity.resolve:
        get:
            description: Resolve an identity URN into every identifier the subject's activity is recorded under.
            operationId: resolveIdentity
            parameters:
                - allowEmptyValue: true
                  description: The identity URN to resolve, in the form '<kind>:<id>'. Kind is one of 'user' (Speakeasy user id), 'email', 'external' (the external user id an agent reported), 'apikey', or 'agent'. Callers pass whichever identifier they hold; every URN for the same subject resolves to the same identity.
                  example: user:user_01abc
                  in: query
                  name: urn
                  required: true
                  schema:
                    description: The identity URN to resolve, in the form '<kind>:<id>'. Kind is one of 'user' (Speakeasy user id), 'email', 'external' (the external user id an agent reported), 'apikey', or 'agent'. Callers pass whichever identifier they hold; every URN for the same subject resolves to the same identity.
                    example: user:user_01abc
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/IdentityModel'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: resolve identity
            tags:
                - identity
            x-speakeasy-name-override: resolve
            x-speakeasy-react-hook:
                name: Identity
    /rpc/identityProviderConnections.create:
        post:
            description: Create the organization's Okta connection. Discovers the org's authorization server, provisions a signing key and JWKS URL, and returns the console checklist. Requires org:admin and the okta-connections rollout. One live connection per organization; creation is rate limited.
            operationId: createIdentityProviderConnection
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateIdentityProviderConnectionRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/OktaIdentityProviderConnection'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "412":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'failed_precondition: resource is not in a valid state for this operation'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "429":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'rate_limit_exceeded: rate limit exceeded'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: create identityProviderConnections
            tags:
                - identityProviderConnections
            x-speakeasy-name-override: create
            x-speakeasy-react-hook:
                name: CreateIdentityProviderConnection
    /rpc/identityProviderConnections.get:
        get:
            description: Get a connection by ID, or the organization's live Okta connection when no ID is given. Session only; requires org:read.
            operationId: getIdentityProviderConnection
            parameters:
                - allowEmptyValue: true
                  description: Connection ID. Omit to fetch the organization's live connection.
                  in: query
                  name: id
                  schema:
                    description: Connection ID. Omit to fetch the organization's live connection.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetIdentityProviderConnectionResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: get identityProviderConnections
            tags:
                - identityProviderConnections
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: IdentityProviderConnection
    /rpc/identityProviderConnections.listApplications:
        get:
            description: List the applications snapshot for the connection with live assignment counts and the last reconcile run. The connection must be verified. Requires org:admin.
            operationId: listIdentityProviderConnectionApplications
            parameters:
                - allowEmptyValue: true
                  description: Connection ID.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: Connection ID.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Include applications that disappeared from a run.
                  in: query
                  name: include_removed
                  schema:
                    default: false
                    description: Include applications that disappeared from a run.
                    type: boolean
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListIdentityProviderConnectionApplicationsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "412":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'failed_precondition: resource is not in a valid state for this operation'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: listApplications identityProviderConnections
            tags:
                - identityProviderConnections
            x-speakeasy-name-override: listApplications
            x-speakeasy-react-hook:
                name: IdentityProviderConnectionApplications
    /rpc/identityProviderConnections.recordAgent:
        post:
            description: Record the Okta AI agent ID and the application it is bound to, for display. Okta does not expose these through its API. Requires org:admin.
            operationId: recordIdentityProviderConnectionAgent
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RecordIdentityProviderConnectionAgentRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/OktaIdentityProviderConnection'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: recordAgent identityProviderConnections
            tags:
                - identityProviderConnections
            x-speakeasy-name-override: recordAgent
            x-speakeasy-react-hook:
                name: RecordIdentityProviderConnectionAgent
    /rpc/identityProviderConnections.replaceClientSecret:
        post:
            description: Replace the client secret of a connection installed from the Okta Integration Network and re-verify it. The previous secret is kept if Okta rejects the new one. Requires org:admin.
            operationId: replaceIdentityProviderConnectionClientSecret
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ReplaceIdentityProviderConnectionClientSecretRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/OktaIdentityProviderConnection'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "412":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'failed_precondition: resource is not in a valid state for this operation'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "429":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'rate_limit_exceeded: rate limit exceeded'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: replaceClientSecret identityProviderConnections
            tags:
                - identityProviderConnections
            x-speakeasy-name-override: replaceClientSecret
            x-speakeasy-react-hook:
                name: ReplaceIdentityProviderConnectionClientSecret
    /rpc/identityProviderConnections.revoke:
        post:
            description: 'Revoke the connection: withdraw every signing key from the JWKS, disable the key material, and tombstone the connection so a new one can be created. Idempotent. Requires org:admin.'
            operationId: revokeIdentityProviderConnection
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RevokeIdentityProviderConnectionRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/OktaIdentityProviderConnection'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: revoke identityProviderConnections
            tags:
                - identityProviderConnections
            x-speakeasy-name-override: revoke
            x-speakeasy-react-hook:
                name: RevokeIdentityProviderConnection
    /rpc/identityProviderConnections.setSetupMethod:
        post:
            description: 'Switch how a pending connection connects to Okta: an install from the Okta Integration Network (client secret) or a custom API Services app (private key). Allowed until the client ID is submitted. Switching to the custom app provisions a signing key and JWKS URL once; switching away stops serving the key and switching back reuses it. A key left unused is retired when the client ID is submitted or the connection is revoked. Requires org:admin.'
            operationId: setIdentityProviderConnectionSetupMethod
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetIdentityProviderConnectionSetupMethodRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/OktaIdentityProviderConnection'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "412":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'failed_precondition: resource is not in a valid state for this operation'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "429":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'rate_limit_exceeded: rate limit exceeded'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: setSetupMethod identityProviderConnections
            tags:
                - identityProviderConnections
            x-speakeasy-name-override: setSetupMethod
            x-speakeasy-react-hook:
                name: SetIdentityProviderConnectionSetupMethod
    /rpc/identityProviderConnections.submitClientId:
        post:
            description: Record the client ID of the Okta API Services application and verify it. Connections installed from the Okta Integration Network also take the client secret. Allowed once, while the connection is pending; revoke and recreate to change it. Requires org:admin.
            operationId: submitIdentityProviderConnectionClientId
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SubmitIdentityProviderConnectionClientIDRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/OktaIdentityProviderConnection'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "412":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'failed_precondition: resource is not in a valid state for this operation'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "429":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'rate_limit_exceeded: rate limit exceeded'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: submitClientId identityProviderConnections
            tags:
                - identityProviderConnections
            x-speakeasy-name-override: submitClientId
            x-speakeasy-react-hook:
                name: SubmitIdentityProviderConnectionClientId
    /rpc/identityProviderConnections.syncApplications:
        post:
            description: Run the applications snapshot on the next coordinator pass, within minutes, instead of at the next scheduled interval. The connection must be verified. Rate limited per organization. Requires org:admin.
            operationId: syncIdentityProviderConnectionApplications
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SyncIdentityProviderConnectionApplicationsRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/OktaIdentityProviderConnection'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "412":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'failed_precondition: resource is not in a valid state for this operation'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "429":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'rate_limit_exceeded: rate limit exceeded'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: syncApplications identityProviderConnections
            tags:
                - identityProviderConnections
            x-speakeasy-name-override: syncApplications
            x-speakeasy-react-hook:
                name: SyncIdentityProviderConnectionApplications
    /rpc/identityProviderConnections.verify:
        post:
            description: 'Re-verify the connection against Okta: mint a token, confirm each required scope with a read, and record the outcome. Rate limited per organization. Requires org:admin.'
            operationId: verifyIdentityProviderConnection
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/VerifyIdentityProviderConnectionRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/OktaIdentityProviderConnection'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "412":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'failed_precondition: resource is not in a valid state for this operation'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "429":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'rate_limit_exceeded: rate limit exceeded'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: verify identityProviderConnections
            tags:
                - identityProviderConnections
            x-speakeasy-name-override: verify
            x-speakeasy-react-hook:
                name: VerifyIdentityProviderConnection
    /rpc/instances.get:
        get:
            description: Load all relevant data for an instance of a toolset and environment
            operationId: getInstance
            parameters:
                - allowEmptyValue: true
                  description: The slug of the toolset to load
                  in: query
                  name: toolset_slug
                  required: true
                  schema:
                    description: A short url-friendly label that uniquely identifies a resource.
                    maxLength: 40
                    pattern: ^[a-z0-9_-]{1,128}$
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Chat Sessions token header
                  in: header
                  name: Gram-Chat-Session
                  schema:
                    description: Chat Sessions token header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetInstanceResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - chat_sessions_token_header_Gram-Chat-Session: []
            summary: getInstance instances
            tags:
                - instances
            x-speakeasy-name-override: getBySlug
            x-speakeasy-react-hook:
                name: Instance
    /rpc/integrations.get:
        get:
            tags:
                - integrations
            summary: get integrations
            description: Get a third-party integration by ID or name.
            operationId: integrations#get
            parameters:
                - name: id
                  in: query
                  description: The ID of the integration to get (refers to a package id).
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: The ID of the integration to get (refers to a package id).
                - name: name
                  in: query
                  description: The name of the integration to get (refers to a package name).
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: The name of the integration to get (refers to a package name).
                - name: Gram-Session
                  in: header
                  description: Session header
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: Session header
                - name: Gram-Project
                  in: header
                  description: project header
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: project header
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetIntegrationResult'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'conflict: resource already exists'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
    /rpc/integrations.list:
        get:
            description: List available third-party integrations.
            operationId: listIntegrations
            parameters:
                - allowEmptyValue: true
                  description: Keywords to filter integrations by
                  in: query
                  name: keywords
                  schema:
                    description: Keywords to filter integrations by
                    items:
                        maxLength: 20
                        type: string
                    type: array
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListIntegrationsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: list integrations
            tags:
                - integrations
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: ListIntegrations
    /rpc/internalSessionIssuers.get:
        get:
            description: 'Read the organization''s internal session issuer: its state, the issuer URI to register with supported services and its published keys. Requires org:read.'
            operationId: getInternalSessionIssuer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/InternalSessionIssuer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: get internalSessionIssuers
            tags:
                - internalSessionIssuers
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: InternalSessionIssuer
    /rpc/internalSessionIssuers.rotate:
        post:
            description: 'Rotate the issuer''s signing key without changing its URI. A routine rotation takes two calls with the same active_kid: the first publishes a new key and returns rotation_ready_at, the second activates it after that time. The hourly sweep also activates a ready key on its own while the issuer is enabled and not paused, so a later second call may find the rotation already done and change nothing; a paused issuer can still be activated with the second call. With compromised set, every current key is revoked and withdrawn from the key set first, leaving the issuer keyless; the revoked keys'' signing material is then disabled and, while the issuer is rolled out and the organization has a verified email domain, a fresh key activated. If either later step fails the issuer stays keyless or reports kms_cleanup_pending, and repeating the call retries it. Repeats naming a key that a compromised rotation already replaced change nothing; naming a key the sweep revoked after a routine rotation still contains its successor. Requires org:admin; a routine rotation also needs an enabled issuer, while a compromised rotation only needs an existing issuer and its revocation is never rate limited.'
            operationId: rotateInternalSessionIssuer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RotateRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/InternalSessionIssuer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: rotate internalSessionIssuers
            tags:
                - internalSessionIssuers
            x-speakeasy-name-override: rotate
            x-speakeasy-react-hook:
                name: RotateInternalSessionIssuer
    /rpc/internalSessionIssuers.setEnabled:
        post:
            description: Enable or disable signing with the organization's internal session issuer. Enabling provisions the issuer with a dedicated Speakeasy-managed signing key the first time; it does not configure trust at any service. Disabling keeps the issuer URI and its published keys. Requires org:admin; enabling also needs a verified email domain and the issuer rollout, while disabling never does.
            operationId: setInternalSessionIssuerEnabled
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetEnabledRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/InternalSessionIssuer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: setEnabled internalSessionIssuers
            tags:
                - internalSessionIssuers
            x-speakeasy-name-override: setEnabled
            x-speakeasy-react-hook:
                name: SetInternalSessionIssuerEnabled
    /rpc/jsonWebKeySets.activateKey:
        post:
            description: Make a published key the set's active signing key, retiring the previously active key in the same operation. The key must be pending or retired; activating the already-active key is a no-op. Requires org:admin.
            operationId: activateJsonWebKey
            parameters:
                - allowEmptyValue: true
                  description: The ID of the key to activate.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the key to activate.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/JSONWebKey'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: activateKey jsonWebKeySets
            tags:
                - jsonWebKeySets
            x-speakeasy-name-override: activateKey
            x-speakeasy-react-hook:
                name: ActivateJsonWebKey
    /rpc/jsonWebKeySets.create:
        post:
            description: Create a JSON Web Key Set backed by an organization external key, minting and publishing the set's first key straight to active. Reads the backing key's public half from the customer's KMS and refuses when the key's real algorithm disagrees with the one recorded against it. Rate limited per organization. Requires org:admin.
            operationId: createJsonWebKeySet
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateJSONWebKeySetForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/JSONWebKeySet'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "429":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'rate_limit_exceeded: rate limit exceeded'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: createSet jsonWebKeySets
            tags:
                - jsonWebKeySets
            x-speakeasy-name-override: create
            x-speakeasy-react-hook:
                name: CreateJsonWebKeySet
    /rpc/jsonWebKeySets.delete:
        delete:
            description: Soft-delete a JSON Web Key Set by ID, withdrawing every key still published in it in the same operation. Refused with a conflict while any live remote_session_client still references the set — detach it there first; see getDeletePreflight. Requires org:admin. Tokens signed with the set's keys stop verifying, so treat this as decommissioning the set's whole trust anchor rather than tidying up.
            operationId: deleteJsonWebKeySet
            parameters:
                - allowEmptyValue: true
                  description: The ID of the key set to delete.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the key set to delete.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: deleteSet jsonWebKeySets
            tags:
                - jsonWebKeySets
            x-speakeasy-name-override: delete
            x-speakeasy-react-hook:
                name: DeleteJsonWebKeySet
    /rpc/jsonWebKeySets.get:
        get:
            description: Get a JSON Web Key Set by ID. Requires org:read.
            operationId: getJsonWebKeySet
            parameters:
                - allowEmptyValue: true
                  description: The ID of the key set to get.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the key set to get.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/JSONWebKeySet'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getSet jsonWebKeySets
            tags:
                - jsonWebKeySets
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: GetJsonWebKeySet
    /rpc/jsonWebKeySets.getDeletePreflight:
        get:
            description: 'Authoritative impact summary for deleting a JSON Web Key Set: the remote_session_clients still referencing it. deleteSet returns a conflict for exactly the sets this reports a non-zero client_count for. Requires org:read.'
            operationId: getJsonWebKeySetDeletePreflight
            parameters:
                - allowEmptyValue: true
                  description: The ID of the key set to summarize.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the key set to summarize.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/JSONWebKeySetDeletePreflight'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getSetDeletePreflight jsonWebKeySets
            tags:
                - jsonWebKeySets
            x-speakeasy-name-override: getDeletePreflight
            x-speakeasy-react-hook:
                name: JsonWebKeySetDeletePreflight
    /rpc/jsonWebKeySets.list:
        get:
            description: List the organization's JSON Web Key Sets. Requires org:read.
            operationId: listJsonWebKeySets
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListJSONWebKeySetsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listSets jsonWebKeySets
            tags:
                - jsonWebKeySets
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: ListJsonWebKeySets
    /rpc/jsonWebKeySets.listKeys:
        get:
            description: List a JSON Web Key Set's published keys, newest first. Revoked keys drop out of the default listing; pass include_revoked to see the set's full revocation history. Requires org:read.
            operationId: listJsonWebKeys
            parameters:
                - allowEmptyValue: true
                  description: The ID of the key set whose keys to list.
                  in: query
                  name: set_id
                  required: true
                  schema:
                    description: The ID of the key set whose keys to list.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Also return revoked keys.
                  in: query
                  name: include_revoked
                  schema:
                    default: false
                    description: Also return revoked keys.
                    type: boolean
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListJSONWebKeysResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listKeys jsonWebKeySets
            tags:
                - jsonWebKeySets
            x-speakeasy-name-override: listKeys
            x-speakeasy-react-hook:
                name: ListJsonWebKeys
    /rpc/jsonWebKeySets.publishKey:
        post:
            description: Mint and publish a new key from the set's current backing external key. The key is published as pending — visible to verifiers so their caches warm up — unless the set has no active key, in which case it activates immediately. Publishing the same backing key again while its kid is present in the set (including revoked) is refused as a conflict. Reads the public half from the customer's KMS; rate limited per organization. Requires org:admin.
            operationId: publishJsonWebKey
            parameters:
                - allowEmptyValue: true
                  description: The ID of the key set to publish into.
                  in: query
                  name: set_id
                  required: true
                  schema:
                    description: The ID of the key set to publish into.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/JSONWebKey'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "429":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'rate_limit_exceeded: rate limit exceeded'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: publishKey jsonWebKeySets
            tags:
                - jsonWebKeySets
            x-speakeasy-name-override: publishKey
            x-speakeasy-react-hook:
                name: PublishJsonWebKey
    /rpc/jsonWebKeySets.retireKey:
        post:
            description: 'Take the set''s active key out of signing use without withdrawing it: the key stays published so tokens already signed with it keep verifying. The key must be active. This is the graceful wind-down; use revoke when the key must stop verifying too. Requires org:admin.'
            operationId: retireJsonWebKey
            parameters:
                - allowEmptyValue: true
                  description: The ID of the key to retire.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the key to retire.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/JSONWebKey'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: retireKey jsonWebKeySets
            tags:
                - jsonWebKeySets
            x-speakeasy-name-override: retireKey
            x-speakeasy-react-hook:
                name: RetireJsonWebKey
    /rpc/jsonWebKeySets.revokeKey:
        post:
            description: 'Withdraw a published key entirely: it leaves the published set and tokens signed with it stop verifying. This is the compromise response, not the graceful wind-down — use retire for that. A revoked kid can never be republished into the set. Requires org:admin.'
            operationId: revokeJsonWebKey
            parameters:
                - allowEmptyValue: true
                  description: The ID of the key to revoke.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the key to revoke.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/JSONWebKey'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: revokeKey jsonWebKeySets
            tags:
                - jsonWebKeySets
            x-speakeasy-name-override: revokeKey
            x-speakeasy-react-hook:
                name: RevokeJsonWebKey
    /rpc/jsonWebKeySets.update:
        post:
            description: 'Update a JSON Web Key Set''s name and backing external key. Requires org:admin. Both fields are replaced, not patched. Re-pointing the backing key is how rotation begins: point the set at the new external key, then publish a key from it. Already-published keys are unaffected — each keeps signing with the external key it was minted from.'
            operationId: updateJsonWebKeySet
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateJSONWebKeySetRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/JSONWebKeySet'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: updateSet jsonWebKeySets
            tags:
                - jsonWebKeySets
            x-speakeasy-name-override: update
            x-speakeasy-react-hook:
                name: UpdateJsonWebKeySet
    /rpc/keys.create:
        post:
            description: Create a new api key
            operationId: createAPIKey
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateKeyForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Key'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: createKey keys
            tags:
                - keys
            x-speakeasy-name-override: create
            x-speakeasy-react-hook:
                name: CreateAPIKey
    /rpc/keys.extendAgentKeys:
        post:
            description: 'Add mcp:connect grants to every live key the caller issued for an agent, so servers the agent is given reach the keys it already runs with. Each key''s new policy is checked like issuance: the agent, its owner and the caller must all allow it. Keys issued by someone else are left as they are. The result lists only the keys this call changed: keys that already held the grants, expired keys and other people''s keys are not in it.'
            operationId: extendAgentAPIKeys
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ExtendAgentKeysForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListKeysResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: extendAgentKeys keys
            tags:
                - keys
            x-speakeasy-name-override: extendAgentKeys
            x-speakeasy-react-hook:
                name: ExtendAgentAPIKeys
    /rpc/keys.list:
        get:
            description: List all api keys for an organization
            operationId: listAPIKeys
            parameters:
                - allowEmptyValue: true
                  description: When set, list keys for this first-class agent
                  in: query
                  name: agent_id
                  schema:
                    description: When set, list keys for this first-class agent
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListKeysResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listKeys keys
            tags:
                - keys
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: ListAPIKeys
    /rpc/keys.revoke:
        delete:
            description: Revoke a api key
            operationId: revokeAPIKey
            parameters:
                - allowEmptyValue: true
                  description: The ID of the key to revoke
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the key to revoke
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: revokeKey keys
            tags:
                - keys
            x-speakeasy-name-override: revokeById
            x-speakeasy-react-hook:
                name: RevokeAPIKey
    /rpc/keys.rotate:
        post:
            description: Rotate an API key. Agent-key rotation replaces immutable delegation and directly revokes the old row.
            operationId: rotateAPIKey
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RotateKeyForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Key'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: rotateKey keys
            tags:
                - keys
            x-speakeasy-name-override: rotate
    /rpc/keys.updatePolicy:
        post:
            description: 'Replace an ordinary key''s own policy: the mcp:connect and mcp:auth grants, and their blocks, its server and auth client access is evaluated against. Agent keys keep their delegated grants. Requires org admin.'
            operationId: updateAPIKeyPolicy
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateKeyPolicyRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Key'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: updateKeyPolicy keys
            tags:
                - keys
            x-speakeasy-name-override: updatePolicy
            x-speakeasy-react-hook:
                name: UpdateAPIKeyPolicy
    /rpc/keys.verify:
        get:
            description: Verify an api key
            operationId: validateAPIKey
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ValidateKeyResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
            summary: verifyKey keys
            tags:
                - keys
            x-speakeasy-name-override: validate
            x-speakeasy-react-hook:
                name: ValidateAPIKey
    /rpc/killswitches.batchUserBadges:
        post:
            operationId: batchKillswitchUserBadges
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/KillswitchBatchUserBadgesRequest'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/KillswitchBatchUserBadgesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: batchUserBadges killswitches
            tags:
                - killswitches
            x-speakeasy-name-override: batchUserBadges
            x-speakeasy-react-hook:
                name: BatchKillswitchUserBadges
    /rpc/killswitches.create:
        post:
            operationId: createKillswitch
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/KillswitchCreateRequest'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/KillswitchMutationReceipt'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/KillswitchConflict'
                    description: 'operation_conflict: The operation ID was already used for a different request.'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: create killswitches
            tags:
                - killswitches
            x-speakeasy-name-override: create
            x-speakeasy-react-hook:
                name: CreateKillswitch
    /rpc/killswitches.edit:
        post:
            operationId: editKillswitch
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/KillswitchEditRequest'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/KillswitchMutationReceipt'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/KillswitchConflict'
                    description: 'version_conflict: The killswitch changed after the supplied version.'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: edit killswitches
            tags:
                - killswitches
            x-speakeasy-name-override: edit
            x-speakeasy-react-hook:
                name: EditKillswitch
    /rpc/killswitches.get:
        get:
            operationId: getKillswitch
            parameters:
                - allowEmptyValue: true
                  in: query
                  name: id
                  required: true
                  schema:
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/KillswitchDetail'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: get killswitches
            tags:
                - killswitches
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: Killswitch
    /rpc/killswitches.lift:
        post:
            operationId: liftKillswitch
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/KillswitchLiftRequest'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/KillswitchLiftResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/KillswitchConflict'
                    description: 'version_conflict: The killswitch changed after the supplied version.'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: lift killswitches
            tags:
                - killswitches
            x-speakeasy-name-override: lift
            x-speakeasy-react-hook:
                name: LiftKillswitch
    /rpc/killswitches.list:
        get:
            operationId: listKillswitches
            parameters:
                - allowEmptyValue: true
                  in: query
                  name: capability_key
                  schema:
                    enum:
                        - mcp_tool_calls
                    type: string
                - allowEmptyValue: true
                  in: query
                  name: user_id
                  schema:
                    type: string
                - allowEmptyValue: true
                  in: query
                  name: status
                  schema:
                    enum:
                        - active
                        - scheduled
                        - expired
                        - lifted
                    type: string
                - allowEmptyValue: true
                  in: query
                  name: limit
                  schema:
                    format: int32
                    maximum: 100
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  in: query
                  name: cursor
                  schema:
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/KillswitchListResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: list killswitches
            tags:
                - killswitches
            x-speakeasy-name-override: list
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: Killswitches
    /rpc/killswitches.listCapabilities:
        get:
            operationId: listKillswitchCapabilities
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/KillswitchListCapabilitiesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: listCapabilities killswitches
            tags:
                - killswitches
            x-speakeasy-name-override: listCapabilities
            x-speakeasy-react-hook:
                name: KillswitchCapabilities
    /rpc/killswitches.listMCPServers:
        get:
            operationId: listKillswitchMCPServers
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/KillswitchListMCPServersResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: listMCPServers killswitches
            tags:
                - killswitches
            x-speakeasy-name-override: listMCPServers
            x-speakeasy-react-hook:
                name: KillswitchMCPServers
    /rpc/killswitches.previewOverlaps:
        post:
            operationId: previewKillswitchOverlaps
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/KillswitchPreviewOverlapsRequest'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/KillswitchPreviewOverlapsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: previewOverlaps killswitches
            tags:
                - killswitches
            x-speakeasy-name-override: previewOverlaps
            x-speakeasy-react-hook:
                name: PreviewKillswitchOverlaps
    /rpc/launcher.judge:
        post:
            description: Judge which of the supplied command palette candidates the typed query refers to, what kind of action it asks for, and whether the intent is settled enough to act on Enter. Returns probability distributions rather than text. When no intent service is configured the response carries disabled=true and the palette falls back to fuzzy ordering.
            operationId: launcherJudge
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/JudgeRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/LauncherJudgment'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: judge launcher
            tags:
                - launcher
            x-speakeasy-name-override: judge
            x-speakeasy-react-hook:
                name: LauncherJudge
    /rpc/litellm.createInstance:
        post:
            description: Provision a LiteLLM integration for a project and return its plaintext ingestion key once. Requires org:admin.
            operationId: createLiteLLMInstance
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateInstanceRequestBody'
                required: true
            responses:
                "201":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/LitellmInstanceKeyResult'
                    description: Created response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: createInstance litellm
            tags:
                - litellm
            x-speakeasy-name-override: createInstance
            x-speakeasy-react-hook:
                name: CreateLiteLLMInstance
    /rpc/litellm.ingest/beta/litellm_basic_guardrail_api:
        post:
            description: Evaluates and captures a LiteLLM model request before it reaches the provider.
            operationId: ingestLiteLLMGuardrail
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/IngestRequestBody2'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/LitellmIngestResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: ingest litellm
            tags:
                - litellm
            x-speakeasy-name-override: ingestGuardrail
            x-speakeasy-react-hook:
                disabled: true
    /rpc/litellm.listInstances:
        get:
            description: List active and revoked LiteLLM integrations for a project. Plaintext keys are never returned. Requires org:admin.
            operationId: listLiteLLMInstances
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListInstancesResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listInstances litellm
            tags:
                - litellm
            x-speakeasy-name-override: listInstances
            x-speakeasy-react-hook:
                name: LiteLLMInstances
    /rpc/litellm.revokeInstance:
        delete:
            description: Revoke a LiteLLM integration and immediately invalidate its active key. Requires org:admin.
            operationId: revokeLiteLLMInstance
            parameters:
                - allowEmptyValue: true
                  in: query
                  name: id
                  required: true
                  schema:
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: revokeInstance litellm
            tags:
                - litellm
            x-speakeasy-name-override: revokeInstance
            x-speakeasy-react-hook:
                name: RevokeLiteLLMInstance
    /rpc/litellm.rotateInstanceKey:
        post:
            description: Atomically replace a LiteLLM integration key and return the new plaintext value once. Requires org:admin.
            operationId: rotateLiteLLMInstanceKey
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RiskIDRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/LitellmInstanceKeyResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: rotateInstanceKey litellm
            tags:
                - litellm
            x-speakeasy-name-override: rotateInstanceKey
            x-speakeasy-react-hook:
                name: RotateLiteLLMInstanceKey
    /rpc/mcpApproval.createRequest:
        post:
            description: Ask for an MCP server to be reviewed. Repeat asks for the same server attach to the existing review rather than opening a second one.
            operationId: createMcpApprovalRequest
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateRequestRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ApprovalRequestSummary'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: createRequest mcpApproval
            tags:
                - mcpApproval
            x-speakeasy-name-override: createRequest
            x-speakeasy-react-hook:
                name: CreateMcpApprovalRequest
    /rpc/mcpApproval.ensureServerReview:
        post:
            description: Resolve the evidence dossier for a server URL, opening one when none exists. Gathers evidence without recording any ask or decision, so a server can be inspected before — or without — anyone requesting it.
            operationId: ensureMcpServerReview
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/EnsureServerReviewRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ApprovalRequestSummary'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: ensureServerReview mcpApproval
            tags:
                - mcpApproval
            x-speakeasy-name-override: ensureServerReview
            x-speakeasy-react-hook:
                name: EnsureMcpServerReview
    /rpc/mcpApproval.getRequest:
        get:
            description: Fetch one MCP approval request with its evidence and decision history.
            operationId: getMcpApprovalRequest
            parameters:
                - allowEmptyValue: true
                  description: The approval request ID.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The approval request ID.
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ApprovalRequestDetail'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: getRequest mcpApproval
            tags:
                - mcpApproval
            x-speakeasy-name-override: getRequest
            x-speakeasy-react-hook:
                name: GetMcpApprovalRequest
    /rpc/mcpApproval.listRequests:
        get:
            description: List MCP approval requests for a project.
            operationId: listMcpApprovalRequests
            parameters:
                - allowEmptyValue: true
                  description: 'Only return requests in this status: unreviewed, requested, approved, denied, or superseded.'
                  in: query
                  name: status
                  schema:
                    description: 'Only return requests in this status: unreviewed, requested, approved, denied, or superseded.'
                    type: string
                - allowEmptyValue: true
                  description: The number of requests to return per page
                  in: query
                  name: limit
                  schema:
                    description: The number of requests to return per page
                    format: int32
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListApprovalRequestsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listRequests mcpApproval
            tags:
                - mcpApproval
            x-speakeasy-name-override: listRequests
            x-speakeasy-react-hook:
                name: ListMcpApprovalRequests
    /rpc/mcpApproval.promote:
        post:
            description: Promote a risk-policy bypass request into an approval request, carrying its requester and justification into the review queue.
            operationId: promoteMcpApprovalRequest
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/PromoteRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ApprovalRequestSummary'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: promote mcpApproval
            tags:
                - mcpApproval
            x-speakeasy-name-override: promote
            x-speakeasy-react-hook:
                name: PromoteMcpApprovalRequest
    /rpc/mcpApproval.recordDecision:
        post:
            description: Approve or deny an MCP approval request, recording the rationale and who it applies to.
            operationId: recordMcpApprovalDecision
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RecordDecisionRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ApprovalDecision'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: recordDecision mcpApproval
            tags:
                - mcpApproval
            x-speakeasy-name-override: recordDecision
            x-speakeasy-react-hook:
                name: RecordMcpApprovalDecision
    /rpc/mcpApproval.refreshEvidence:
        post:
            description: Re-run every evidence source for a request and replace its current evidence with the fresh gather. Frozen decision snapshots are never touched.
            operationId: refreshMcpApprovalEvidence
            parameters:
                - allowEmptyValue: true
                  description: The approval request ID.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The approval request ID.
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ApprovalRequestDetail'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: refreshEvidence mcpApproval
            tags:
                - mcpApproval
            x-speakeasy-name-override: refreshEvidence
            x-speakeasy-react-hook:
                name: RefreshMcpApprovalEvidence
    /rpc/mcpApproval.startResearch:
        post:
            description: 'Start a research-agent run for an approval request. The agent searches the web and reads pages about the server''s vendor, then files a cited report; it never decides. Runs are additive — a re-run adds a report rather than replacing one — and at most one run per request is in flight at a time: starting while one runs returns the running report.'
            operationId: startMcpResearch
            parameters:
                - allowEmptyValue: true
                  description: The approval request ID.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The approval request ID.
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ResearchReport'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: startResearch mcpApproval
            tags:
                - mcpApproval
            x-speakeasy-name-override: startResearch
            x-speakeasy-react-hook:
                name: StartMcpResearch
    /rpc/mcpEndpoints.checkSlugAvailability:
        get:
            description: 'Check whether an MCP endpoint slug is available. The uniqueness scope depends on whether a custom_domain_id is provided: platform-domain slugs are checked across all platform-domain endpoints (custom_domain_id IS NULL); custom-domain slugs are checked within the (custom_domain_id, slug) pair. Returns true when the slug is free.'
            operationId: checkMcpEndpointSlugAvailability
            parameters:
                - allowEmptyValue: true
                  description: The slug to check
                  in: query
                  name: slug
                  required: true
                  schema:
                    description: A url-friendly label (up to 128 characters) that addresses an MCP server through a slug-based URL. Platform-domain slugs (no custom domain) must be prefixed with the organization slug.
                    maxLength: 128
                    pattern: ^[a-z0-9_-]{1,128}$
                    type: string
                - allowEmptyValue: true
                  description: Optional custom domain ID. Omit to check platform-domain slug availability.
                  in: query
                  name: custom_domain_id
                  schema:
                    description: Optional custom domain ID. Omit to check platform-domain slug availability.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Optional MCP server the slug is for. Addresses that server may claim, such as its own legacy alias, read as available.
                  in: query
                  name: mcp_server_id
                  schema:
                    description: Optional MCP server the slug is for. Addresses that server may claim, such as its own legacy alias, read as available.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                type: boolean
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: checkMcpEndpointSlugAvailability mcpEndpoints
            tags:
                - mcpEndpoints
            x-speakeasy-name-override: checkSlugAvailability
            x-speakeasy-react-hook:
                name: CheckMcpEndpointSlugAvailability
    /rpc/mcpEndpoints.create:
        post:
            description: Create a new MCP endpoint for an MCP server or a meta MCP server. Provide exactly one of mcp_server_id or meta_mcp_server_id.
            operationId: createMcpEndpoint
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateMcpEndpointForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/McpEndpoint'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: createMcpEndpoint mcpEndpoints
            tags:
                - mcpEndpoints
            x-speakeasy-name-override: create
            x-speakeasy-react-hook:
                name: CreateMcpEndpoint
    /rpc/mcpEndpoints.delete:
        delete:
            description: Delete an MCP endpoint
            operationId: deleteMcpEndpoint
            parameters:
                - allowEmptyValue: true
                  description: The ID of the MCP endpoint to delete
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the MCP endpoint to delete
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: deleteMcpEndpoint mcpEndpoints
            tags:
                - mcpEndpoints
            x-speakeasy-name-override: delete
            x-speakeasy-react-hook:
                name: DeleteMcpEndpoint
    /rpc/mcpEndpoints.get:
        get:
            description: Get an MCP endpoint by id or by (custom_domain_id, slug). Provide either id, or slug with an optional custom_domain_id — not both.
            operationId: getMcpEndpoint
            parameters:
                - allowEmptyValue: true
                  description: The ID of the MCP endpoint
                  in: query
                  name: id
                  schema:
                    description: The ID of the MCP endpoint
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: The ID of the custom domain the endpoint slug is registered under. Omit to look up a platform-domain endpoint.
                  in: query
                  name: custom_domain_id
                  schema:
                    description: The ID of the custom domain the endpoint slug is registered under. Omit to look up a platform-domain endpoint.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: The slug to look up
                  in: query
                  name: slug
                  schema:
                    description: A url-friendly label (up to 128 characters) that addresses an MCP server through a slug-based URL. Platform-domain slugs (no custom domain) must be prefixed with the organization slug.
                    maxLength: 128
                    pattern: ^[a-z0-9_-]{1,128}$
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/McpEndpoint'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: getMcpEndpoint mcpEndpoints
            tags:
                - mcpEndpoints
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: GetMcpEndpoint
    /rpc/mcpEndpoints.list:
        get:
            description: List MCP endpoints for a project. Optionally filter to only those associated with a specific MCP server or meta MCP server (not both).
            operationId: listMcpEndpoints
            parameters:
                - allowEmptyValue: true
                  description: 'Optional filter: only return endpoints associated with this MCP server.'
                  in: query
                  name: mcp_server_id
                  schema:
                    description: 'Optional filter: only return endpoints associated with this MCP server.'
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: 'Optional filter: only return endpoints associated with this meta MCP server.'
                  in: query
                  name: meta_mcp_server_id
                  schema:
                    description: 'Optional filter: only return endpoints associated with this meta MCP server.'
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListMcpEndpointsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listMcpEndpoints mcpEndpoints
            tags:
                - mcpEndpoints
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: McpEndpoints
    /rpc/mcpEndpoints.update:
        post:
            description: 'Update an MCP endpoint. This is a full-record replace: fields omitted from the request become null on the stored record. The id and slug fields are required, along with exactly one of mcp_server_id or meta_mcp_server_id.'
            operationId: updateMcpEndpoint
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateMcpEndpointForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/McpEndpoint'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: updateMcpEndpoint mcpEndpoints
            tags:
                - mcpEndpoints
            x-speakeasy-name-override: update
            x-speakeasy-react-hook:
                name: UpdateMcpEndpoint
    /rpc/mcpMetadata.export:
        post:
            description: Export MCP server details as JSON for documentation and integration purposes. Exactly one of mcp_slug or mcp_server_id must be provided.
            operationId: exportMcpMetadata
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ExportMcpMetadataRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/McpExport'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: exportMcpMetadata mcpMetadata
            tags:
                - mcpMetadata
            x-speakeasy-name-override: export
            x-speakeasy-react-hook:
                name: ExportMcpMetadata
    /rpc/mcpMetadata.get:
        get:
            description: Fetch the metadata that powers the MCP install page. Exactly one of toolset_slug or mcp_server_id must be provided.
            operationId: getMcpMetadata
            parameters:
                - allowEmptyValue: true
                  description: The slug of the toolset associated with this install page metadata. Mutually exclusive with mcp_server_id.
                  in: query
                  name: toolset_slug
                  schema:
                    description: A short url-friendly label that uniquely identifies a resource.
                    maxLength: 40
                    pattern: ^[a-z0-9_-]{1,128}$
                    type: string
                - allowEmptyValue: true
                  description: The ID of the MCP server associated with this install page metadata. Mutually exclusive with toolset_slug.
                  in: query
                  name: mcp_server_id
                  schema:
                    description: The ID of the MCP server associated with this install page metadata. Mutually exclusive with toolset_slug.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetMcpMetadataResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getMcpMetadata mcpMetadata
            tags:
                - mcpMetadata
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: GetMcpMetadata
    /rpc/mcpMetadata.set:
        post:
            description: Create or update the metadata that powers the MCP install page. Exactly one of toolset_slug or mcp_server_id must be provided.
            operationId: setMcpMetadata
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetMcpMetadataRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/McpMetadata'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: setMcpMetadata mcpMetadata
            tags:
                - mcpMetadata
            x-speakeasy-name-override: set
    /rpc/mcpRegistries.clearCache:
        delete:
            description: Clear the registry cache for a specific registry (admin only)
            operationId: clearMCPRegistryCache
            parameters:
                - allowEmptyValue: true
                  description: The registry to clear cache for
                  in: query
                  name: registry_id
                  required: true
                  schema:
                    description: The registry to clear cache for
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: clearCache mcpRegistries
            tags:
                - mcpRegistries
            x-speakeasy-name-override: clearCache
    /rpc/mcpRegistries.getServerDetails:
        get:
            description: Get detailed information about an MCP server including remotes
            operationId: getMCPServerDetails
            parameters:
                - allowEmptyValue: true
                  description: ID of the registry
                  in: query
                  name: registry_id
                  required: true
                  schema:
                    description: ID of the registry
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Server specifier (e.g., 'io.github.user/server')
                  in: query
                  name: server_specifier
                  required: true
                  schema:
                    description: Server specifier (e.g., 'io.github.user/server')
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ExternalMCPServer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: getServerDetails mcpRegistries
            tags:
                - mcpRegistries
            x-speakeasy-name-override: getServerDetails
    /rpc/mcpRegistries.getSetupDocs:
        get:
            description: Get the published setup documentation for an upstream MCP server, located by endpoint URL and/or registry identifier
            operationId: getMCPSetupDocs
            parameters:
                - allowEmptyValue: true
                  description: URL of the upstream MCP server endpoint
                  example: https://mcp.box.com
                  in: query
                  name: server_url
                  schema:
                    description: URL of the upstream MCP server endpoint
                    example: https://mcp.box.com
                    type: string
                - allowEmptyValue: true
                  description: Registry specifier for the server, as returned by listCatalog (e.g., 'io.example/server')
                  example: io.example/server
                  in: query
                  name: registry_specifier
                  schema:
                    description: Registry specifier for the server, as returned by listCatalog (e.g., 'io.example/server')
                    example: io.example/server
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetSetupDocsResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: getSetupDocs mcpRegistries
            tags:
                - mcpRegistries
            x-speakeasy-name-override: getSetupDocs
            x-speakeasy-react-hook:
                name: GetMCPSetupDocs
    /rpc/mcpRegistries.listCatalog:
        get:
            description: List available MCP servers from configured registries
            operationId: listMCPCatalog
            parameters:
                - allowEmptyValue: true
                  description: Filter to a specific registry
                  in: query
                  name: registry_id
                  schema:
                    description: Filter to a specific registry
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Search query to filter servers by name
                  in: query
                  name: search
                  schema:
                    description: Search query to filter servers by name
                    type: string
                - allowEmptyValue: true
                  description: Pagination cursor
                  in: query
                  name: cursor
                  schema:
                    description: Pagination cursor
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListCatalogResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listCatalog mcpRegistries
            tags:
                - mcpRegistries
            x-speakeasy-name-override: listCatalog
            x-speakeasy-react-hook:
                name: ListMCPCatalog
    /rpc/mcpRegistries.listRegistries:
        get:
            description: List all MCP registries (admin only)
            operationId: listMCPRegistries
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListRegistriesResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listRegistries mcpRegistries
            tags:
                - mcpRegistries
            x-speakeasy-name-override: listRegistries
            x-speakeasy-react-hook:
                name: ListMCPRegistries
    /rpc/mcpServers.addToolMetadataBatch:
        post:
            description: Strictly additive batch insert of tool metadata for an MCP server. Every tool in the payload is inserted; if any of them already has a live stored entry the whole batch fails with a conflict and nothing is inserted. Stored tools absent from the payload are left untouched and nothing is deleted. Callers are expected to send only tools they know are new.
            operationId: addMcpServerToolMetadataBatch
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetToolMetadataBatchRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AddToolMetadataBatchResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: addToolMetadataBatch mcpServers
            tags:
                - mcpServers
            x-speakeasy-name-override: addToolMetadataBatch
            x-speakeasy-react-hook:
                name: AddMcpServerToolMetadataBatch
    /rpc/mcpServers.create:
        post:
            description: Create a new MCP server
            operationId: createMcpServer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateMcpServerForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/McpServer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: createMcpServer mcpServers
            tags:
                - mcpServers
            x-speakeasy-name-override: create
            x-speakeasy-react-hook:
                name: CreateMcpServer
    /rpc/mcpServers.delete:
        delete:
            description: Delete an MCP server. A toolset's own hosted server (its id equals the toolset id) is disabled instead, as turning MCP off on the toolset does, and stays listed with visibility disabled. Other servers, including other toolset-backed ones, are deleted.
            operationId: deleteMcpServer
            parameters:
                - allowEmptyValue: true
                  description: The ID of the MCP server to delete
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the MCP server to delete
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: deleteMcpServer mcpServers
            tags:
                - mcpServers
            x-speakeasy-name-override: delete
            x-speakeasy-react-hook:
                name: DeleteMcpServer
    /rpc/mcpServers.deleteToolMetadata:
        delete:
            description: Soft-delete a single tool metadata entry.
            operationId: deleteMcpServerToolMetadata
            parameters:
                - allowEmptyValue: true
                  description: The ID of the MCP server the tool metadata belongs to
                  in: query
                  name: mcp_server_id
                  required: true
                  schema:
                    description: The ID of the MCP server the tool metadata belongs to
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: The name of the tool to delete
                  in: query
                  name: tool_name
                  required: true
                  schema:
                    description: The name of the tool to delete
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: deleteToolMetadata mcpServers
            tags:
                - mcpServers
            x-speakeasy-name-override: deleteToolMetadata
            x-speakeasy-react-hook:
                name: DeleteMcpServerToolMetadata
    /rpc/mcpServers.get:
        get:
            description: Get an MCP server by ID, slug, or backing toolset ID. Exactly one selector must be provided. Toolset lookup prefers enabled servers, then the canonical wrapper, then the oldest server.
            operationId: getMcpServer
            parameters:
                - allowEmptyValue: true
                  description: The ID of the MCP server. Mutually exclusive with slug.
                  in: query
                  name: id
                  schema:
                    description: The ID of the MCP server. Mutually exclusive with slug.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: The slug of the MCP server. Mutually exclusive with id.
                  in: query
                  name: slug
                  schema:
                    description: The slug of the MCP server. Mutually exclusive with id.
                    type: string
                - allowEmptyValue: true
                  description: Resolve the preferred MCP server for this toolset. Mutually exclusive with id and slug.
                  in: query
                  name: toolset_id
                  schema:
                    description: Resolve the preferred MCP server for this toolset. Mutually exclusive with id and slug.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/McpServer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: getMcpServer mcpServers
            tags:
                - mcpServers
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: GetMcpServer
    /rpc/mcpServers.getUsageImpact:
        get:
            description: 'Preview who a breaking change to an MCP server affects: the server''s active signed-in connections and when each subject last used them. Authorizes the caller as updateMcpServer does. Only sessions issued by the server''s user session issuer are counted, so servers without sign-in report sign_in_required=false and no subjects.'
            operationId: getMcpServerUsageImpact
            parameters:
                - allowEmptyValue: true
                  description: The ID of the MCP server
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the MCP server
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/McpServerUsageImpact'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: getMcpServerUsageImpact mcpServers
            tags:
                - mcpServers
            x-speakeasy-name-override: getUsageImpact
            x-speakeasy-react-hook:
                name: McpServerUsageImpact
    /rpc/mcpServers.list:
        get:
            description: List MCP servers for a project. Accepts optional remote_mcp_server_id, tunneled_mcp_server_id, toolset_id, or unproxied_mcp_server_id filters to scope the result to a single backend; at most one filter may be supplied since the backends are mutually exclusive.
            operationId: listMcpServers
            parameters:
                - allowEmptyValue: true
                  description: Filter to MCP servers backed by this remote MCP server
                  in: query
                  name: remote_mcp_server_id
                  schema:
                    description: Filter to MCP servers backed by this remote MCP server
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Filter to MCP servers backed by this tunneled MCP server
                  in: query
                  name: tunneled_mcp_server_id
                  schema:
                    description: Filter to MCP servers backed by this tunneled MCP server
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Filter to MCP servers backed by this toolset
                  in: query
                  name: toolset_id
                  schema:
                    description: Filter to MCP servers backed by this toolset
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Filter to MCP servers backed by this unproxied MCP server
                  in: query
                  name: unproxied_mcp_server_id
                  schema:
                    description: Filter to MCP servers backed by this unproxied MCP server
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListMcpServersResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listMcpServers mcpServers
            tags:
                - mcpServers
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: McpServers
    /rpc/mcpServers.listForOrg:
        get:
            description: List all MCP servers across the organization
            operationId: listMcpServersForOrg
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListMcpServersResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: listMcpServersForOrg mcpServers
            tags:
                - mcpServers
            x-speakeasy-name-override: listForOrg
            x-speakeasy-react-hook:
                name: ListMcpServersForOrg
    /rpc/mcpServers.listToolFilters:
        get:
            description: List the tool filter scopes (tags) available on an MCP server and the tools under each, including tools excluded from all filters. Exactly one of id or slug must be provided. Read-only; reflects the explicit tool variations group resolved from the chain (mcp_servers then toolsets), deriving effective tags with the same logic as the runtime ?tags= filter. Returns filtering disabled when no explicit group is set.
            operationId: listMcpServerToolFilters
            parameters:
                - allowEmptyValue: true
                  description: The ID of the MCP server. Mutually exclusive with slug.
                  in: query
                  name: id
                  schema:
                    description: The ID of the MCP server. Mutually exclusive with slug.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: The slug of the MCP server. Mutually exclusive with id.
                  in: query
                  name: slug
                  schema:
                    description: The slug of the MCP server. Mutually exclusive with id.
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListToolFiltersResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listToolFilters mcpServers
            tags:
                - mcpServers
            x-speakeasy-name-override: listToolFilters
            x-speakeasy-react-hook:
                name: ListMcpServerToolFilters
    /rpc/mcpServers.listToolMetadata:
        get:
            description: List stored tool metadata for an MCP server.
            operationId: listMcpServerToolMetadata
            parameters:
                - allowEmptyValue: true
                  description: The ID of the MCP server the tool metadata belongs to
                  in: query
                  name: mcp_server_id
                  required: true
                  schema:
                    description: The ID of the MCP server the tool metadata belongs to
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Include soft-deleted tool metadata entries in the result. Deleted entries carry a deleted_at timestamp.
                  in: query
                  name: include_deleted
                  schema:
                    description: Include soft-deleted tool metadata entries in the result. Deleted entries carry a deleted_at timestamp.
                    type: boolean
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListToolMetadataResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listToolMetadata mcpServers
            tags:
                - mcpServers
            x-speakeasy-name-override: listToolMetadata
            x-speakeasy-react-hook:
                name: ListMcpServerToolMetadata
    /rpc/mcpServers.setToolMetadata:
        put:
            description: 'Set the annotation hints of a single tool metadata entry (manual override). This is a full-record replace: omitted hints become unset on the stored record.'
            operationId: setMcpServerToolMetadata
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetToolMetadataRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ToolMetadata'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: setToolMetadata mcpServers
            tags:
                - mcpServers
            x-speakeasy-name-override: setToolMetadata
            x-speakeasy-react-hook:
                name: SetMcpServerToolMetadata
    /rpc/mcpServers.setToolMetadataBatch:
        put:
            description: Authoritative batch upsert of tool metadata for an MCP server. Every tool in the payload is upserted and any stored tool absent from the payload is soft-deleted, all in one transaction.
            operationId: setMcpServerToolMetadataBatch
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetToolMetadataBatchRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SetToolMetadataBatchResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: setToolMetadataBatch mcpServers
            tags:
                - mcpServers
            x-speakeasy-name-override: setToolMetadataBatch
            x-speakeasy-react-hook:
                name: SetMcpServerToolMetadataBatch
    /rpc/mcpServers.update:
        post:
            description: 'Update an MCP server. This is a full-record replace for the optional UUID references: fields omitted from the request become null on the stored record. name is an exception — omitting it leaves the existing display name unchanged, while providing it requires a non-empty value and recomputes the server-side slug. The id and visibility fields are required; exactly one of remote_mcp_server_id, tunneled_mcp_server_id, or toolset_id must be provided.'
            operationId: updateMcpServer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateMcpServerForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/McpServer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: updateMcpServer mcpServers
            tags:
                - mcpServers
            x-speakeasy-name-override: update
            x-speakeasy-react-hook:
                name: UpdateMcpServer
    /rpc/metaMcp.addMember:
        post:
            description: Add an MCP server to a meta MCP server's member set
            operationId: addMetaMcpMember
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/AddMetaMcpMemberForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/MetaMcpMember'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: addMetaMcpMember metaMcp
            tags:
                - metaMcp
            x-speakeasy-name-override: addMember
            x-speakeasy-react-hook:
                name: AddMetaMcpMember
    /rpc/metaMcp.create:
        post:
            description: Create a new meta MCP server
            operationId: createMetaMcpServer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateMetaMcpServerForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/MetaMcpServer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: createMetaMcpServer metaMcp
            tags:
                - metaMcp
            x-speakeasy-name-override: create
            x-speakeasy-react-hook:
                name: CreateMetaMcpServer
    /rpc/metaMcp.delete:
        delete:
            description: Delete a meta MCP server. Its live memberships and MCP endpoints are deleted along with it.
            operationId: deleteMetaMcpServer
            parameters:
                - allowEmptyValue: true
                  description: The ID of the meta MCP server to delete
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the meta MCP server to delete
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: deleteMetaMcpServer metaMcp
            tags:
                - metaMcp
            x-speakeasy-name-override: delete
            x-speakeasy-react-hook:
                name: DeleteMetaMcpServer
    /rpc/metaMcp.get:
        get:
            description: Get a meta MCP server by id
            operationId: getMetaMcpServer
            parameters:
                - allowEmptyValue: true
                  description: The ID of the meta MCP server
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the meta MCP server
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/MetaMcpServer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: getMetaMcpServer metaMcp
            tags:
                - metaMcp
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: GetMetaMcpServer
    /rpc/metaMcp.list:
        get:
            description: List meta MCP servers for a project
            operationId: listMetaMcpServers
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListMetaMcpServersResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listMetaMcpServers metaMcp
            tags:
                - metaMcp
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: MetaMcpServers
    /rpc/metaMcp.listMembers:
        get:
            description: List the members of a meta MCP server, ordered by sort order
            operationId: listMetaMcpMembers
            parameters:
                - allowEmptyValue: true
                  description: The ID of the meta MCP server
                  in: query
                  name: meta_mcp_server_id
                  required: true
                  schema:
                    description: The ID of the meta MCP server
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListMetaMcpMembersResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listMetaMcpMembers metaMcp
            tags:
                - metaMcp
            x-speakeasy-name-override: listMembers
            x-speakeasy-react-hook:
                name: MetaMcpMembers
    /rpc/metaMcp.removeMember:
        delete:
            description: Remove a member from a meta MCP server
            operationId: removeMetaMcpMember
            parameters:
                - allowEmptyValue: true
                  description: The ID of the membership to remove
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the membership to remove
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: removeMetaMcpMember metaMcp
            tags:
                - metaMcp
            x-speakeasy-name-override: removeMember
            x-speakeasy-react-hook:
                name: RemoveMetaMcpMember
    /rpc/metaMcp.update:
        post:
            description: Update a meta MCP server. Omitting user_session_issuer_id preserves the stored issuer, and a gateway that would end up without one gets a dedicated issuer minted — an update can never leave a gateway serving anonymously. Omitting visibility or network_access_mode preserves the respective stored value, so a caller that does not manage those policies cannot change them by saving an unrelated field.
            operationId: updateMetaMcpServer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateMetaMcpServerForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/MetaMcpServer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: updateMetaMcpServer metaMcp
            tags:
                - metaMcp
            x-speakeasy-name-override: update
            x-speakeasy-react-hook:
                name: UpdateMetaMcpServer
    /rpc/metaMcp.updateMember:
        post:
            description: Update a meta MCP membership's sort order
            operationId: updateMetaMcpMember
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateMetaMcpMemberForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/MetaMcpMember'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: updateMetaMcpMember metaMcp
            tags:
                - metaMcp
            x-speakeasy-name-override: updateMember
            x-speakeasy-react-hook:
                name: UpdateMetaMcpMember
    /rpc/modelKeys.deleteKey:
        delete:
            description: Delete a model provider key. Completions on the affected slot fall back to the project default key or the platform key.
            operationId: deleteModelProviderKey
            parameters:
                - allowEmptyValue: true
                  description: The ID of the key to delete.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the key to delete.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: deleteKey modelKeys
            tags:
                - modelKeys
            x-speakeasy-name-override: deleteKey
            x-speakeasy-react-hook:
                name: DeleteModelProviderKey
    /rpc/modelKeys.listKeys:
        get:
            description: List the model provider keys configured for a project. Key material is never returned.
            operationId: listModelProviderKeys
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListKeysResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listKeys modelKeys
            tags:
                - modelKeys
            x-speakeasy-name-override: listKeys
            x-speakeasy-react-hook:
                name: ModelProviderKeys
    /rpc/modelKeys.setKeyEnabled:
        post:
            description: Enable or disable a model provider key without replacing its key material.
            operationId: setModelProviderKeyEnabled
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetKeyEnabledRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ModelProviderKey'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: setKeyEnabled modelKeys
            tags:
                - modelKeys
            x-speakeasy-name-override: setKeyEnabled
            x-speakeasy-react-hook:
                name: SetModelProviderKeyEnabled
    /rpc/modelKeys.upsertKey:
        post:
            description: Create or replace the model provider key for a slot. The key is validated with the provider, then stored encrypted.
            operationId: upsertModelProviderKey
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpsertKeyRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ModelProviderKey'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: upsertKey modelKeys
            tags:
                - modelKeys
            x-speakeasy-name-override: upsertKey
            x-speakeasy-react-hook:
                name: UpsertModelProviderKey
    /rpc/networkIngress.checkHealth:
        post:
            description: Signal reconciliation and return the latest observed ingress health.
            operationId: checkNetworkIngressHealth
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/NetworkIngress'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: checkHealth networkIngress
            tags:
                - networkIngress
            x-speakeasy-name-override: checkHealth
    /rpc/networkIngress.create:
        post:
            description: Create the organization's Tailscale ingress. Provider credentials are encrypted and never returned.
            operationId: createNetworkIngress
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateIngressRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/NetworkIngress'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: createIngress networkIngress
            tags:
                - networkIngress
            x-speakeasy-name-override: createIngress
            x-speakeasy-react-hook:
                name: CreateNetworkIngress
    /rpc/networkIngress.delete:
        delete:
            description: Soft-delete the ingress and retain provider identities until cleanup is confirmed.
            operationId: deleteNetworkIngress
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: deleteIngress networkIngress
            tags:
                - networkIngress
            x-speakeasy-name-override: deleteIngress
    /rpc/networkIngress.get:
        get:
            description: Get the active network ingress for the current organization, when configured.
            operationId: getNetworkIngress
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/NetworkIngressResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getIngress networkIngress
            tags:
                - networkIngress
            x-speakeasy-name-override: getIngress
            x-speakeasy-react-hook:
                name: NetworkIngress
    /rpc/networkIngress.getDeleteImpact:
        get:
            description: Count hosted MCP servers that retain dual or private-only modes after ingress deletion.
            operationId: getNetworkIngressDeleteImpact
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/NetworkIngressDeleteImpact'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getDeleteImpact networkIngress
            tags:
                - networkIngress
            x-speakeasy-name-override: getDeleteImpact
    /rpc/networkIngress.rotateCredentials:
        post:
            description: Replace the provider OAuth client credentials without returning either value.
            operationId: rotateNetworkIngressCredentials
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RotateCredentialsRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/NetworkIngress'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: rotateCredentials networkIngress
            tags:
                - networkIngress
            x-speakeasy-name-override: rotateCredentials
            x-speakeasy-react-hook:
                name: RotateNetworkIngressCredentials
    /rpc/networkIngress.update:
        post:
            description: Update desired ingress settings. Enabling is expansion-gated; disabling remains available after gate removal.
            operationId: updateNetworkIngress
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateIngressRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/NetworkIngress'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: updateIngress networkIngress
            tags:
                - networkIngress
            x-speakeasy-name-override: updateIngress
            x-speakeasy-react-hook:
                name: UpdateNetworkIngress
    /rpc/oktaResourceConnections.confirm:
        post:
            description: Record that the administrator created the agent-to-resource connections for these servers in the identity provider console, with the audience each resource app is configured with. Servers that share an upstream share one Okta resource connection. Confirmation is the administrator's word; Speakeasy cannot check it. The connection must be verified or degraded. Requires org:admin and the okta-connections rollout.
            operationId: confirmOktaResourceConnections
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ConfirmOktaResourceConnectionsRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ConfirmOktaResourceConnectionsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "412":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'failed_precondition: resource is not in a valid state for this operation'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: confirm oktaResourceConnections
            tags:
                - oktaResourceConnections
            x-speakeasy-name-override: confirm
            x-speakeasy-react-hook:
                name: ConfirmOktaResourceConnections
    /rpc/oktaResourceConnections.list:
        get:
            description: List the Okta resource connection and derived state of every eligible MCP server. Requires org:admin and a live identity provider connection.
            operationId: listOktaResourceConnections
            parameters:
                - allowEmptyValue: true
                  description: Include connected, verified and not-applicable servers.
                  in: query
                  name: include_all
                  schema:
                    default: false
                    description: Include connected, verified and not-applicable servers.
                    type: boolean
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListOktaResourceConnectionsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "412":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'failed_precondition: resource is not in a valid state for this operation'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: list oktaResourceConnections
            tags:
                - oktaResourceConnections
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: OktaResourceConnections
    /rpc/oktaResourceConnections.reset:
        post:
            description: Delete the Okta resource connection for this server's upstream so it, and every server sharing that upstream, shows as pending again. Requires org:admin.
            operationId: resetOktaResourceConnection
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ResetOktaResourceConnectionRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/OktaResourceConnectionServer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "412":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'failed_precondition: resource is not in a valid state for this operation'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: reset oktaResourceConnections
            tags:
                - oktaResourceConnections
            x-speakeasy-name-override: reset
            x-speakeasy-react-hook:
                name: ResetOktaResourceConnection
    /rpc/oktaServerSuggestions.dismiss:
        post:
            description: Dismiss a suggestion currently made to the organization. Remembered until restored, even across Okta reconnects. Requires org:admin and the okta-connections rollout.
            operationId: dismissOktaServerSuggestion
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DismissOktaServerSuggestionRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/OktaServerSuggestion'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "412":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'failed_precondition: resource is not in a valid state for this operation'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: dismiss oktaServerSuggestions
            tags:
                - oktaServerSuggestions
            x-speakeasy-name-override: dismiss
            x-speakeasy-react-hook:
                name: DismissOktaServerSuggestion
    /rpc/oktaServerSuggestions.list:
        get:
            description: List the catalog servers suggested from the Okta applications snapshot. Requires org:admin, the okta-connections rollout and a verified identity provider connection.
            operationId: listOktaServerSuggestions
            parameters:
                - allowEmptyValue: true
                  description: Include dismissed and installed suggestions.
                  in: query
                  name: include_all
                  schema:
                    default: false
                    description: Include dismissed and installed suggestions.
                    type: boolean
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListOktaServerSuggestionsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "412":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'failed_precondition: resource is not in a valid state for this operation'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: list oktaServerSuggestions
            tags:
                - oktaServerSuggestions
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: OktaServerSuggestions
    /rpc/oktaServerSuggestions.restore:
        post:
            description: Restore a dismissed suggestion currently made to the organization. Requires org:admin and the okta-connections rollout.
            operationId: restoreOktaServerSuggestion
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RestoreOktaServerSuggestionRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/OktaServerSuggestion'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "412":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'failed_precondition: resource is not in a valid state for this operation'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: restore oktaServerSuggestions
            tags:
                - oktaServerSuggestions
            x-speakeasy-name-override: restore
            x-speakeasy-react-hook:
                name: RestoreOktaServerSuggestion
    /rpc/orgEncryption.completeSwitch:
        post:
            description: 'Complete an in-flight key switch now instead of waiting for the grace period: drop the previous key''s wraps. Requires org:admin. After this the previous key is no longer needed to read the organization''s data.'
            operationId: completeOrgEncryptionKeySwitch
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/OrgEncryptionConfig'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "412":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'failed_precondition: resource is not in a valid state for this operation'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: completeSwitch orgEncryption
            tags:
                - orgEncryption
            x-speakeasy-name-override: completeSwitch
            x-speakeasy-react-hook:
                name: CompleteOrgEncryptionKeySwitch
    /rpc/orgEncryption.createGcpKey:
        post:
            description: Register a customer-managed GCP KMS symmetric key the organization can switch to. Requires org:admin. The key is not used until the organization switches to it.
            operationId: createOrgEncryptionGcpKey
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateOrgEncryptionGcpKeyForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/OrgEncryptionKey'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "412":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'failed_precondition: resource is not in a valid state for this operation'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: createGcpKey orgEncryption
            tags:
                - orgEncryption
            x-speakeasy-name-override: createGcpKey
            x-speakeasy-react-hook:
                name: CreateOrgEncryptionGcpKey
    /rpc/orgEncryption.deleteKey:
        delete:
            description: Delete a customer-managed encryption key. Requires org:admin. Refused with a conflict while the key is the organization's key, is being switched to or away from, or still wraps any data encryption key, because the data it protects would become unreadable. Speakeasy-managed keys cannot be deleted.
            operationId: deleteOrgEncryptionKey
            parameters:
                - allowEmptyValue: true
                  description: The ID of the key to delete.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the key to delete.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "412":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'failed_precondition: resource is not in a valid state for this operation'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: deleteKey orgEncryption
            tags:
                - orgEncryption
            x-speakeasy-name-override: deleteKey
            x-speakeasy-react-hook:
                name: DeleteOrgEncryptionKey
    /rpc/orgEncryption.getConfig:
        get:
            description: Get the organization's encryption configuration. Requires org:read. Not found until a feature has encrypted data for the organization.
            operationId: getOrgEncryptionConfig
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/OrgEncryptionConfig'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "412":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'failed_precondition: resource is not in a valid state for this operation'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: getConfig orgEncryption
            tags:
                - orgEncryption
            x-speakeasy-name-override: getConfig
            x-speakeasy-react-hook:
                name: OrgEncryptionConfig
    /rpc/orgEncryption.listKeys:
        get:
            description: List the organization's encryption keys, Speakeasy-managed and customer-managed. Requires org:read.
            operationId: listOrgEncryptionKeys
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListOrgEncryptionKeysResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "412":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'failed_precondition: resource is not in a valid state for this operation'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: listKeys orgEncryption
            tags:
                - orgEncryption
            x-speakeasy-name-override: listKeys
            x-speakeasy-react-hook:
                name: OrgEncryptionKeys
    /rpc/orgEncryption.resume:
        post:
            description: Resume a suspended organization after its key was fixed. Requires org:admin. Speakeasy first proves the key unwraps every data encryption key; the hourly health probe also resumes on its own once the key works again.
            operationId: resumeOrgEncryption
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/OrgEncryptionConfig'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "412":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'failed_precondition: resource is not in a valid state for this operation'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: resume orgEncryption
            tags:
                - orgEncryption
            x-speakeasy-name-override: resume
            x-speakeasy-react-hook:
                name: ResumeOrgEncryption
    /rpc/orgEncryption.rollbackSwitch:
        post:
            description: 'Roll back an in-flight key switch: return to the previous key and drop the wraps made under the new one. Requires org:admin.'
            operationId: rollbackOrgEncryptionKeySwitch
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/OrgEncryptionConfig'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "412":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'failed_precondition: resource is not in a valid state for this operation'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: rollbackSwitch orgEncryption
            tags:
                - orgEncryption
            x-speakeasy-name-override: rollbackSwitch
            x-speakeasy-react-hook:
                name: RollbackOrgEncryptionKeySwitch
    /rpc/orgEncryption.rotateDataKey:
        post:
            description: Replace a use case's data encryption key with a new one. Requires org:admin. Values encrypted before the rotation stay readable and are re-encrypted under the new key when next written.
            operationId: rotateOrgEncryptionDataKey
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RotateOrgEncryptionDataKeyRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/OrgEncryptionConfig'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "412":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'failed_precondition: resource is not in a valid state for this operation'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: rotateDataKey orgEncryption
            tags:
                - orgEncryption
            x-speakeasy-name-override: rotateDataKey
            x-speakeasy-react-hook:
                name: RotateOrgEncryptionDataKey
    /rpc/orgEncryption.switchKey:
        post:
            description: Start switching the organization to a customer-managed key. Requires org:admin. Speakeasy verifies the key, then wraps every data encryption key under it; the previous key keeps everything readable until the switch completes, either through completeSwitch or automatically after the grace period, or rolls back.
            operationId: switchOrgEncryptionKey
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SwitchOrgEncryptionKeyRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/OrgEncryptionConfig'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "412":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'failed_precondition: resource is not in a valid state for this operation'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: switchKey orgEncryption
            tags:
                - orgEncryption
            x-speakeasy-name-override: switchKey
            x-speakeasy-react-hook:
                name: SwitchOrgEncryptionKey
    /rpc/orgEncryption.verifyKey:
        post:
            description: 'Probe that Speakeasy can reach an encryption key and use it: encrypt a probe payload and decrypt it again. Performs real KMS operations, billed to the key''s owner and recorded in their audit log. Nothing is persisted. Rate limited per organization. Requires org:admin.'
            operationId: verifyOrgEncryptionKey
            parameters:
                - allowEmptyValue: true
                  description: The ID of the key to verify.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the key to verify.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/VerifyOrgEncryptionKeyResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "412":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'failed_precondition: resource is not in a valid state for this operation'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "429":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'rate_limit_exceeded: rate limit exceeded'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: verifyKey orgEncryption
            tags:
                - orgEncryption
            x-speakeasy-name-override: verifyKey
            x-speakeasy-react-hook:
                name: VerifyOrgEncryptionKey
    /rpc/organizationAssets.uploadImage:
        post:
            description: Upload an organization-tier image (e.g. a remote identity provider logo). Requires org:admin.
            operationId: uploadOrganizationImage
            parameters:
                - allowEmptyValue: true
                  in: header
                  name: Content-Type
                  required: true
                  schema:
                    type: string
                - allowEmptyValue: true
                  in: header
                  name: Content-Length
                  required: true
                  schema:
                    format: int64
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UploadImageResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: uploadOrganizationImage organizationAssets
            tags:
                - organizationAssets
            x-speakeasy-name-override: uploadImage
            x-speakeasy-react-hook:
                name: UploadOrganizationImage
    /rpc/organizationRemoteSessionClients.attachKeySet:
        post:
            description: Attach an organization JSON Web Key Set to a remote_session_client in the caller's organization, opting it into signing private_key_jwt assertions. Requires org:admin and the customer_managed_encryption_keys entitlement.
            operationId: attachOrganizationRemoteSessionClientKeySet
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/AttachKeySetForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionClient'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "412":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'failed_precondition: resource is not in a valid state for this operation'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: attachClientKeySet organizationRemoteSessionClients
            tags:
                - organizationRemoteSessionClients
            x-speakeasy-name-override: attachKeySet
            x-speakeasy-react-hook:
                name: AttachOrganizationRemoteSessionClientKeySet
    /rpc/organizationRemoteSessionClients.create:
        post:
            description: 'Register a standalone remote_session_client under an existing remote_session_issuer in the caller''s organization, with no user_session_issuer attachments. The client is project-scoped: it inherits a project-specific issuer''s project, or the caller names a project (which must belong to the organization) when the issuer is organization-level. Requires org:admin.'
            operationId: createOrganizationRemoteSessionClient
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateOrganizationRemoteSessionClientForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionClient'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: createClient organizationRemoteSessionClients
            tags:
                - organizationRemoteSessionClients
            x-speakeasy-name-override: create
            x-speakeasy-react-hook:
                name: CreateOrganizationRemoteSessionClient
    /rpc/organizationRemoteSessionClients.createCimd:
        post:
            description: 'Register a standalone remote_session_client in Client ID Metadata Document (CIMD) mode under an existing remote_session_issuer in the caller''s organization, with no user_session_issuer attachments. Speakeasy generates the client_id and hosts the metadata document; the issuer must advertise client_id_metadata_document_supported. The client is project-scoped: it inherits a project-specific issuer''s project, or the caller names a project (which must belong to the organization) when the issuer is organization-level. Requires org:admin.'
            operationId: createCimdOrganizationRemoteSessionClient
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateCimdOrganizationRemoteSessionClientForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionClient'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: createCimdClient organizationRemoteSessionClients
            tags:
                - organizationRemoteSessionClients
            x-speakeasy-name-override: createCimd
            x-speakeasy-react-hook:
                name: CreateCimdOrganizationRemoteSessionClient
    /rpc/organizationRemoteSessionClients.delete:
        delete:
            description: Soft-delete a remote_session_client in the caller's organization. Cascades to the remote_sessions minted against it. Requires org:admin.
            operationId: deleteOrganizationRemoteSessionClient
            parameters:
                - allowEmptyValue: true
                  description: The remote_session_client id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The remote_session_client id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: deleteClient organizationRemoteSessionClients
            tags:
                - organizationRemoteSessionClients
            x-speakeasy-name-override: delete
            x-speakeasy-react-hook:
                name: DeleteOrganizationRemoteSessionClient
    /rpc/organizationRemoteSessionClients.detachKeySet:
        delete:
            description: Detach the JSON Web Key Set from a remote_session_client in the caller's organization. Refused while the client declares token_endpoint_auth_method=private_key_jwt. A no-op when no set is attached. Requires org:admin and the customer_managed_encryption_keys entitlement.
            operationId: detachOrganizationRemoteSessionClientKeySet
            parameters:
                - allowEmptyValue: true
                  description: The remote_session_client id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The remote_session_client id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionClient'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "412":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'failed_precondition: resource is not in a valid state for this operation'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: detachClientKeySet organizationRemoteSessionClients
            tags:
                - organizationRemoteSessionClients
            x-speakeasy-name-override: detachKeySet
            x-speakeasy-react-hook:
                name: DetachOrganizationRemoteSessionClientKeySet
    /rpc/organizationRemoteSessionClients.duplicate:
        post:
            description: Create a new standalone remote_session_client with a copy of an existing client's configuration in the caller's organization. The copy keeps the source's issuer, project, credential owner, authentication settings, key set, scopes, audience, and callback, and by default reuses its client_id and stored secret, so no secret is re-entered. A client metadata document (CIMD) client gets a new hosted document and client_id. To give the copy its own upstream registration instead, register one through /oauth/proxy-register and pass the returned credentials; this is refused for credential_owner self clients. A private_key_jwt client that is not a CIMD client cannot be duplicated, because the provider knows only the source's key set URL. The source is unchanged and the copy has no user_session_issuer attachments. Clients managed by an identity provider connection cannot be duplicated. Requires org:admin.
            operationId: duplicateOrganizationRemoteSessionClient
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DuplicateOrganizationRemoteSessionClientForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionClient'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: duplicateClient organizationRemoteSessionClients
            tags:
                - organizationRemoteSessionClients
            x-speakeasy-name-override: duplicate
            x-speakeasy-react-hook:
                name: DuplicateOrganizationRemoteSessionClient
    /rpc/organizationRemoteSessionClients.get:
        get:
            description: Get a remote_session_client in the caller's organization by id. Requires org:read.
            operationId: getOrganizationRemoteSessionClient
            parameters:
                - allowEmptyValue: true
                  description: The remote_session_client id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The remote_session_client id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionClient'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: getClient organizationRemoteSessionClients
            tags:
                - organizationRemoteSessionClients
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: OrganizationRemoteSessionClient
    /rpc/organizationRemoteSessionClients.getDelegationStatus:
        get:
            description: Read sanitized delegation observations for the current upstream configuration in the last 30 days. Requires org:admin. Never exercises credentials; presence is not proof of future refresh success.
            operationId: getOrganizationRemoteSessionClientDelegationStatus
            parameters:
                - allowEmptyValue: true
                  description: The remote_session_client id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The remote_session_client id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/OrganizationClientDelegationStatus'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getClientDelegationStatus organizationRemoteSessionClients
            tags:
                - organizationRemoteSessionClients
            x-speakeasy-name-override: getDelegationStatus
            x-speakeasy-react-hook:
                name: OrganizationRemoteSessionClientDelegationStatus
    /rpc/organizationRemoteSessionClients.getDeletePreflight:
        get:
            description: 'Authoritative impact summary for deleting a remote_session_client: associated session count, affected MCP server names, and trusted identity-provider login references that must be explicitly unlinked before deletion. Requires org:read.'
            operationId: getOrganizationRemoteSessionClientDeletePreflight
            parameters:
                - allowEmptyValue: true
                  description: The remote_session_client id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The remote_session_client id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/OrganizationClientDeletePreflight'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: getClientDeletePreflight organizationRemoteSessionClients
            tags:
                - organizationRemoteSessionClients
            x-speakeasy-name-override: getDeletePreflight
            x-speakeasy-react-hook:
                name: OrganizationRemoteSessionClientDeletePreflight
    /rpc/organizationRemoteSessionClients.list:
        get:
            description: List the remote_session_clients registered with a given issuer in the caller's organization, each with its MCP server attachment count. Requires org:read.
            operationId: listOrganizationRemoteSessionClients
            parameters:
                - allowEmptyValue: true
                  description: The remote_session_issuer id to list clients for.
                  in: query
                  name: issuer_id
                  required: true
                  schema:
                    description: The remote_session_issuer id to list clients for.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Pagination cursor.
                  in: query
                  name: cursor
                  schema:
                    description: Pagination cursor.
                    type: string
                - allowEmptyValue: true
                  description: Page size (default 50, max 100).
                  in: query
                  name: limit
                  schema:
                    description: Page size (default 50, max 100).
                    format: int64
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListOrganizationRemoteSessionClientsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: listClients organizationRemoteSessionClients
            tags:
                - organizationRemoteSessionClients
            x-speakeasy-name-override: list
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: OrganizationRemoteSessionClients
    /rpc/organizationRemoteSessionClients.listMcpServers:
        get:
            description: List the MCP servers a remote_session_client is attached to (resolved through user_session_issuers) in the caller's organization. Requires org:read.
            operationId: listOrganizationRemoteSessionClientMcpServers
            parameters:
                - allowEmptyValue: true
                  description: The remote_session_client id.
                  in: query
                  name: client_id
                  required: true
                  schema:
                    description: The remote_session_client id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListOrganizationMcpServersResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: listClientMcpServers organizationRemoteSessionClients
            tags:
                - organizationRemoteSessionClients
            x-speakeasy-name-override: listMcpServers
            x-speakeasy-react-hook:
                name: OrganizationRemoteSessionClientMcpServers
    /rpc/organizationRemoteSessionClients.removeFromMcpServer:
        post:
            description: Detach a remote_session_client from an MCP server (clears the MCP server's user_session_issuer link) in the caller's organization. Requires org:admin.
            operationId: removeOrganizationRemoteSessionClientFromMcpServer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RemoveClientFromMcpServerRequestBody'
                required: true
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: removeClientFromMcpServer organizationRemoteSessionClients
            tags:
                - organizationRemoteSessionClients
            x-speakeasy-name-override: removeFromMcpServer
            x-speakeasy-react-hook:
                name: RemoveOrganizationRemoteSessionClientFromMcpServer
    /rpc/organizationRemoteSessionClients.rotate:
        post:
            description: Re-register a dynamically registered remote_session_client with its issuer in place, replacing the client_id and secret while keeping the row's id, issuer bindings, MCP server attachments, and key set links. Every remote session minted against the old client_id is revoked, so users reconnect once. Use when the issuer reports the registration expired (upstream_rejected_at is set) or to rotate proactively. The replacement is registered at the registration_endpoint the client's issuer publishes, so the issuer must publish one. Requires org:admin.
            operationId: rotateOrganizationRemoteSessionClient
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RiskIDRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionClient'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: rotateClient organizationRemoteSessionClients
            tags:
                - organizationRemoteSessionClients
            x-speakeasy-name-override: rotate
            x-speakeasy-react-hook:
                name: RotateOrganizationRemoteSessionClient
    /rpc/organizationRemoteSessionClients.update:
        post:
            description: Update a remote_session_client's non-secret fields in the caller's organization. Requires org:admin.
            operationId: updateOrganizationRemoteSessionClient
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateRemoteSessionClientForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionClient'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: updateClient organizationRemoteSessionClients
            tags:
                - organizationRemoteSessionClients
            x-speakeasy-name-override: update
            x-speakeasy-react-hook:
                name: UpdateOrganizationRemoteSessionClient
    /rpc/organizationRemoteSessionIssuers.create:
        post:
            description: Create a remote_session_issuer in the caller's organization. With no project_id the issuer is organization-level (project_id NULL, inherited by every project); with a project_id (which must belong to the organization) it is project-specific. Requires org:admin.
            operationId: createOrganizationRemoteSessionIssuer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateIssuerRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionIssuer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: createIssuer organizationRemoteSessionIssuers
            tags:
                - organizationRemoteSessionIssuers
            x-speakeasy-name-override: create
            x-speakeasy-react-hook:
                name: CreateOrganizationRemoteSessionIssuer
    /rpc/organizationRemoteSessionIssuers.delete:
        delete:
            description: Soft-delete any remote_session_issuer (organizational or project-specific) in the caller's organization. Blocked when any remote_session_clients still reference it. Requires org:admin.
            operationId: deleteOrganizationRemoteSessionIssuer
            parameters:
                - allowEmptyValue: true
                  description: The remote_session_issuer id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The remote_session_issuer id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: deleteIssuer organizationRemoteSessionIssuers
            tags:
                - organizationRemoteSessionIssuers
            x-speakeasy-name-override: delete
            x-speakeasy-react-hook:
                name: DeleteOrganizationRemoteSessionIssuer
    /rpc/organizationRemoteSessionIssuers.fetchMetadata:
        post:
            description: Hit an upstream issuer's RFC 8414 .well-known/oauth-authorization-server document and return a draft suitable for organizationRemoteSessionIssuers.create. Keyed by issuer URL; no record need exist and nothing is persisted. The organization-scoped counterpart of remoteSessionIssuers.fetchMetadata, so creating an organization-level issuer no longer has to borrow an unrelated project's scope. Requires org:admin.
            operationId: fetchOrganizationRemoteSessionIssuerMetadata
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/FetchIssuerMetadataRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionIssuerDraft'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: fetchIssuerMetadata organizationRemoteSessionIssuers
            tags:
                - organizationRemoteSessionIssuers
            x-speakeasy-name-override: fetchMetadata
            x-speakeasy-react-hook:
                name: FetchOrganizationRemoteSessionIssuerMetadata
    /rpc/organizationRemoteSessionIssuers.get:
        get:
            description: Get any remote_session_issuer (organizational or project-specific) in the caller's organization by id. Requires org:read.
            operationId: getOrganizationRemoteSessionIssuer
            parameters:
                - allowEmptyValue: true
                  description: The remote_session_issuer id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The remote_session_issuer id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionIssuer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: getIssuer organizationRemoteSessionIssuers
            tags:
                - organizationRemoteSessionIssuers
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: OrganizationRemoteSessionIssuer
    /rpc/organizationRemoteSessionIssuers.getDeletePreflight:
        get:
            description: 'Authoritative impact summary for deleting a remote_session_issuer: associated client count and affected MCP server names. Requires org:read.'
            operationId: getOrganizationRemoteSessionIssuerDeletePreflight
            parameters:
                - allowEmptyValue: true
                  description: The remote_session_issuer id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The remote_session_issuer id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/OrganizationIssuerDeletePreflight'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: getIssuerDeletePreflight organizationRemoteSessionIssuers
            tags:
                - organizationRemoteSessionIssuers
            x-speakeasy-name-override: getDeletePreflight
            x-speakeasy-react-hook:
                name: OrganizationRemoteSessionIssuerDeletePreflight
    /rpc/organizationRemoteSessionIssuers.getDuplicatePreflight:
        get:
            description: |-
                Report the existing remote_session_issuers that already describe an upstream issuer URL, so a create or edit form can warn before it duplicates one. Requires org:read.

                Covers every issuer in the caller's organization — organization-level and project-specific alike — plus the platform catalog. The project-specific rows are the point: an organization administrator about to add an organization-level issuer most needs to know that several of their projects already configured the same URL separately, because those are exactly the records migrateIssuer can consolidate. The answer does not depend on whether the issuer being created is organization-level or project-scoped; an org administrator holds org:read either way.

                Advisory only. Duplicating an issuer URL is legitimate, so nothing here blocks a write and no lock is taken. Matching uses the same canonicalization as getRemoteSessionIssuer, and a URL that cannot be parsed as an issuer identifier returns no matches rather than an error.
            operationId: getOrganizationRemoteSessionIssuerDuplicatePreflight
            parameters:
                - allowEmptyValue: true
                  description: The upstream issuer URL being entered (e.g. https://login.linear.app). Empty or unparseable returns no matches.
                  in: query
                  name: issuer
                  schema:
                    description: The upstream issuer URL being entered (e.g. https://login.linear.app). Empty or unparseable returns no matches.
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionIssuerDuplicatePreflight'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: getIssuerDuplicatePreflight organizationRemoteSessionIssuers
            tags:
                - organizationRemoteSessionIssuers
            x-speakeasy-name-override: getDuplicatePreflight
            x-speakeasy-react-hook:
                name: OrganizationRemoteSessionIssuerDuplicatePreflight
    /rpc/organizationRemoteSessionIssuers.getMigratePreflight:
        get:
            description: 'Authoritative impact summary for migrating a remote_session_issuer''s clients onto another issuer: the clients that would move, the affected MCP servers, and every blocker (endpoint mismatches, conflicting MCP-server bindings). Requires org:read.'
            operationId: getOrganizationRemoteSessionIssuerMigratePreflight
            parameters:
                - allowEmptyValue: true
                  description: The remote_session_issuer to migrate away from.
                  in: query
                  name: source_id
                  required: true
                  schema:
                    description: The remote_session_issuer to migrate away from.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: The remote_session_issuer to migrate onto.
                  in: query
                  name: target_id
                  required: true
                  schema:
                    description: The remote_session_issuer to migrate onto.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/OrganizationIssuerMigratePreflight'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: getIssuerMigratePreflight organizationRemoteSessionIssuers
            tags:
                - organizationRemoteSessionIssuers
            x-speakeasy-name-override: getMigratePreflight
            x-speakeasy-react-hook:
                name: OrganizationRemoteSessionIssuerMigratePreflight
    /rpc/organizationRemoteSessionIssuers.list:
        get:
            description: List all remote_session_issuers in the caller's organization — organizational (project_id NULL) and project-specific — each with its associated client count and, for project-specific issuers, the owning project name. Requires org:read.
            operationId: listOrganizationRemoteSessionIssuers
            parameters:
                - allowEmptyValue: true
                  description: Pagination cursor.
                  in: query
                  name: cursor
                  schema:
                    description: Pagination cursor.
                    type: string
                - allowEmptyValue: true
                  description: Page size (default 50, max 100).
                  in: query
                  name: limit
                  schema:
                    description: Page size (default 50, max 100).
                    format: int64
                    type: integer
                - allowEmptyValue: true
                  description: 'Only issuers from one tier: organizational (organization), project-specific (project), or from the platform catalog (platform). Omitted lists all three.'
                  in: query
                  name: tier
                  schema:
                    description: 'Only issuers from one tier: organizational (organization), project-specific (project), or from the platform catalog (platform). Omitted lists all three.'
                    enum:
                        - organization
                        - project
                        - platform
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListOrganizationRemoteSessionIssuersResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: listIssuers organizationRemoteSessionIssuers
            tags:
                - organizationRemoteSessionIssuers
            x-speakeasy-name-override: list
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: OrganizationRemoteSessionIssuers
    /rpc/organizationRemoteSessionIssuers.listEMAServices:
        get:
            description: 'List every service identity chaining reaches in the caller''s organization: each vendor authorization server that any identity chaining binding or saved EMA provider order names, with the organization-wide provider order, when the vendor last accepted an assertion from each provider across every binding, and the MCP servers that chain through it: counts include every server, the list only those the caller has mcp:read on. Requires org:read.'
            operationId: listOrganizationRemoteSessionIssuerEMAServices
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListEMAServicesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listEMAServices organizationRemoteSessionIssuers
            tags:
                - organizationRemoteSessionIssuers
            x-speakeasy-name-override: listEMAServices
            x-speakeasy-react-hook:
                name: OrganizationRemoteSessionIssuerEMAServices
    /rpc/organizationRemoteSessionIssuers.migrate:
        post:
            description: 'Consolidate two remote_session_issuers that point at the same upstream authorization server: re-point every client from the source issuer onto the target issuer, then soft-delete the source. Existing remote sessions are preserved, so no user re-authenticates. Both issuers must belong to the caller''s organization and agree on issuer, token_endpoint, and authorization_endpoint. The issuer identifier is compared canonically, so two spellings differing only by a trailing slash or an explicit default port count as the same upstream; the two endpoints are compared literally. The target may not be narrower in scope than the source: a project-specific issuer may migrate onto an issuer in the same project or onto an organization-level issuer, and an organization-level issuer may migrate onto another organization-level issuer. Requires org:admin.'
            operationId: migrateOrganizationRemoteSessionIssuer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/MigrateIssuerRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/MigrateOrganizationRemoteSessionIssuerResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: migrateIssuer organizationRemoteSessionIssuers
            tags:
                - organizationRemoteSessionIssuers
            x-speakeasy-name-override: migrate
            x-speakeasy-react-hook:
                name: MigrateOrganizationRemoteSessionIssuer
    /rpc/organizationRemoteSessionIssuers.move:
        post:
            description: 'Re-scope a remote_session_issuer in the caller''s organization: provide a project_id (which must belong to the organization) to make it project-specific, or omit it to make it organization-level (project_id NULL, inherited by every project). Requires org:admin.'
            operationId: moveOrganizationRemoteSessionIssuer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/MoveIssuerRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionIssuer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: moveIssuer organizationRemoteSessionIssuers
            tags:
                - organizationRemoteSessionIssuers
            x-speakeasy-name-override: move
            x-speakeasy-react-hook:
                name: MoveOrganizationRemoteSessionIssuer
    /rpc/organizationRemoteSessionIssuers.refreshMetadata:
        post:
            description: Re-fetch an existing remote_session_issuer's RFC 8414 metadata document and persist the discovered values. Keyed by issuer id; serves both organizational and project-specific issuers in the caller's organization. Only RFC 8414-derived columns are written — endpoints, the *_supported arrays, client_id_metadata_document_supported, and the documentation URLs. Speakeasy behavior and display fields (oidc, passthrough, name, slug, logo, client setup documentation) are left alone. Requires org:admin.
            operationId: refreshOrganizationRemoteSessionIssuerMetadata
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RiskIDRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionIssuerRefresh'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: refreshIssuerMetadata organizationRemoteSessionIssuers
            tags:
                - organizationRemoteSessionIssuers
            x-speakeasy-name-override: refreshMetadata
            x-speakeasy-react-hook:
                name: RefreshOrganizationRemoteSessionIssuerMetadata
    /rpc/organizationRemoteSessionIssuers.setEMAProviders:
        post:
            description: 'Replace the EMA providers the vendor authorization server this issuer names accepts, the providers that may issue ID-JAGs for it. They are stored as an ordered list, but each endpoint can use only the provider its sign-in goes through: the sign-in''s trusted external issuer, or the organization''s Speakeasy issuer for a sign-in that trusts none. So the list acts as the set of accepted providers, and its order does not change who vouches; a list that leaves out an endpoint''s provider leaves that endpoint with nobody to vouch. An empty list restores the derived default, which accepts every provider: an endpoint whose sign-in trusts an external issuer uses that issuer alone, and one that trusts none uses the organization''s Speakeasy issuer when it has one. The list applies organization-wide to every issuer with the same canonical issuer URL. With expected_providers, the write happens only while the saved list still matches it. Requires org:admin and the ema-providers rollout; restoring the default only needs org:admin. Not available from support or impersonated sessions.'
            operationId: setOrganizationRemoteSessionIssuerEMAProviders
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetEMAProvidersRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/EMAProviderOrder'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: setEMAProviders organizationRemoteSessionIssuers
            tags:
                - organizationRemoteSessionIssuers
            x-speakeasy-name-override: setEMAProviders
            x-speakeasy-react-hook:
                name: SetOrganizationRemoteSessionIssuerEMAProviders
    /rpc/organizationRemoteSessionIssuers.update:
        post:
            description: Update any remote_session_issuer (organizational or project-specific) in the caller's organization. Requires org:admin.
            operationId: updateOrganizationRemoteSessionIssuer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateRemoteSessionIssuerForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionIssuer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: updateIssuer organizationRemoteSessionIssuers
            tags:
                - organizationRemoteSessionIssuers
            x-speakeasy-name-override: update
            x-speakeasy-react-hook:
                name: UpdateOrganizationRemoteSessionIssuer
    /rpc/organizationRemoteSessions.list:
        get:
            description: List the remote_sessions minted against a remote_session_client in the caller's organization. access_token_encrypted and refresh_token_encrypted are never returned. Requires org:read.
            operationId: listOrganizationRemoteSessionClientSessions
            parameters:
                - allowEmptyValue: true
                  description: The remote_session_client id.
                  in: query
                  name: client_id
                  required: true
                  schema:
                    description: The remote_session_client id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Case-insensitive literal identity search.
                  in: query
                  name: search
                  schema:
                    description: Case-insensitive literal identity search.
                    maxLength: 200
                    type: string
                - allowEmptyValue: true
                  description: Filter by effective upstream authorization status. Access expiry alone does not expire a refreshable account.
                  in: query
                  name: status
                  schema:
                    description: Filter by effective upstream authorization status. Access expiry alone does not expire a refreshable account.
                    enum:
                        - active
                        - expired
                        - all
                    type: string
                - allowEmptyValue: true
                  description: Inclusive creation lower bound.
                  in: query
                  name: created_after
                  schema:
                    description: Inclusive creation lower bound.
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: Exclusive creation upper bound.
                  in: query
                  name: created_before
                  schema:
                    description: Exclusive creation upper bound.
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: Ordering. Authorization expiry is the earliest hard authorization deadline and usable refresh/access deadline. Omit to retain ID ordering and UUID cursors.
                  in: query
                  name: sort
                  schema:
                    description: Ordering. Authorization expiry is the earliest hard authorization deadline and usable refresh/access deadline. Omit to retain ID ordering and UUID cursors.
                    enum:
                        - newest
                        - oldest
                        - last_used
                        - expiry
                    type: string
                - allowEmptyValue: true
                  description: Pagination cursor. Preserve the filters and ordering when following it.
                  in: query
                  name: cursor
                  schema:
                    description: Pagination cursor. Preserve the filters and ordering when following it.
                    type: string
                - allowEmptyValue: true
                  description: Page size (default 50, max 100).
                  in: query
                  name: limit
                  schema:
                    description: Page size (default 50, max 100).
                    format: int64
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListOrganizationRemoteSessionsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: listClientSessions organizationRemoteSessions
            tags:
                - organizationRemoteSessions
            x-speakeasy-name-override: list
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: OrganizationRemoteSessionClientSessions
    /rpc/organizationRemoteSessions.refresh:
        post:
            description: Force an upstream token refresh on a single remote_session in the caller's organization, regardless of current access-token expiry. Returns the updated remote_session so callers can reflect the new expiry without a refetch. Fails with a bad-request error when the session holds no refresh token. Requires org:admin.
            operationId: refreshOrganizationRemoteSession
            parameters:
                - allowEmptyValue: true
                  description: The remote_session id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The remote_session id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSession'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: refreshSession organizationRemoteSessions
            tags:
                - organizationRemoteSessions
            x-speakeasy-name-override: refresh
            x-speakeasy-react-hook:
                name: RefreshOrganizationRemoteSession
    /rpc/organizationRemoteSessions.revoke:
        post:
            description: Revoke (soft-delete) a single remote_session in the caller's organization. Requires org:admin.
            operationId: revokeOrganizationRemoteSession
            parameters:
                - allowEmptyValue: true
                  description: The remote_session id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The remote_session id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: revokeSession organizationRemoteSessions
            tags:
                - organizationRemoteSessions
            x-speakeasy-name-override: revoke
            x-speakeasy-react-hook:
                name: RevokeOrganizationRemoteSession
    /rpc/organizationRemoteSessions.revokeAll:
        post:
            description: Revoke (soft-delete) all remote_sessions minted against a remote_session_client in the caller's organization. Requires org:admin.
            operationId: revokeAllOrganizationRemoteSessionClientSessions
            parameters:
                - allowEmptyValue: true
                  description: The remote_session_client id.
                  in: query
                  name: client_id
                  required: true
                  schema:
                    description: The remote_session_client id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RevokeAllRemoteSessionsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: revokeAllClientSessions organizationRemoteSessions
            tags:
                - organizationRemoteSessions
            x-speakeasy-name-override: revokeAll
            x-speakeasy-react-hook:
                name: RevokeAllOrganizationRemoteSessionClientSessions
    /rpc/organizationUserSessionIssuers.create:
        post:
            description: Create an organization-owned user_session_issuer. Requires org:admin.
            operationId: createOrganizationUserSessionIssuer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateOrganizationUserSessionIssuerForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UserSessionIssuer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: createIssuer organizationUserSessionIssuers
            tags:
                - organizationUserSessionIssuers
            x-speakeasy-name-override: create
            x-speakeasy-react-hook:
                name: CreateOrganizationUserSessionIssuer
    /rpc/organizationUserSessionIssuers.createCimdClient:
        post:
            description: Allow an additional CIMD document URL on an organization-owned user_session_issuer. Requires org:admin.
            operationId: createOrganizationUserSessionIssuerCimdClient
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateUserSessionIssuerCimdClientForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CreateUserSessionIssuerCimdClientResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: createCimdClient organizationUserSessionIssuers
            tags:
                - organizationUserSessionIssuers
            x-speakeasy-name-override: createCimdClient
            x-speakeasy-react-hook:
                name: CreateOrganizationUserSessionIssuerCimdClient
    /rpc/organizationUserSessionIssuers.delete:
        delete:
            description: Soft-delete an organization-owned user_session_issuer. Refuses while a live MCP server or toolset references it. Requires org:admin.
            operationId: deleteOrganizationUserSessionIssuer
            parameters:
                - allowEmptyValue: true
                  description: The user_session_issuer id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The user_session_issuer id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: deleteIssuer organizationUserSessionIssuers
            tags:
                - organizationUserSessionIssuers
            x-speakeasy-name-override: delete
            x-speakeasy-react-hook:
                name: DeleteOrganizationUserSessionIssuer
    /rpc/organizationUserSessionIssuers.deleteCimdClient:
        delete:
            description: Remove a custom CIMD document URL from an organization-owned user_session_issuer. Requires org:admin.
            operationId: deleteOrganizationUserSessionIssuerCimdClient
            parameters:
                - allowEmptyValue: true
                  description: The user_session_issuer_cimd_client id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The user_session_issuer_cimd_client id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: deleteCimdClient organizationUserSessionIssuers
            tags:
                - organizationUserSessionIssuers
            x-speakeasy-name-override: deleteCimdClient
            x-speakeasy-react-hook:
                name: DeleteOrganizationUserSessionIssuerCimdClient
    /rpc/organizationUserSessionIssuers.get:
        get:
            description: Get any user_session_issuer in the caller's organization, organization-owned or project-specific, by id. Requires org:read.
            operationId: getOrganizationUserSessionIssuer
            parameters:
                - allowEmptyValue: true
                  description: The user_session_issuer id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The user_session_issuer id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UserSessionIssuer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getIssuer organizationUserSessionIssuers
            tags:
                - organizationUserSessionIssuers
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: OrganizationUserSessionIssuer
    /rpc/organizationUserSessionIssuers.getAuthenticationHostImpact:
        get:
            description: 'Preview moving a user_session_issuer in the caller''s organization onto or off the deployment''s authentication host: where clients sign in before and after, and how many MCP servers that affects. Requires org:read.'
            operationId: getOrganizationUserSessionIssuerAuthenticationHostImpact
            parameters:
                - allowEmptyValue: true
                  description: The user_session_issuer id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The user_session_issuer id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: True to preview moving onto the authentication host, false to preview moving off it.
                  in: query
                  name: use_authentication_host
                  required: true
                  schema:
                    description: True to preview moving onto the authentication host, false to preview moving off it.
                    type: boolean
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UserSessionIssuerAuthenticationHostImpact'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getAuthenticationHostImpact organizationUserSessionIssuers
            tags:
                - organizationUserSessionIssuers
            x-speakeasy-name-override: getAuthenticationHostImpact
            x-speakeasy-react-hook:
                name: OrganizationUserSessionIssuerAuthenticationHostImpact
    /rpc/organizationUserSessionIssuers.getCimdClient:
        get:
            description: Get a custom CIMD document URL on an organization-owned user_session_issuer. Requires org:read.
            operationId: getOrganizationUserSessionIssuerCimdClient
            parameters:
                - allowEmptyValue: true
                  description: The user_session_issuer_cimd_client id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The user_session_issuer_cimd_client id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UserSessionIssuerCimdClient'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getCimdClient organizationUserSessionIssuers
            tags:
                - organizationUserSessionIssuers
            x-speakeasy-name-override: getCimdClient
            x-speakeasy-react-hook:
                name: OrganizationUserSessionIssuerCimdClient
    /rpc/organizationUserSessionIssuers.getDeletePreflight:
        get:
            description: Report the clients, live sessions, MCP servers, and toolsets affected by deleting an organization-owned user_session_issuer. Requires org:read.
            operationId: getOrganizationUserSessionIssuerDeletePreflight
            parameters:
                - allowEmptyValue: true
                  description: The user_session_issuer id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The user_session_issuer id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/OrganizationUserSessionIssuerDeletePreflight'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getIssuerDeletePreflight organizationUserSessionIssuers
            tags:
                - organizationUserSessionIssuers
            x-speakeasy-name-override: getDeletePreflight
            x-speakeasy-react-hook:
                name: OrganizationUserSessionIssuerDeletePreflight
    /rpc/organizationUserSessionIssuers.getMigratePreflight:
        get:
            description: Report the impact, blockers, and configuration warnings for consolidating one user_session_issuer onto another. Requires org:read.
            operationId: getOrganizationUserSessionIssuerMigratePreflight
            parameters:
                - allowEmptyValue: true
                  description: The user_session_issuer to migrate away from.
                  in: query
                  name: source_id
                  required: true
                  schema:
                    description: The user_session_issuer to migrate away from.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: The user_session_issuer to migrate onto.
                  in: query
                  name: target_id
                  required: true
                  schema:
                    description: The user_session_issuer to migrate onto.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/OrganizationUserSessionIssuerMigratePreflight'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getIssuerMigratePreflight organizationUserSessionIssuers
            tags:
                - organizationUserSessionIssuers
            x-speakeasy-name-override: getMigratePreflight
            x-speakeasy-react-hook:
                name: OrganizationUserSessionIssuerMigratePreflight
    /rpc/organizationUserSessionIssuers.list:
        get:
            description: 'List the user_session_issuers in the caller''s organization: organization-owned and project-specific, each project-specific issuer with its owning project name. Requires org:read.'
            operationId: listOrganizationUserSessionIssuers
            parameters:
                - allowEmptyValue: true
                  description: 'Pagination cursor: id of the last item from the previous page.'
                  in: query
                  name: cursor
                  schema:
                    description: 'Pagination cursor: id of the last item from the previous page.'
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Page size (default 50, max 100).
                  in: query
                  name: limit
                  schema:
                    description: Page size (default 50, max 100).
                    format: int64
                    type: integer
                - allowEmptyValue: true
                  description: 'Only issuers from one tier: organization-owned (organization) or project-specific (project). Omitted lists both.'
                  in: query
                  name: tier
                  schema:
                    description: 'Only issuers from one tier: organization-owned (organization) or project-specific (project). Omitted lists both.'
                    enum:
                        - organization
                        - project
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListOrganizationUserSessionIssuersResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listIssuers organizationUserSessionIssuers
            tags:
                - organizationUserSessionIssuers
            x-speakeasy-name-override: list
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: OrganizationUserSessionIssuers
    /rpc/organizationUserSessionIssuers.listCimdClients:
        get:
            description: List custom CIMD document URLs on an organization-owned user_session_issuer. Requires org:read.
            operationId: listOrganizationUserSessionIssuerCimdClients
            parameters:
                - allowEmptyValue: true
                  description: The organization-owned user_session_issuer whose custom CIMD clients are listed.
                  in: query
                  name: user_session_issuer_id
                  required: true
                  schema:
                    description: The organization-owned user_session_issuer whose custom CIMD clients are listed.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: 'Pagination cursor: id of the last item from the previous page.'
                  in: query
                  name: cursor
                  schema:
                    description: 'Pagination cursor: id of the last item from the previous page.'
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Page size (default 50, max 100).
                  in: query
                  name: limit
                  schema:
                    description: Page size (default 50, max 100).
                    format: int64
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListUserSessionIssuerCimdClientsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listCimdClients organizationUserSessionIssuers
            tags:
                - organizationUserSessionIssuers
            x-speakeasy-name-override: listCimdClients
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: OrganizationUserSessionIssuerCimdClients
    /rpc/organizationUserSessionIssuers.listMcpServers:
        get:
            description: List the live MCP servers, toolsets, and meta MCP servers attached to a user_session_issuer in the caller's organization, organization-owned or project-specific. A toolset served through an MCP server is listed once, as that server. Requires org:read.
            operationId: listOrganizationUserSessionIssuerMcpServers
            parameters:
                - allowEmptyValue: true
                  description: The user_session_issuer whose attached MCP servers are listed.
                  in: query
                  name: user_session_issuer_id
                  required: true
                  schema:
                    description: The user_session_issuer whose attached MCP servers are listed.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: 'Pagination cursor: id of the last item from the previous page.'
                  in: query
                  name: cursor
                  schema:
                    description: 'Pagination cursor: id of the last item from the previous page.'
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Page size (default 50, max 100).
                  in: query
                  name: limit
                  schema:
                    description: Page size (default 50, max 100).
                    format: int64
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListUserSessionIssuerMcpServersResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listMcpServers organizationUserSessionIssuers
            tags:
                - organizationUserSessionIssuers
            x-speakeasy-name-override: listMcpServers
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: OrganizationUserSessionIssuerMcpServers
    /rpc/organizationUserSessionIssuers.migrate:
        post:
            description: Consolidate a source user_session_issuer onto a target issuer, preserving clients, sessions, attachments, and remote-session credentials before soft-deleting the source. The target must be in the same project or a broader organization scope. Access tokens issued through the authorization_code and refresh_token grants are audience-bound to the issuer, so once a repointed MCP server verifies bearers against the target, outstanding access tokens minted under the source are rejected until the client refreshes. Migrated sessions and refresh tokens keep working, so the refresh succeeds without re-authorization. Tokens from the jwt-bearer (ID-JAG) grant are bound to the resource URL and are unaffected. Requires org:admin.
            operationId: migrateOrganizationUserSessionIssuer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/MigrateIssuerRequestBody2'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/MigrateOrganizationUserSessionIssuerResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: migrateIssuer organizationUserSessionIssuers
            tags:
                - organizationUserSessionIssuers
            x-speakeasy-name-override: migrate
            x-speakeasy-react-hook:
                name: MigrateOrganizationUserSessionIssuer
    /rpc/organizationUserSessionIssuers.move:
        post:
            description: Re-scope a user_session_issuer in the caller's organization. Provide a project_id to make it project-specific, or omit it to make it organization-owned. Existing clients and sessions move with the issuer. Requires org:admin.
            operationId: moveOrganizationUserSessionIssuer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/MoveIssuerRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UserSessionIssuer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: moveIssuer organizationUserSessionIssuers
            tags:
                - organizationUserSessionIssuers
            x-speakeasy-name-override: move
            x-speakeasy-react-hook:
                name: MoveOrganizationUserSessionIssuer
    /rpc/organizationUserSessionIssuers.setAuthenticationHost:
        post:
            description: Move a user_session_issuer in the caller's organization onto or off the deployment's authentication host. A shared authorization server with a pinned issuer URL is re-pinned to the matching host, so its issuer URL and token endpoint change; other issuers announce their authorization servers on the new host. Clients and anything configured with the previous URLs must be updated. Refused when the deployment has no authentication host, and for issuers managed by Speakeasy. Requires org:admin.
            operationId: setOrganizationUserSessionIssuerAuthenticationHost
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetAuthenticationHostRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UserSessionIssuer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: setAuthenticationHost organizationUserSessionIssuers
            tags:
                - organizationUserSessionIssuers
            x-speakeasy-name-override: setAuthenticationHost
            x-speakeasy-react-hook:
                name: SetOrganizationUserSessionIssuerAuthenticationHost
    /rpc/organizationUserSessionIssuers.update:
        post:
            description: Update an organization-owned user_session_issuer. Requires org:admin.
            operationId: updateOrganizationUserSessionIssuer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateOrganizationUserSessionIssuerForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UserSessionIssuer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: updateIssuer organizationUserSessionIssuers
            tags:
                - organizationUserSessionIssuers
            x-speakeasy-name-override: update
            x-speakeasy-react-hook:
                name: UpdateOrganizationUserSessionIssuer
    /rpc/organizations.createPortalSession:
        post:
            description: Create a webhook portal session.
            operationId: createPortalSession
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CreatePortalSessionResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: createPortalSession organizations
            tags:
                - organizations
            x-speakeasy-name-override: createPortalSession
            x-speakeasy-react-hook:
                name: CreatePortalSession
    /rpc/organizations.disableWebhooks:
        post:
            description: Disable  webhooks for the active organization.
            operationId: disableWebhooks
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: disableWebhooks organizations
            tags:
                - organizations
            x-speakeasy-name-override: disableWebhooks
            x-speakeasy-react-hook:
                name: DisableWebhooks
    /rpc/organizations.enableWebhooks:
        post:
            description: Enable  webhooks for the active organization.
            operationId: enableWebhooks
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: enableWebhooks organizations
            tags:
                - organizations
            x-speakeasy-name-override: enableWebhooks
            x-speakeasy-react-hook:
                name: EnableWebhooks
    /rpc/organizations.generateWorkOSAdminPortalLink:
        post:
            description: Generate a WorkOS Admin Portal link for the given intent (e.g. dsync, sso).
            operationId: generateWorkOSAdminPortalLink
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GenerateWorkOSAdminPortalLinkRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GenerateWorkOSAdminPortalLinkResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: generateWorkOSAdminPortalLink organizations
            tags:
                - organizations
            x-speakeasy-name-override: generateWorkOSAdminPortalLink
            x-speakeasy-react-hook:
                name: GenerateWorkOSAdminPortalLink
    /rpc/organizations.get:
        get:
            description: Get the active organization from the session.
            operationId: getOrganization
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Organization'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: get organizations
            tags:
                - organizations
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: Organization
    /rpc/organizations.getGateway:
        get:
            description: 'Get the active organization''s gateway: one MCP URL that gives each member every MCP server in the organization they can reach, signed in through the organization''s own user session issuer. It is served while the organization owns exactly one organization-level user session issuer, on the platform host, so not for an organization whose custom domain restricts access to an IP allowlist, not while an organization admin has turned it off, and not for a disabled organization. Requires org:read.'
            operationId: getOrganizationGateway
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/OrganizationGateway'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getGateway organizations
            tags:
                - organizations
            x-speakeasy-name-override: getGateway
            x-speakeasy-react-hook:
                name: OrganizationGateway
    /rpc/organizations.getOnboardingStatus:
        get:
            description: Get the onboarding status for the active organization by checking WorkOS domain verification, SSO connections, and directory sync state.
            operationId: getOnboardingStatus
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/OnboardingStatusResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getOnboardingStatus organizations
            tags:
                - organizations
            x-speakeasy-name-override: getOnboardingStatus
            x-speakeasy-react-hook:
                name: OnboardingStatus
    /rpc/organizations.listInvites:
        get:
            description: List pending WorkOS invitations for the active organization.
            operationId: listInvites
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListInvitesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listInvites organizations
            tags:
                - organizations
            x-speakeasy-name-override: listInvites
            x-speakeasy-react-hook:
                name: ListInvites
    /rpc/organizations.listSetupTasks:
        get:
            description: List the fixed setup task catalog projected with organization state and completion evidence.
            operationId: listSetupTasks
            parameters:
                - allowEmptyValue: true
                  description: Include hidden tasks for platform administrators.
                  in: query
                  name: include_hidden
                  schema:
                    description: Include hidden tasks for platform administrators.
                    type: boolean
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListSetupTasksResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listSetupTasks organizations
            tags:
                - organizations
            x-speakeasy-name-override: listSetupTasks
            x-speakeasy-react-hook:
                name: ListSetupTasks
    /rpc/organizations.listUsers:
        get:
            description: List users in the active organization from Speakeasy organization_user_relationships.
            operationId: listOrganizationUsers
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListUsersResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listUsers organizations
            tags:
                - organizations
            x-speakeasy-name-override: listUsers
            x-speakeasy-react-hook:
                name: ListOrganizationUsers
    /rpc/organizations.removeUser:
        delete:
            description: Remove a user from the active organization in Speakeasy and delete their WorkOS organization membership.
            operationId: removeOrganizationUser
            parameters:
                - allowEmptyValue: true
                  description: Speakeasy user ID to remove.
                  in: query
                  name: user_id
                  required: true
                  schema:
                    description: Speakeasy user ID to remove.
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: removeUser organizations
            tags:
                - organizations
            x-speakeasy-name-override: removeUser
            x-speakeasy-react-hook:
                name: RemoveOrganizationUser
    /rpc/organizations.revokeInvite:
        delete:
            description: Revoke a pending WorkOS invitation.
            operationId: revokeInvite
            parameters:
                - allowEmptyValue: true
                  description: WorkOS invitation ID.
                  in: query
                  name: invitation_id
                  required: true
                  schema:
                    description: WorkOS invitation ID.
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: revokeInvite organizations
            tags:
                - organizations
            x-speakeasy-name-override: revokeInvite
            x-speakeasy-react-hook:
                name: RevokeInvite
    /rpc/organizations.revokeMemberSignIns:
        post:
            description: Revoke a member's sign-ins in the active organization, end their identity provider sessions, and revoke every MCP grant made from those sign-ins. Requires organization admin.
            operationId: revokeOrganizationMemberSignIns
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RevokeMemberSignInsRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RevokeSignInsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: revokeMemberSignIns organizations
            tags:
                - organizations
            x-speakeasy-name-override: revokeMemberSignIns
            x-speakeasy-react-hook:
                name: RevokeOrganizationMemberSignIns
    /rpc/organizations.sendEnterpriseAdminOnboardingEmail:
        post:
            description: Send the enterprise admin onboarding email to one or more recipients. The email links each recipient to the wizard for the active organization. Used by the Platform Admin onboarding tools.
            operationId: sendEnterpriseAdminOnboardingEmail
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SendEnterpriseAdminOnboardingEmailRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SendEnterpriseAdminOnboardingEmailResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: sendEnterpriseAdminOnboardingEmail organizations
            tags:
                - organizations
            x-speakeasy-name-override: sendEnterpriseAdminOnboardingEmail
            x-speakeasy-react-hook:
                name: SendEnterpriseAdminOnboardingEmail
    /rpc/organizations.sendInvite:
        post:
            description: Send a WorkOS invitation for the active organization.
            operationId: sendInvite
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SendInviteRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/OrganizationInvitation'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: sendInvite organizations
            tags:
                - organizations
            x-speakeasy-name-override: sendInvite
            x-speakeasy-react-hook:
                name: SendInvite
    /rpc/organizations.submitOnboardingSurvey:
        post:
            description: Record the onboarding survey result. The server picks the use case's default playbook, which decides the setup tasks the wizard walks; progress and assignments are kept.
            operationId: submitOnboardingSurvey
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SubmitOnboardingSurveyRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListSetupTasksResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: submitOnboardingSurvey organizations
            tags:
                - organizations
            x-speakeasy-name-override: submitOnboardingSurvey
            x-speakeasy-react-hook:
                name: SubmitOnboardingSurvey
    /rpc/organizations.updateInviteRole:
        put:
            description: Change the role assigned to a pending WorkOS invitation.
            operationId: updateInviteRole
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateInviteRoleRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/OrganizationInvitation'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: updateInviteRole organizations
            tags:
                - organizations
            x-speakeasy-name-override: updateInviteRole
            x-speakeasy-react-hook:
                name: UpdateInviteRole
    /rpc/organizations.updateSetupTask:
        post:
            description: 'Update one fixed setup task. The request must include at least one effective update: status, assignee, hidden, or clear_assignee=true. Assignee is mutually exclusive with clear_assignee=true.'
            operationId: updateSetupTask
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateSetupTaskRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SetupTask'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: updateSetupTask organizations
            tags:
                - organizations
            x-speakeasy-name-override: updateSetupTask
            x-speakeasy-react-hook:
                name: UpdateSetupTask
    /rpc/organizations.verifyOnboardingHooksSetup:
        get:
            description: Return recent hook events for the active organization so the onboarding wizard can confirm that coding agent instrumentation is delivering events to Speakeasy. Polled from the confirm-traffic step.
            operationId: verifyOnboardingHooksSetup
            parameters:
                - allowEmptyValue: true
                  description: Only return events with time_unix_nano greater than this value. Pass the previous response's latest_unix_nano to poll for new events. Stringified to preserve int64 precision.
                  in: query
                  name: since_unix_nano
                  schema:
                    description: Only return events with time_unix_nano greater than this value. Pass the previous response's latest_unix_nano to poll for new events. Stringified to preserve int64 precision.
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/VerifyOnboardingHooksSetupResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: verifyOnboardingHooksSetup organizations
            tags:
                - organizations
            x-speakeasy-name-override: verifyOnboardingHooksSetup
            x-speakeasy-react-hook:
                name: VerifyOnboardingHooksSetup
    /rpc/otel.getEventFacets:
        post:
            description: 'Org-scoped filter facets for the event feed: the distinct sources and event/span names observed in a time range.'
            operationId: getEventFacets
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetEventFacetsPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetEventFacetsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getEventFacets otel
            tags:
                - otel
            x-speakeasy-name-override: getEventFacets
            x-speakeasy-react-hook:
                name: GetEventFacets
                type: query
    /rpc/otel.getEventVolume:
        post:
            description: 'Org-scoped event volume timeseries for the event feed: bucketed counts of ingested OpenTelemetry log records vs spans over a time range, honoring the same filters as listEventLog.'
            operationId: getEventVolume
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetEventVolumePayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetEventVolumeResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getEventVolume otel
            tags:
                - otel
            x-speakeasy-name-override: getEventVolume
            x-speakeasy-react-hook:
                name: GetEventVolume
                type: query
    /rpc/otel.listEventLog:
        post:
            description: 'Org-scoped event feed over ingested OpenTelemetry signals: log records and spans merged into one reverse-chronological list with keyset pagination and a capped total count.'
            operationId: listEventLog
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ListEventLogPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListEventLogResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listEventLog otel
            tags:
                - otel
            x-speakeasy-name-override: listEventLog
            x-speakeasy-react-hook:
                name: ListEventLog
                type: query
    /rpc/packages.create:
        post:
            description: Create a new package for a project.
            operationId: createPackage
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreatePackageForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CreatePackageResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: createPackage packages
            tags:
                - packages
            x-speakeasy-name-override: create
            x-speakeasy-react-hook:
                name: CreatePackage
    /rpc/packages.list:
        get:
            description: List all packages for a project.
            operationId: listPackages
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListPackagesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listPackages packages
            tags:
                - packages
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: ListPackages
    /rpc/packages.listVersions:
        get:
            description: List published versions of a package.
            operationId: listVersions
            parameters:
                - allowEmptyValue: true
                  description: The name of the package
                  in: query
                  name: name
                  required: true
                  schema:
                    description: The name of the package
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListVersionsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listVersions packages
            tags:
                - packages
            x-speakeasy-name-override: listVersions
            x-speakeasy-react-hook:
                name: ListVersions
    /rpc/packages.publish:
        post:
            description: Publish a new version of a package.
            operationId: publish
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/PublishPackageForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/PublishPackageResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: publish packages
            tags:
                - packages
            x-speakeasy-name-override: publish
            x-speakeasy-react-hook:
                name: PublishPackage
    /rpc/packages.update:
        put:
            description: Update package details.
            operationId: updatePackage
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdatePackageForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UpdatePackageResult'
                    description: OK response.
                "304":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/NotModified'
                    description: 'not_modified: Not Modified response.'
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: updatePackage packages
            tags:
                - packages
            x-speakeasy-name-override: update
            x-speakeasy-react-hook:
                name: UpdatePackage
    /rpc/platformKillswitches.activatePrescription:
        post:
            tags:
                - platformKillswitches
            summary: activatePrescription platformKillswitches
            operationId: platformKillswitches#activatePrescription
            parameters:
                - name: Gram-Session
                  in: header
                  description: Session header
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: Session header
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ActivatePrescriptionRequestBody'
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/PlatformKillswitchMutationResult'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'version_conflict: The prescription changed after the supplied expected version.'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "503":
                    description: 'unavailable: service temporarily unavailable'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - session_header_Gram-Session: []
    /rpc/platformKillswitches.changePrescription:
        post:
            tags:
                - platformKillswitches
            summary: changePrescription platformKillswitches
            operationId: platformKillswitches#changePrescription
            parameters:
                - name: Gram-Session
                  in: header
                  description: Session header
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: Session header
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ChangePrescriptionRequestBody'
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/PlatformKillswitchMutationResult'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'version_conflict: The prescription changed after the supplied expected version.'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "503":
                    description: 'unavailable: service temporarily unavailable'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - session_header_Gram-Session: []
    /rpc/platformKillswitches.deactivatePrescription:
        post:
            tags:
                - platformKillswitches
            summary: deactivatePrescription platformKillswitches
            operationId: platformKillswitches#deactivatePrescription
            parameters:
                - name: Gram-Session
                  in: header
                  description: Session header
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: Session header
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DeactivatePrescriptionRequestBody'
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/PlatformKillswitchMutationResult'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'version_conflict: The prescription changed after the supplied expected version.'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "503":
                    description: 'unavailable: service temporarily unavailable'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - session_header_Gram-Session: []
    /rpc/platformKillswitches.getPrescription:
        get:
            tags:
                - platformKillswitches
            summary: getPrescription platformKillswitches
            operationId: platformKillswitches#getPrescription
            parameters:
                - name: organization_id
                  in: query
                  allowEmptyValue: true
                  required: true
                  schema:
                    type: string
                - name: prescription_id
                  in: query
                  allowEmptyValue: true
                  required: true
                  schema:
                    type: string
                    format: uuid
                - name: Gram-Session
                  in: header
                  description: Session header
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: Session header
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/PlatformKillswitchPrescription'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'version_conflict: The prescription changed after the supplied expected version.'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "503":
                    description: 'unavailable: service temporarily unavailable'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - session_header_Gram-Session: []
    /rpc/platformKillswitches.listDefinitions:
        get:
            tags:
                - platformKillswitches
            summary: listDefinitions platformKillswitches
            operationId: platformKillswitches#listDefinitions
            parameters:
                - name: Gram-Session
                  in: header
                  description: Session header
                  allowEmptyValue: true
                  schema:
                    type: string
                    description: Session header
            responses:
                "200":
                    description: OK response.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListDefinitionsResponseBody'
                "400":
                    description: 'bad_request: request is invalid'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "401":
                    description: 'unauthorized: unauthorized access'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "403":
                    description: 'forbidden: permission denied'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "404":
                    description: 'not_found: resource not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "409":
                    description: 'version_conflict: The prescription changed after the supplied expected version.'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "415":
                    description: 'unsupported_media: unsupported media type'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "422":
                    description: 'invalid: request contains one or more invalidation fields'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "500":
                    description: 'unexpected: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "502":
                    description: 'gateway_error: an unexpected error occurred'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                "503":
                    description: 'unavailable: service temporarily unavailable'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
            security:
                - session_header_Gram-Session: []
    /rpc/platformKillswitches.listPrescriptions:
        get:
            operationId: platformKillswitches#listPrescriptions
            parameters:
                - allowEmptyValue: true
                  in: query
                  name: organization_id
                  required: true
                  schema:
                    type: string
                - allowEmptyValue: true
                  in: query
                  name: limit
                  schema:
                    format: int32
                    maximum: 100
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  in: query
                  name: after_id
                  schema:
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListPrescriptionsResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'version_conflict: The prescription changed after the supplied expected version.'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: listPrescriptions platformKillswitches
            tags:
                - platformKillswitches
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: after_id
                      type: cursor
                outputs:
                    nextCursor: $.next_after_id
                type: cursor
    /rpc/platformMcp.dismissOnboarding:
        post:
            description: Dismiss the optional current user's Platform MCP onboarding workflow without changing organization setup or project resources.
            operationId: dismissPlatformMCPOnboarding
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: dismissOnboarding platformMcp
            tags:
                - platformMcp
            x-speakeasy-name-override: dismissOnboarding
            x-speakeasy-react-hook:
                name: DismissPlatformMCPOnboarding
    /rpc/platformMcp.distributeOnboardingCandidate:
        post:
            description: Attach the workflow-bound ready local MCP to the selected project's existing Default plugin. The caller supplies only the selected project slug and its opaque server-issued version token.
            operationId: distributePlatformMCPOnboardingCandidate
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DistributeOnboardingCandidateRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/PlatformMCPOnboardingState'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: distributeOnboardingCandidate platformMcp
            tags:
                - platformMcp
            x-speakeasy-name-override: distributeOnboardingCandidate
            x-speakeasy-react-hook:
                name: DistributePlatformMCPOnboardingCandidate
    /rpc/platformMcp.getOnboarding:
        get:
            description: Get the current user's safe Platform MCP onboarding projection for the active organization.
            operationId: getPlatformMCPOnboarding
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/PlatformMCPOnboardingState'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: getOnboarding platformMcp
            tags:
                - platformMcp
            x-speakeasy-name-override: getOnboarding
            x-speakeasy-react-hook:
                name: PlatformMCPOnboarding
    /rpc/platformMcp.recheckOnboardingReadiness:
        post:
            description: Force a rate-limited authenticated readiness recheck for the workflow-bound local registration.
            operationId: recheckPlatformMCPOnboardingReadiness
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/PlatformMCPOnboardingState'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: recheckOnboardingReadiness platformMcp
            tags:
                - platformMcp
            x-speakeasy-name-override: recheckOnboardingReadiness
            x-speakeasy-react-hook:
                name: RecheckPlatformMCPOnboardingReadiness
    /rpc/platformMcp.recordAgentConfigurationCopied:
        post:
            description: Record that the user copied the displayed Platform MCP configuration or completed an equivalent supported agent-setup action.
            operationId: recordPlatformMCPAgentConfigurationCopied
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/PlatformMCPOnboardingState'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: recordAgentConfigurationCopied platformMcp
            tags:
                - platformMcp
            x-speakeasy-name-override: recordAgentConfigurationCopied
            x-speakeasy-react-hook:
                name: RecordPlatformMCPAgentConfigurationCopied
    /rpc/platformMcp.recordDashboardCtaEvent:
        post:
            description: Record a bounded Platform MCP dashboard CTA impression, selection, or dismissal.
            operationId: recordPlatformMCPDashboardCtaEvent
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RecordDashboardCtaEventRequestBody'
                required: true
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: recordDashboardCtaEvent platformMcp
            tags:
                - platformMcp
            x-speakeasy-name-override: recordDashboardCtaEvent
            x-speakeasy-react-hook:
                name: RecordPlatformMCPDashboardCtaEvent
    /rpc/platformMcp.recordInstallIntent:
        post:
            description: Record a selected manual-install client family for the current user's Platform MCP workflow.
            operationId: recordPlatformMCPInstallIntent
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RecordInstallIntentRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/PlatformMCPOnboardingState'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: recordInstallIntent platformMcp
            tags:
                - platformMcp
            x-speakeasy-name-override: recordInstallIntent
            x-speakeasy-react-hook:
                name: RecordPlatformMCPInstallIntent
    /rpc/platformMcp.removeOnboardingDistribution:
        post:
            description: Remove only the workflow-bound MCP from the selected project's existing Default plugin. Registration, readiness, connection, and prior evidence remain intact.
            operationId: removePlatformMCPOnboardingDistribution
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DistributeOnboardingCandidateRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/PlatformMCPOnboardingState'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: removeOnboardingDistribution platformMcp
            tags:
                - platformMcp
            x-speakeasy-name-override: removeOnboardingDistribution
            x-speakeasy-react-hook:
                name: RemovePlatformMCPOnboardingDistribution
    /rpc/platformMcp.repairOnboardingPublication:
        post:
            description: Retry in-memory local package publication for the workflow-bound distribution without changing its attachment or version.
            operationId: repairPlatformMCPOnboardingPublication
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DistributeOnboardingCandidateRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/PlatformMCPOnboardingState'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: repairOnboardingPublication platformMcp
            tags:
                - platformMcp
            x-speakeasy-name-override: repairOnboardingPublication
            x-speakeasy-react-hook:
                name: RepairPlatformMCPOnboardingPublication
    /rpc/platformMcp.startOnboarding:
        post:
            description: Create or resume the current user's durable Platform MCP onboarding workflow.
            operationId: startPlatformMCPOnboarding
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/StartOnboardingRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/PlatformMCPOnboardingState'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: startOnboarding platformMcp
            tags:
                - platformMcp
            x-speakeasy-name-override: startOnboarding
            x-speakeasy-react-hook:
                name: StartPlatformMCPOnboarding
    /rpc/platformMcp.startOnboardingSetup:
        post:
            description: Return the secure setup continuation for the workflow-bound registration. Browser Catalogue registrations return their existing same-origin dashboard Inspect page; the local fixture returns a one-time handoff for its synthetic provider setup endpoint.
            operationId: startPlatformMCPOnboardingSetup
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/PlatformMCPOnboardingSetupHandoff'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - session_header_Gram-Session: []
            summary: startOnboardingSetup platformMcp
            tags:
                - platformMcp
            x-speakeasy-name-override: startOnboardingSetup
            x-speakeasy-react-hook:
                name: StartPlatformMCPOnboardingSetup
    /rpc/plugins.addPluginServer:
        post:
            description: Add an MCP server to a plugin.
            operationId: addPluginServer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/AddPluginServerForm'
                required: true
            responses:
                "201":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/PluginServer'
                    description: Created response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: addPluginServer plugins
            tags:
                - plugins
            x-speakeasy-name-override: addPluginServer
            x-speakeasy-react-hook:
                name: AddPluginServer
    /rpc/plugins.createPlugin:
        post:
            description: Create a new plugin.
            operationId: createPlugin
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreatePluginForm'
                required: true
            responses:
                "201":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Plugin'
                    description: Created response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: createPlugin plugins
            tags:
                - plugins
            x-speakeasy-name-override: createPlugin
            x-speakeasy-react-hook:
                name: CreatePlugin
    /rpc/plugins.deletePlugin:
        delete:
            description: Delete a plugin.
            operationId: deletePlugin
            parameters:
                - allowEmptyValue: true
                  in: query
                  name: id
                  required: true
                  schema:
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: deletePlugin plugins
            tags:
                - plugins
            x-speakeasy-name-override: deletePlugin
            x-speakeasy-react-hook:
                name: DeletePlugin
    /rpc/plugins.downloadCodexInstallScript:
        get:
            description: Download a bash install script that registers the Codex observability marketplace and pre-approves all hook events. Requires a published marketplace.
            operationId: downloadCodexInstallScript
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        text/x-shellscript:
                            schema:
                                format: binary
                                type: string
                    description: OK response.
                    headers:
                        Content-Disposition:
                            schema:
                                type: string
                        Content-Type:
                            schema:
                                type: string
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: downloadCodexInstallScript plugins
            tags:
                - plugins
            x-speakeasy-name-override: downloadCodexInstallScript
    /rpc/plugins.downloadObservabilityPlugin:
        get:
            description: Download a ZIP of the per-org observability plugin (Speakeasy hooks). Mints a fresh hooks-scoped API key on each download and embeds it in the plugin's hook script.
            operationId: downloadObservabilityPlugin
            parameters:
                - allowEmptyValue: true
                  description: Target platform.
                  in: query
                  name: platform
                  required: true
                  schema:
                    description: Target platform.
                    enum:
                        - claude
                        - cursor
                        - codex
                        - opencode
                        - copilot
                        - openclaw
                        - pi
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/zip:
                            schema:
                                format: binary
                                type: string
                    description: OK response.
                    headers:
                        Content-Disposition:
                            schema:
                                type: string
                        Content-Type:
                            schema:
                                type: string
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: downloadObservabilityPlugin plugins
            tags:
                - plugins
            x-speakeasy-name-override: downloadObservabilityPlugin
    /rpc/plugins.downloadPluginPackage:
        get:
            description: Download a ZIP of a single plugin package for direct installation.
            operationId: downloadPluginPackage
            parameters:
                - allowEmptyValue: true
                  description: The plugin to download.
                  in: query
                  name: plugin_id
                  required: true
                  schema:
                    description: The plugin to download.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Target platform to download plugins for.
                  in: query
                  name: platform
                  required: true
                  schema:
                    description: Target platform to download plugins for.
                    enum:
                        - claude
                        - cursor
                        - codex
                        - agent-plugin
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/zip:
                            schema:
                                format: binary
                                type: string
                    description: OK response.
                    headers:
                        Content-Disposition:
                            schema:
                                type: string
                        Content-Type:
                            schema:
                                type: string
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "412":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'failed_precondition: resource is not in a valid state for this operation'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: downloadPluginPackage plugins
            tags:
                - plugins
            x-speakeasy-name-override: downloadPluginPackage
    /rpc/plugins.getDistributionPlugin:
        get:
            description: Get minimal distribution target metadata for a skill the caller can read. Requires skill:read, not org:read.
            operationId: getDistributionPlugin
            parameters:
                - allowEmptyValue: true
                  in: query
                  name: skill_id
                  required: true
                  schema:
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  in: query
                  name: id
                  required: true
                  schema:
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DistributionPlugin'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getDistributionPlugin plugins
            tags:
                - plugins
            x-speakeasy-name-override: getDistributionPlugin
            x-speakeasy-react-hook:
                name: DistributionPlugin
    /rpc/plugins.getMarketplaceSettings:
        get:
            description: Get the marketplace settings for the current project, including the effective marketplace name and the server-side default.
            operationId: getMarketplaceSettings
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/MarketplaceSettingsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getMarketplaceSettings plugins
            tags:
                - plugins
            x-speakeasy-name-override: getMarketplaceSettings
            x-speakeasy-react-hook:
                name: MarketplaceSettings
    /rpc/plugins.getPlugin:
        get:
            description: Get a plugin with its servers and assignments.
            operationId: getPlugin
            parameters:
                - allowEmptyValue: true
                  in: query
                  name: id
                  required: true
                  schema:
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Plugin'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getPlugin plugins
            tags:
                - plugins
            x-speakeasy-name-override: getPlugin
            x-speakeasy-react-hook:
                name: Plugin
    /rpc/plugins.getPublishStatus:
        get:
            description: Check whether GitHub publishing is configured and connected for this project.
            operationId: getPublishStatus
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/PublishStatusResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getPublishStatus plugins
            tags:
                - plugins
            x-speakeasy-name-override: getPublishStatus
            x-speakeasy-react-hook:
                name: PublishStatus
    /rpc/plugins.listAudiences:
        get:
            description: List the audiences that can be assigned to plugins.
            operationId: listAudiences
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListAudiencesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listAudiences plugins
            tags:
                - plugins
            x-speakeasy-name-override: listAudiences
            x-speakeasy-react-hook:
                name: Audiences
    /rpc/plugins.listDistributionPlugins:
        get:
            description: List minimal distribution targets for a skill the caller can read. Requires skill:read, not org:read.
            operationId: listDistributionPlugins
            parameters:
                - allowEmptyValue: true
                  in: query
                  name: skill_id
                  required: true
                  schema:
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListDistributionPluginsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listDistributionPlugins plugins
            tags:
                - plugins
            x-speakeasy-name-override: listDistributionPlugins
            x-speakeasy-react-hook:
                name: DistributionPlugins
    /rpc/plugins.listPlugins:
        get:
            description: List all plugins for the current project.
            operationId: listPlugins
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListPluginsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listPlugins plugins
            tags:
                - plugins
            x-speakeasy-name-override: listPlugins
            x-speakeasy-react-hook:
                name: Plugins
    /rpc/plugins.publishPlugins:
        post:
            description: Generate and publish all plugin packages to a GitHub repository.
            operationId: publishPlugins
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/PublishPluginsRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/PublishPluginsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: publishPlugins plugins
            tags:
                - plugins
            x-speakeasy-name-override: publishPlugins
            x-speakeasy-react-hook:
                name: PublishPlugins
    /rpc/plugins.removePluginServer:
        delete:
            description: Remove a server from a plugin.
            operationId: removePluginServer
            parameters:
                - allowEmptyValue: true
                  description: The plugin server ID to remove.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The plugin server ID to remove.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  in: query
                  name: plugin_id
                  required: true
                  schema:
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: removePluginServer plugins
            tags:
                - plugins
            x-speakeasy-name-override: removePluginServer
            x-speakeasy-react-hook:
                name: RemovePluginServer
    /rpc/plugins.rotateObservabilityCredential:
        post:
            description: Rotate the observability plugin's hooks-scoped ingest credential. Mints a replacement key, republishes the marketplace when possible so installs pick it up, and either revokes previous plugin hooks keys immediately or keeps them valid for a grace window.
            operationId: rotateObservabilityCredential
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RotateObservabilityCredentialRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RotateObservabilityCredentialResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: rotateObservabilityCredential plugins
            tags:
                - plugins
            x-speakeasy-name-override: rotateObservabilityCredential
            x-speakeasy-react-hook:
                name: RotateObservabilityCredential
    /rpc/plugins.setPluginAssignments:
        put:
            description: Replace all assignments for a plugin with the given list of principal URNs.
            operationId: setPluginAssignments
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetPluginAssignmentsForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SetPluginAssignmentsResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: setPluginAssignments plugins
            tags:
                - plugins
            x-speakeasy-name-override: setPluginAssignments
            x-speakeasy-react-hook:
                name: SetPluginAssignments
    /rpc/plugins.updateMarketplaceSettings:
        post:
            description: Update the marketplace settings for the current project. If a marketplace is already published, the updated settings are pushed to GitHub before the call returns.
            operationId: updateMarketplaceSettings
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateMarketplaceSettingsRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UpdateMarketplaceSettingsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: updateMarketplaceSettings plugins
            tags:
                - plugins
            x-speakeasy-name-override: updateMarketplaceSettings
            x-speakeasy-react-hook:
                name: UpdateMarketplaceSettings
    /rpc/plugins.updatePlugin:
        put:
            description: Update plugin metadata.
            operationId: updatePlugin
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdatePluginForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Plugin'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "412":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'failed_precondition: resource is not in a valid state for this operation'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: updatePlugin plugins
            tags:
                - plugins
            x-speakeasy-name-override: updatePlugin
            x-speakeasy-react-hook:
                name: UpdatePlugin
    /rpc/plugins.updatePluginServer:
        put:
            description: Update a server's configuration within a plugin.
            operationId: updatePluginServer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdatePluginServerForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/PluginServer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: service temporarily unavailable'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: updatePluginServer plugins
            tags:
                - plugins
            x-speakeasy-name-override: updatePluginServer
            x-speakeasy-react-hook:
                name: UpdatePluginServer
    /rpc/productFeatures.get:
        get:
            description: Get the current state of all product feature flags.
            operationId: getProductFeatures
            parameters:
                - allowEmptyValue: true
                  description: Organization whose product features to read.
                  in: query
                  name: organization_id
                  required: true
                  schema:
                    description: Organization whose product features to read.
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ProductFeatures'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getProductFeatures features
            tags:
                - features
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: ProductFeatures
    /rpc/productFeatures.set:
        post:
            description: Enable or disable an organization feature flag. Staff-managed entitlements (such as sso and scim) additionally require a Speakeasy platform administrator; organization admins can set only the org-settable operational toggles.
            operationId: setProductFeature
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetProductFeatureRequestBody'
                required: true
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: setProductFeature features
            tags:
                - features
            x-speakeasy-name-override: set
    /rpc/productFeatures.setRemoteSessionAutoRefreshPolicy:
        post:
            description: Set the organization policy for automatic remote-session refresh.
            operationId: setRemoteSessionAutoRefreshPolicy
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetRemoteSessionAutoRefreshPolicyRequestBody'
                required: true
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: setRemoteSessionAutoRefreshPolicy features
            tags:
                - features
            x-speakeasy-name-override: setRemoteSessionAutoRefreshPolicy
            x-speakeasy-react-hook:
                name: SetRemoteSessionAutoRefreshPolicy
    /rpc/projects.create:
        post:
            description: Create a new project.
            operationId: createProject
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateProjectRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CreateProjectResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: createProject projects
            tags:
                - projects
            x-speakeasy-name-override: create
            x-speakeasy-react-hook:
                name: CreateProject
    /rpc/projects.delete:
        delete:
            description: Delete a project by its ID
            operationId: deleteProject
            parameters:
                - allowEmptyValue: true
                  description: The id of the project to delete
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The id of the project to delete
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: deleteProject projects
            tags:
                - projects
            x-speakeasy-name-override: deleteById
            x-speakeasy-react-hook:
                name: DeleteProject
    /rpc/projects.get:
        get:
            description: Get project details by slug.
            operationId: getProject
            parameters:
                - allowEmptyValue: true
                  description: The slug of the project to get
                  in: query
                  name: slug
                  required: true
                  schema:
                    description: A short url-friendly label that uniquely identifies a resource.
                    maxLength: 40
                    pattern: ^[a-z0-9_-]{1,128}$
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetProjectResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: getProject projects
            tags:
                - projects
            x-speakeasy-name-override: read
            x-speakeasy-react-hook:
                name: Project
    /rpc/projects.list:
        get:
            description: List all projects for an organization.
            operationId: listProjects
            parameters:
                - allowEmptyValue: true
                  description: The ID of the organization to list projects for
                  in: query
                  name: organization_id
                  required: true
                  schema:
                    description: The ID of the organization to list projects for
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListProjectsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: listProjects projects
            tags:
                - projects
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: ListProjects
    /rpc/projects.listAllowedOrigins:
        get:
            description: List allowed origins for a project.
            operationId: listAllowedOrigins
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListAllowedOriginsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listAllowedOrigins projects
            tags:
                - projects
            x-speakeasy-name-override: listAllowedOrigins
            x-speakeasy-react-hook:
                name: ListAllowedOrigins
    /rpc/projects.setLogo:
        post:
            description: Uploads a logo for a project.
            operationId: setProjectLogo
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetSignedAssetURLForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SetProjectLogoResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: setLogo projects
            tags:
                - projects
            x-speakeasy-name-override: setLogo
            x-speakeasy-react-hook:
                name: setProjectLogo
    /rpc/projects.setOrganizationWhitelist:
        post:
            description: Set organization whitelist status (admin only - requires speakeasy-team API key)
            operationId: setOrganizationWhitelist
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetOrganizationWhitelistRequestBody'
                required: true
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
            summary: setOrganizationWhitelist projects
            tags:
                - projects
            x-speakeasy-name-override: setOrganizationWhitelist
    /rpc/projects.update:
        post:
            description: Update the display name of the current project.
            operationId: updateProject
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateProjectForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UpdateProjectResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: updateProject projects
            tags:
                - projects
            x-speakeasy-name-override: update
            x-speakeasy-react-hook:
                name: UpdateProject
    /rpc/projects.upsertAllowedOrigin:
        post:
            description: Upsert an allowed origin for a project.
            operationId: upsertAllowedOrigin
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpsertAllowedOriginForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UpsertAllowedOriginResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: upsertAllowedOrigin projects
            tags:
                - projects
            x-speakeasy-name-override: upsertAllowedOrigin
            x-speakeasy-react-hook:
                name: UpsertAllowedOrigin
    /rpc/remoteMcp.createServer:
        post:
            description: Create a new remote MCP server
            operationId: createRemoteMcpServer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateServerForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteMcpServer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: createServer remoteMcp
            tags:
                - remoteMcp
            x-speakeasy-name-override: createServer
            x-speakeasy-react-hook:
                name: CreateRemoteMcpServer
    /rpc/remoteMcp.createServerAndMcpServer:
        post:
            description: Create a remote MCP server and its linked, disabled MCP server atomically. The dashboard uses this workflow so a failed linked-server creation never leaves an orphan remote source.
            operationId: createRemoteMcpServerAndMcpServer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateServerForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CreateServerAndMcpServerResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: createServerAndMcpServer remoteMcp
            tags:
                - remoteMcp
            x-speakeasy-name-override: createServerAndMcpServer
    /rpc/remoteMcp.createServerHeader:
        post:
            description: Create a header on a remote MCP server
            operationId: createRemoteMcpServerHeader
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateServerHeaderForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteMcpServerHeader'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: createServerHeader remoteMcp
            tags:
                - remoteMcp
            x-speakeasy-name-override: createServerHeader
            x-speakeasy-react-hook:
                name: CreateRemoteMcpServerHeader
    /rpc/remoteMcp.deleteServer:
        delete:
            description: Delete a remote MCP server
            operationId: deleteRemoteMcpServer
            parameters:
                - allowEmptyValue: true
                  description: The ID of the remote MCP server to delete
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the remote MCP server to delete
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: deleteServer remoteMcp
            tags:
                - remoteMcp
            x-speakeasy-name-override: deleteServer
            x-speakeasy-react-hook:
                name: DeleteRemoteMcpServer
    /rpc/remoteMcp.deleteServerHeader:
        delete:
            description: Delete a remote MCP server header
            operationId: deleteRemoteMcpServerHeader
            parameters:
                - allowEmptyValue: true
                  description: The ID of the header to delete
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the header to delete
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: deleteServerHeader remoteMcp
            tags:
                - remoteMcp
            x-speakeasy-name-override: deleteServerHeader
            x-speakeasy-react-hook:
                name: DeleteRemoteMcpServerHeader
    /rpc/remoteMcp.discoverProtectedResourceMetadata:
        post:
            description: Probe the remote MCP server's origin for an RFC 9728 .well-known/oauth-protected-resource document and return either the parsed metadata or a typed unavailability reason. Runs server-side under guardian.Policy so production resource servers without CORS can still be inspected.
            operationId: discoverRemoteMcpProtectedResourceMetadata
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DiscoverProtectedResourceMetadataRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ProtectedResourceMetadataDiscovery'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: discoverProtectedResourceMetadata remoteMcp
            tags:
                - remoteMcp
            x-speakeasy-name-override: discoverProtectedResourceMetadata
            x-speakeasy-react-hook:
                name: DiscoverRemoteMcpProtectedResourceMetadata
    /rpc/remoteMcp.getServer:
        get:
            description: Get a remote MCP server by ID or slug. Exactly one of id or slug must be provided.
            operationId: getRemoteMcpServer
            parameters:
                - allowEmptyValue: true
                  description: The ID of the remote MCP server. Mutually exclusive with slug.
                  in: query
                  name: id
                  schema:
                    description: The ID of the remote MCP server. Mutually exclusive with slug.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: The slug of the remote MCP server. Mutually exclusive with id.
                  in: query
                  name: slug
                  schema:
                    description: The slug of the remote MCP server. Mutually exclusive with id.
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteMcpServer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: getServer remoteMcp
            tags:
                - remoteMcp
            x-speakeasy-name-override: getServer
            x-speakeasy-react-hook:
                name: GetRemoteMcpServer
    /rpc/remoteMcp.getServerHeader:
        get:
            description: Get a remote MCP server header by ID
            operationId: getRemoteMcpServerHeader
            parameters:
                - allowEmptyValue: true
                  description: The ID of the header
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the header
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteMcpServerHeader'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: getServerHeader remoteMcp
            tags:
                - remoteMcp
            x-speakeasy-name-override: getServerHeader
            x-speakeasy-react-hook:
                name: GetRemoteMcpServerHeader
    /rpc/remoteMcp.getServerScopes:
        get:
            description: 'Report the scope state of the protected resource a remote-backed MCP server''s logins are for: the operator pin, which belongs to the protected resource and so is shared by every server in the project with the same upstream URL, the scopes the resource advertises and last challenged with, the organization''s resource scope discovery flag, and what a login through each bound client would request now. Requires read access to the server only. Reads cached state only; never contacts the resource.'
            operationId: getRemoteMcpServerScopes
            parameters:
                - allowEmptyValue: true
                  description: The ID of the remote-backed MCP server.
                  in: query
                  name: mcp_server_id
                  required: true
                  schema:
                    description: The ID of the remote-backed MCP server.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteMcpServerScopes'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: getServerScopes remoteMcp
            tags:
                - remoteMcp
            x-speakeasy-name-override: getServerScopes
            x-speakeasy-react-hook:
                name: GetRemoteMcpServerScopes
    /rpc/remoteMcp.listServerHeaders:
        get:
            description: List the headers configured for a remote MCP server
            operationId: listRemoteMcpServerHeaders
            parameters:
                - allowEmptyValue: true
                  description: The ID of the remote MCP server
                  in: query
                  name: remote_mcp_server_id
                  required: true
                  schema:
                    description: The ID of the remote MCP server
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListServerHeadersResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listServerHeaders remoteMcp
            tags:
                - remoteMcp
            x-speakeasy-name-override: listServerHeaders
            x-speakeasy-react-hook:
                name: RemoteMcpServerHeaders
    /rpc/remoteMcp.listServers:
        get:
            description: List all remote MCP servers for a project
            operationId: listRemoteMcpServers
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListServersResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listServers remoteMcp
            tags:
                - remoteMcp
            x-speakeasy-name-override: listServers
            x-speakeasy-react-hook:
                name: RemoteMcpServers
    /rpc/remoteMcp.probeURL:
        post:
            description: Probe a candidate remote MCP server URL by issuing an MCP initialize request and reporting whether MCP is available, authentication is required, the response is invalid, or the server is unreachable.
            operationId: probeRemoteMcpURL
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ProbeURLForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ProbeURLResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: probeURL remoteMcp
            tags:
                - remoteMcp
            x-speakeasy-name-override: probeURL
            x-speakeasy-react-hook:
                name: ProbeRemoteMcpURL
    /rpc/remoteMcp.setServerScopePin:
        post:
            description: Pin the scopes logins to a remote-backed MCP server's protected resource request, or clear the pin with an empty list. The pin belongs to the protected resource, so it applies to every server in the project with the same upstream URL, and the caller needs write access to all of them. Returns the scope state re-read after the write.
            operationId: setRemoteMcpServerScopePin
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetServerScopePinRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteMcpServerScopes'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: setServerScopePin remoteMcp
            tags:
                - remoteMcp
            x-speakeasy-name-override: setServerScopePin
            x-speakeasy-react-hook:
                name: SetRemoteMcpServerScopePin
    /rpc/remoteMcp.updateServer:
        post:
            description: Update a remote MCP server
            operationId: updateRemoteMcpServer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateServerForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteMcpServer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: updateServer remoteMcp
            tags:
                - remoteMcp
            x-speakeasy-name-override: updateServer
            x-speakeasy-react-hook:
                name: UpdateRemoteMcpServer
    /rpc/remoteMcp.updateServerHeader:
        post:
            description: Update a remote MCP server header
            operationId: updateRemoteMcpServerHeader
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateServerHeaderForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteMcpServerHeader'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: updateServerHeader remoteMcp
            tags:
                - remoteMcp
            x-speakeasy-name-override: updateServerHeader
            x-speakeasy-react-hook:
                name: UpdateRemoteMcpServerHeader
    /rpc/remoteMcp.verifyURL:
        post:
            deprecated: true
            description: |-
                Probe a candidate remote MCP server URL and return the legacy boolean verification result.

                Deprecated: use probeURL instead.
            operationId: verifyRemoteMcpURL
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/VerifyURLForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/VerifyURLResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: verifyURL remoteMcp
            tags:
                - remoteMcp
            x-speakeasy-name-override: verifyURL
            x-speakeasy-react-hook:
                name: VerifyRemoteMcpURL
    /rpc/remoteSessionClients.attachKeySet:
        post:
            description: Attach an organization JSON Web Key Set to a remote_session_client, opting it into signing private_key_jwt assertions. The set must belong to the client's organization. Requires the customer_managed_encryption_keys entitlement.
            operationId: attachRemoteSessionClientKeySet
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/AttachKeySetForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionClient'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "412":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'failed_precondition: resource is not in a valid state for this operation'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: attachKeySet remoteSessionClients
            tags:
                - remoteSessionClients
            x-speakeasy-name-override: attachKeySet
            x-speakeasy-react-hook:
                name: AttachRemoteSessionClientKeySet
    /rpc/remoteSessionClients.attachUserSessionIssuer:
        post:
            description: Attach a user_session_issuer to a remote_session_client by recording the binding in the join table. Rejected when another client is already bound to the same user_session_issuer for this client's remote_session_issuer.
            operationId: attachUserSessionIssuer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/AttachUserSessionIssuerForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionClient'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: attachUserSessionIssuer remoteSessionClients
            tags:
                - remoteSessionClients
            x-speakeasy-name-override: attachUserSessionIssuer
            x-speakeasy-react-hook:
                name: AttachUserSessionIssuer
    /rpc/remoteSessionClients.create:
        post:
            description: 'Register a remote_session_client by supplying a client_id and optional client_secret obtained out-of-band from the upstream issuer. With template_client_id, the new client instead reuses a stored client''s upstream registration: the server copies that client''s secret and callback into the new record, and neither is returned to the caller.'
            operationId: createRemoteSessionClient
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateRemoteSessionClientForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionClient'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: createRemoteSessionClient remoteSessionClients
            tags:
                - remoteSessionClients
            x-speakeasy-name-override: create
            x-speakeasy-react-hook:
                name: CreateRemoteSessionClient
    /rpc/remoteSessionClients.createCimd:
        post:
            description: Register a remote_session_client in Client ID Metadata Document (CIMD) mode. Speakeasy generates the client_id (the URL of a hosted client metadata document) and serves the document publicly; the client carries no secret and authenticates with token_endpoint_auth_method=none. The owning issuer must advertise client_id_metadata_document_supported.
            operationId: createCimdRemoteSessionClient
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateCimdForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionClient'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: createCimd remoteSessionClients
            tags:
                - remoteSessionClients
            x-speakeasy-name-override: createCimd
            x-speakeasy-react-hook:
                name: CreateCimdRemoteSessionClient
    /rpc/remoteSessionClients.delete:
        delete:
            description: Soft-delete a remote_session_client. Cascades to remote_sessions rows pointing at this client; affected principals are forced to re-authenticate.
            operationId: deleteRemoteSessionClient
            parameters:
                - allowEmptyValue: true
                  description: The remote_session_client id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The remote_session_client id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: deleteRemoteSessionClient remoteSessionClients
            tags:
                - remoteSessionClients
            x-speakeasy-name-override: delete
            x-speakeasy-react-hook:
                name: DeleteRemoteSessionClient
    /rpc/remoteSessionClients.detachKeySet:
        delete:
            description: Detach the JSON Web Key Set from a remote_session_client. Refused while the client declares token_endpoint_auth_method=private_key_jwt. A no-op when no set is attached. Requires the customer_managed_encryption_keys entitlement.
            operationId: detachRemoteSessionClientKeySet
            parameters:
                - allowEmptyValue: true
                  description: The remote_session_client id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The remote_session_client id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionClient'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "412":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'failed_precondition: resource is not in a valid state for this operation'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: detachKeySet remoteSessionClients
            tags:
                - remoteSessionClients
            x-speakeasy-name-override: detachKeySet
            x-speakeasy-react-hook:
                name: DetachRemoteSessionClientKeySet
    /rpc/remoteSessionClients.detachUserSessionIssuer:
        post:
            description: Detach a user_session_issuer from a remote_session_client by removing the binding from the join table. A no-op when the binding does not exist.
            operationId: detachUserSessionIssuer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/AttachUserSessionIssuerForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionClient'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: detachUserSessionIssuer remoteSessionClients
            tags:
                - remoteSessionClients
            x-speakeasy-name-override: detachUserSessionIssuer
            x-speakeasy-react-hook:
                name: DetachUserSessionIssuer
    /rpc/remoteSessionClients.get:
        get:
            description: Get a remote_session_client by id.
            operationId: getRemoteSessionClient
            parameters:
                - allowEmptyValue: true
                  description: The remote_session_client id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The remote_session_client id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionClient'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: getRemoteSessionClient remoteSessionClients
            tags:
                - remoteSessionClients
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: RemoteSessionClient
    /rpc/remoteSessionClients.list:
        get:
            description: List remote_session_clients in the caller's project.
            operationId: listRemoteSessionClients
            parameters:
                - allowEmptyValue: true
                  description: Filter to clients registered with this issuer.
                  in: query
                  name: remote_session_issuer_id
                  schema:
                    description: Filter to clients registered with this issuer.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Filter to clients paired with this user_session_issuer.
                  in: query
                  name: user_session_issuer_id
                  schema:
                    description: Filter to clients paired with this user_session_issuer.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Pagination cursor.
                  in: query
                  name: cursor
                  schema:
                    description: Pagination cursor.
                    type: string
                - allowEmptyValue: true
                  description: Page size (default 50, max 100).
                  in: query
                  name: limit
                  schema:
                    description: Page size (default 50, max 100).
                    format: int64
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListRemoteSessionClientsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listRemoteSessionClients remoteSessionClients
            tags:
                - remoteSessionClients
            x-speakeasy-name-override: list
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: RemoteSessionClients
    /rpc/remoteSessionClients.newClientCallbackUrl:
        get:
            description: Get the redirect URI a remote_session_client created now in the caller's project registers with its upstream provider.
            operationId: getNewRemoteSessionClientCallbackUrl
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/NewClientCallbackURLResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: getNewClientCallbackUrl remoteSessionClients
            tags:
                - remoteSessionClients
            x-speakeasy-name-override: getNewClientCallbackUrl
            x-speakeasy-react-hook:
                name: NewRemoteSessionClientCallbackUrl
    /rpc/remoteSessionClients.prepareEMA:
        post:
            description: Explicit, tenant-scoped identity-chaining configuration. Mutations require project-write authorization; reads require project-read authorization. Does not exchange tokens or establish provider verification, trust, consent, or user access.
            operationId: prepareEMA
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/PrepareEMARequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/IdentityChainingPreparation'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: prepareEMA remoteSessionClients
            tags:
                - remoteSessionClients
            x-speakeasy-name-override: prepareEMA
    /rpc/remoteSessionClients.readEMA:
        post:
            description: Explicit, tenant-scoped identity-chaining configuration. Mutations require project-write authorization; reads require project-read authorization. Does not exchange tokens or establish provider verification, trust, consent, or user access.
            operationId: readEMA
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ReadEMARequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/IdentityChainingPreparation'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: readEMA remoteSessionClients
            tags:
                - remoteSessionClients
            x-speakeasy-name-override: readEMA
    /rpc/remoteSessionClients.unlinkEMA:
        post:
            description: Explicit, tenant-scoped identity-chaining configuration. Mutations require project-write authorization; reads require project-read authorization. Does not exchange tokens or establish provider verification, trust, consent, or user access.
            operationId: unlinkEMA
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UnlinkEMARequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/IdentityChainingPreparation'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: unlinkEMA remoteSessionClients
            tags:
                - remoteSessionClients
            x-speakeasy-name-override: unlinkEMA
    /rpc/remoteSessionClients.update:
        post:
            description: Rotate the client_secret or change the non-issuer settings on an existing remote_session_client. Issuer attachments are managed via attachUserSessionIssuer / detachUserSessionIssuer.
            operationId: updateRemoteSessionClient
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateRemoteSessionClientForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionClient'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: updateRemoteSessionClient remoteSessionClients
            tags:
                - remoteSessionClients
            x-speakeasy-name-override: update
            x-speakeasy-react-hook:
                name: UpdateRemoteSessionClient
    /rpc/remoteSessionIssuers.create:
        post:
            description: Create a new remote_session_issuer.
            operationId: createRemoteSessionIssuer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateRemoteSessionIssuerForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionIssuer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: createRemoteSessionIssuer remoteSessionIssuers
            tags:
                - remoteSessionIssuers
            x-speakeasy-name-override: create
            x-speakeasy-react-hook:
                name: CreateRemoteSessionIssuer
    /rpc/remoteSessionIssuers.delete:
        delete:
            description: Soft-delete a remote_session_issuer. Blocked if any remote_session_clients still reference it.
            operationId: deleteRemoteSessionIssuer
            parameters:
                - allowEmptyValue: true
                  description: The remote_session_issuer id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The remote_session_issuer id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: deleteRemoteSessionIssuer remoteSessionIssuers
            tags:
                - remoteSessionIssuers
            x-speakeasy-name-override: delete
            x-speakeasy-react-hook:
                name: DeleteRemoteSessionIssuer
    /rpc/remoteSessionIssuers.fetchMetadata:
        post:
            description: Hit an upstream issuer's RFC 8414 .well-known/oauth-authorization-server document and return a draft suitable for createRemoteSessionIssuer. Keyed by issuer URL; no record need exist and nothing is persisted. Use refreshMetadata to re-discover and persist against an existing issuer.
            operationId: fetchRemoteSessionIssuerMetadata
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/FetchIssuerMetadataRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionIssuerDraft'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: fetchRemoteSessionIssuerMetadata remoteSessionIssuers
            tags:
                - remoteSessionIssuers
            x-speakeasy-name-override: fetchMetadata
            x-speakeasy-react-hook:
                name: FetchRemoteSessionIssuerMetadata
    /rpc/remoteSessionIssuers.get:
        get:
            description: |-
                Get a remote_session_issuer by id, by slug, or by upstream issuer URL. Provide exactly one.

                Looking up by issuer is how an automatic setup flow decides whether an upstream authorization server already has an identity provider before creating one: a 404 means nothing describes that URL yet, so create it. Unlike id and slug, which address at most one record, several issuers may legitimately describe the same URL — a project may keep its own alongside one inherited from its organization or from the platform catalog. This returns the one this project would use, preferring project over organization over platform and, within a tier, the oldest.

                The issuer URL is canonicalized before matching: scheme and host are lowercased, the scheme's default port is dropped, and trailing slashes are stripped. http and https are deliberately NOT equated, path case is significant, and a URL carrying a query or fragment is rejected (RFC 8414 forbids both on issuer identifiers). Canonicalization applies to the supplied URL only, never to stored values, so an issuer recorded with an unusual spelling may not be found and a duplicate is created instead, which is the safe direction to fail.
            operationId: getRemoteSessionIssuer
            parameters:
                - allowEmptyValue: true
                  description: The remote_session_issuer id.
                  in: query
                  name: id
                  schema:
                    description: The remote_session_issuer id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: The remote_session_issuer slug.
                  in: query
                  name: slug
                  schema:
                    description: The remote_session_issuer slug.
                    type: string
                - allowEmptyValue: true
                  description: The upstream issuer URL (e.g. https://login.linear.app). Returns the issuer this project would use for that URL, or 404 when none describes it.
                  in: query
                  name: issuer
                  schema:
                    description: The upstream issuer URL (e.g. https://login.linear.app). Returns the issuer this project would use for that URL, or 404 when none describes it.
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionIssuer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: getRemoteSessionIssuer remoteSessionIssuers
            tags:
                - remoteSessionIssuers
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: RemoteSessionIssuer
    /rpc/remoteSessionIssuers.getDuplicatePreflight:
        get:
            description: |-
                Report the existing remote_session_issuers that already describe an upstream issuer URL, so a create or edit form can warn before it duplicates one. Covers this project's own issuers plus those inherited from the organization and the platform catalog.

                Advisory only. Duplicating an issuer URL is legitimate — a project may want its own record so it can attach different documentation, branding or scopes — so nothing here blocks a write, and no lock is taken. A create that races another create still produces two records, which is a supported state.

                Matching uses the same canonicalization as getRemoteSessionIssuer. A URL that cannot be parsed as an issuer identifier returns no matches rather than an error, because a partially typed URL is the normal state of a form field.
            operationId: getRemoteSessionIssuerDuplicatePreflight
            parameters:
                - allowEmptyValue: true
                  description: The upstream issuer URL being entered (e.g. https://login.linear.app). Empty or unparseable returns no matches.
                  in: query
                  name: issuer
                  schema:
                    description: The upstream issuer URL being entered (e.g. https://login.linear.app). Empty or unparseable returns no matches.
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionIssuerDuplicatePreflight'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: getRemoteSessionIssuerDuplicatePreflight remoteSessionIssuers
            tags:
                - remoteSessionIssuers
            x-speakeasy-name-override: getDuplicatePreflight
            x-speakeasy-react-hook:
                name: RemoteSessionIssuerDuplicatePreflight
    /rpc/remoteSessionIssuers.list:
        get:
            description: 'List the remote_session_issuers the caller''s project can use: its own, plus those inherited from its organization and from the platform catalog. Newest first; the search, upstream_host and tier filters narrow the listing without changing its order or cursor.'
            operationId: listRemoteSessionIssuers
            parameters:
                - allowEmptyValue: true
                  description: Pagination cursor.
                  in: query
                  name: cursor
                  schema:
                    description: Pagination cursor.
                    type: string
                - allowEmptyValue: true
                  description: Page size (default 50, max 100).
                  in: query
                  name: limit
                  schema:
                    description: Page size (default 50, max 100).
                    format: int64
                    type: integer
                - allowEmptyValue: true
                  description: Only issuers whose name, slug or issuer URL contains this text, ignoring case.
                  in: query
                  name: search
                  schema:
                    description: Only issuers whose name, slug or issuer URL contains this text, ignoring case.
                    maxLength: 256
                    type: string
                - allowEmptyValue: true
                  description: 'Only issuers that could sign users in to an upstream at this host (e.g. mcp.linear.app): those whose issuer URL host equals it or is one of its parent domains (linear.app). Host only, optionally with a port; no scheme or path.'
                  in: query
                  name: upstream_host
                  schema:
                    description: 'Only issuers that could sign users in to an upstream at this host (e.g. mcp.linear.app): those whose issuer URL host equals it or is one of its parent domains (linear.app). Host only, optionally with a port; no scheme or path.'
                    maxLength: 260
                    type: string
                - allowEmptyValue: true
                  description: 'Only issuers from one tier: the project''s own (project), inherited from its organization (organization), or from the platform catalog (platform). Omitted lists all three.'
                  in: query
                  name: tier
                  schema:
                    description: 'Only issuers from one tier: the project''s own (project), inherited from its organization (organization), or from the platform catalog (platform). Omitted lists all three.'
                    enum:
                        - project
                        - organization
                        - platform
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListRemoteSessionIssuersResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listRemoteSessionIssuers remoteSessionIssuers
            tags:
                - remoteSessionIssuers
            x-speakeasy-name-override: list
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: RemoteSessionIssuers
    /rpc/remoteSessionIssuers.refreshMetadata:
        post:
            description: Re-fetch an existing remote_session_issuer's RFC 8414 metadata document and persist the discovered values. Keyed by issuer id. Only RFC 8414-derived columns are written — endpoints, the *_supported arrays, client_id_metadata_document_supported, and the documentation URLs. Speakeasy behavior and display fields (oidc, passthrough, name, slug, logo, client setup documentation) are left alone. Requires project:write.
            operationId: refreshRemoteSessionIssuerMetadata
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RiskIDRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionIssuerRefresh'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: refreshRemoteSessionIssuerMetadata remoteSessionIssuers
            tags:
                - remoteSessionIssuers
            x-speakeasy-name-override: refreshMetadata
            x-speakeasy-react-hook:
                name: RefreshRemoteSessionIssuerMetadata
    /rpc/remoteSessionIssuers.update:
        post:
            description: Update fields on an existing remote_session_issuer.
            operationId: updateRemoteSessionIssuer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateRemoteSessionIssuerForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoteSessionIssuer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: updateRemoteSessionIssuer remoteSessionIssuers
            tags:
                - remoteSessionIssuers
            x-speakeasy-name-override: update
            x-speakeasy-react-hook:
                name: UpdateRemoteSessionIssuer
    /rpc/remoteSessions.attachBinding:
        post:
            description: Manage exact remote session attachments for an agent. Reads require agent authorization or write permission. Changes require an ordinary human session and agent write permission. Attachment requires ownership of the upstream session; editors can remove any assignment. Never returns credentials.
            operationId: attachBinding
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/AttachBindingRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/PrincipalRemoteSessionBinding'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: attachBinding remoteSessions
            tags:
                - remoteSessions
            x-speakeasy-name-override: attachBinding
    /rpc/remoteSessions.beginBindingRefresh:
        post:
            description: Refresh an agent attachment through one exact browser OAuth attempt. Requires an ordinary human with agent write permission and ownership of the attached connection. The one-time attempt is bound to the caller, agent, issuer and original attachment; completion never selects a different sign-in.
            operationId: beginBindingRefresh
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/BeginBindingRefreshRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/BindingRefreshAttempt'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: beginBindingRefresh remoteSessions
            tags:
                - remoteSessions
            x-speakeasy-name-override: beginBindingRefresh
    /rpc/remoteSessions.commitServerIdentityConfiguration:
        post:
            description: Atomically configure identity for a Remote MCP-backed MCP server. The complete plan selects or creates a project Remote Identity Provider and links an existing client, creates a manual client, or automatically prefers CIMD over DCR. Existing-client linking requires mcp:write on the target and on every other MCP server sharing its user session issuer, because the client binding is keyed by issuer; creating a provider or client additionally requires project:write. Unsupported automatic registration returns manual_setup_required without changing local state.
            operationId: commitServerIdentityConfiguration
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CommitServerIdentityConfigurationForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CommitServerIdentityConfigurationResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: commitServerIdentityConfiguration remoteSessions
            tags:
                - remoteSessions
            x-speakeasy-name-override: commitServerIdentityConfiguration
            x-speakeasy-react-hook:
                name: CommitServerIdentityConfiguration
    /rpc/remoteSessions.completeBindingRefresh:
        post:
            description: Refresh an agent attachment through one exact browser OAuth attempt. Requires an ordinary human with agent write permission and ownership of the attached connection. The one-time attempt is bound to the caller, agent, issuer and original attachment; completion never selects a different sign-in.
            operationId: completeBindingRefresh
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CompleteBindingRefreshRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/BindingRefreshResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: completeBindingRefresh remoteSessions
            tags:
                - remoteSessions
            x-speakeasy-name-override: completeBindingRefresh
    /rpc/remoteSessions.count:
        get:
            description: 'Count the distinct people (user subjects) holding a live remote_session minted through one remote_session_client. Scoped like listRemoteSessions: only sessions whose issuer, client and remote issuer are reachable from the caller''s project count; API-key and anonymous subjects do not. A client shared by several MCP servers counts people across all of them.'
            operationId: countRemoteSessions
            parameters:
                - allowEmptyValue: true
                  description: The remote_session_client whose sessions to count.
                  in: query
                  name: remote_session_client_id
                  required: true
                  schema:
                    description: The remote_session_client whose sessions to count.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CountRemoteSessionsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: countRemoteSessions remoteSessions
            tags:
                - remoteSessions
            x-speakeasy-name-override: count
            x-speakeasy-react-hook:
                name: RemoteSessionsCount
    /rpc/remoteSessions.detachBinding:
        post:
            description: Manage exact remote session attachments for an agent. Reads require agent authorization or write permission. Changes require an ordinary human session and agent write permission. Attachment requires ownership of the upstream session; editors can remove any assignment. Never returns credentials.
            operationId: detachBinding
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DetachBindingRequestBody'
                required: true
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: detachBinding remoteSessions
            tags:
                - remoteSessions
            x-speakeasy-name-override: detachBinding
    /rpc/remoteSessions.detachServerClientAssociation:
        post:
            description: 'Remove one MCP server''s association with an upstream OAuth client. The client and its associations with other servers are untouched. When the server is the only consumer of its user session issuer, the association follows the issuer''s client binding: with upstream auth enforcement off, detach returns a conflict (409) and you must turn off User Identity on the server instead; with enforcement on, detach retires only the backfill-derived typed auth-client link and keeps the association. In this sole-consumer case, repeating detach returns not found (404). For other servers, detach removes the association (or records an exclusion for an unclaimed client bound to the server''s issuer) and synchronizes the backfill-derived typed links. Administrator-owned typed links are untouched. Requires mcp:write on the server.'
            operationId: detachServerClientAssociation
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DetachServerClientAssociationRequestBody'
                required: true
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: detachServerClientAssociation remoteSessions
            tags:
                - remoteSessions
            x-speakeasy-name-override: detachServerClientAssociation
            x-speakeasy-react-hook:
                name: DetachServerClientAssociation
    /rpc/remoteSessions.getServerIdentityImpact:
        get:
            description: Preview which other MCP servers and gateways a client binding change on a user session issuer would affect, across every project in the organization for an organization-level issuer. Each server's upstream authorization server is derived from the clients it can see (its own project's and organization-level ones), so a server is listed when that derivation changes (repoint or clear) or when a client it uses is replaced (resignin). A gateway is listed when a client it can see is unbound (client_removed). The target server is excluded. A change the commit would refuse, such as one that touches an organization-level client on an organization-level issuer, is refused here too. Requires mcp:write on mcp_server_id when given, otherwise project:write. Servers the caller cannot read are counted in hidden_server_count and never named.
            operationId: getServerIdentityImpact
            parameters:
                - allowEmptyValue: true
                  description: The user session issuer whose client bindings change.
                  in: query
                  name: user_session_issuer_id
                  required: true
                  schema:
                    description: The user session issuer whose client bindings change.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: The MCP server the change is made from. Excluded from the result.
                  in: query
                  name: mcp_server_id
                  schema:
                    description: The MCP server the change is made from. Excluded from the result.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: The kind of binding change.
                  in: query
                  name: change
                  required: true
                  schema:
                    description: The kind of binding change.
                    enum:
                        - replace
                        - attach
                        - detach
                    type: string
                - allowEmptyValue: true
                  description: The Remote Identity Provider of the client being bound. Omit for a new provider.
                  in: query
                  name: provider_id
                  schema:
                    description: The Remote Identity Provider of the client being bound. Omit for a new provider.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: An existing client being bound. Omit for a new client.
                  in: query
                  name: client_id
                  schema:
                    description: An existing client being bound. Omit for a new client.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Preview replacing the provider's bound client, as commitServerIdentityConfiguration's replace_client does. The servers that use it are listed with the resignin impact, and that list is what the commit must confirm. Only with change replace and mcp_server_id.
                  in: query
                  name: replace_client
                  schema:
                    description: Preview replacing the provider's bound client, as commitServerIdentityConfiguration's replace_client does. The servers that use it are listed with the resignin impact, and that list is what the commit must confirm. Only with change replace and mcp_server_id.
                    type: boolean
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ServerIdentityImpactResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: getServerIdentityImpact remoteSessions
            tags:
                - remoteSessions
            x-speakeasy-name-override: getServerIdentityImpact
            x-speakeasy-react-hook:
                name: ServerIdentityImpact
    /rpc/remoteSessions.list:
        get:
            description: List remote_sessions in the caller's project. Supplying both principal_id and user_session_issuer_id instead lists only the ordinary human caller's eligible sessions for an agent they own, without requiring project read permission. Both filters must be supplied together. access_token_encrypted and refresh_token_encrypted are never returned — only metadata (access_expires_at, refresh_expires_at, authorization_expires_at, scopes).
            operationId: listRemoteSessions
            parameters:
                - allowEmptyValue: true
                  description: Owned agent whose eligible sessions to list; requires user_session_issuer_id.
                  in: query
                  name: principal_id
                  schema:
                    description: Owned agent whose eligible sessions to list; requires user_session_issuer_id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Issuer configuration sessions must be eligible for; requires principal_id.
                  in: query
                  name: user_session_issuer_id
                  schema:
                    description: Issuer configuration sessions must be eligible for; requires principal_id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Exact-match filter on subject URN.
                  in: query
                  name: subject_urn
                  schema:
                    description: Exact-match filter on subject URN.
                    type: string
                - allowEmptyValue: true
                  description: Filter by remote_session_client id.
                  in: query
                  name: remote_session_client_id
                  schema:
                    description: Filter by remote_session_client id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Pagination cursor.
                  in: query
                  name: cursor
                  schema:
                    description: Pagination cursor.
                    type: string
                - allowEmptyValue: true
                  description: Page size (default 50, max 100).
                  in: query
                  name: limit
                  schema:
                    description: Page size (default 50, max 100).
                    format: int64
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListRemoteSessionsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listRemoteSessions remoteSessions
            tags:
                - remoteSessions
            x-speakeasy-name-override: list
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: RemoteSessions
    /rpc/remoteSessions.listBindings:
        get:
            description: Manage exact remote session attachments for an agent. Reads require agent authorization or write permission. Changes require an ordinary human session and agent write permission. Attachment requires ownership of the upstream session; editors can remove any assignment. Never returns credentials.
            operationId: listBindings
            parameters:
                - allowEmptyValue: true
                  in: query
                  name: principal_id
                  required: true
                  schema:
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  in: query
                  name: user_session_issuer_id
                  required: true
                  schema:
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListBindingsResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listBindings remoteSessions
            tags:
                - remoteSessions
            x-speakeasy-name-override: listBindings
    /rpc/remoteSessions.listServerClientAssociations:
        get:
            description: 'List the upstream OAuth clients an MCP server is associated with. An association is a per-server configuration fact: one client can serve several servers, and server_count reports how many live servers share each client, since editing or rotating a shared client changes every one of them. Associations are recorded ahead of the serving path that will read them; until then the server keeps signing in through its user session issuer''s bindings. Requires mcp:read on the server.'
            operationId: listServerClientAssociations
            parameters:
                - allowEmptyValue: true
                  description: The MCP server.
                  in: query
                  name: mcp_server_id
                  required: true
                  schema:
                    description: The MCP server.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListServerClientAssociationsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listServerClientAssociations remoteSessions
            tags:
                - remoteSessions
            x-speakeasy-name-override: listServerClientAssociations
            x-speakeasy-react-hook:
                name: ServerClientAssociations
    /rpc/remoteSessions.revoke:
        post:
            description: Drop a remote_session row. The next /mcp call by that principal triggers a fresh authn challenge.
            operationId: revokeRemoteSession
            parameters:
                - allowEmptyValue: true
                  description: The remote_session id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The remote_session id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: revokeRemoteSession remoteSessions
            tags:
                - remoteSessions
            x-speakeasy-name-override: revoke
            x-speakeasy-react-hook:
                name: RevokeRemoteSession
    /rpc/remoteSessions.testServerConnection:
        post:
            description: Initialize a directly Remote MCP-backed server and discover all tools using the signed-in user's saved authorization. Never executes tools. A provider tab returning is not evidence of authorization. Requires an ordinary dashboard session and mcp:connect on the exact server; API keys are refused. Requires the staff-managed provider_setup organization feature, disabled by default; unavailable organizations receive HTTP 404.
            operationId: testServerConnection
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/TestServerConnectionRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ServerConnectionTestResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: testServerConnection remoteSessions
            tags:
                - remoteSessions
            x-speakeasy-name-override: testServerConnection
            x-speakeasy-react-hook:
                name: TestServerConnection
    /rpc/resources.list:
        get:
            description: List all resources for a project
            operationId: listResources
            parameters:
                - allowEmptyValue: true
                  description: The cursor to fetch results from
                  in: query
                  name: cursor
                  schema:
                    description: The cursor to fetch results from
                    type: string
                - allowEmptyValue: true
                  description: The number of resources to return per page
                  in: query
                  name: limit
                  schema:
                    description: The number of resources to return per page
                    format: int32
                    type: integer
                - allowEmptyValue: true
                  description: The deployment ID. If unset, latest deployment will be used.
                  in: query
                  name: deployment_id
                  schema:
                    description: The deployment ID. If unset, latest deployment will be used.
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListResourcesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listResources resources
            tags:
                - resources
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: ListResources
    /rpc/risk.acknowledgePolicyChallenge:
        post:
            description: Acknowledge a risk policy warn/challenge from a warning-link token. Records the acknowledgement so the user's retried action proceeds; self-service (no admin approval).
            operationId: acknowledgeRiskPolicyChallenge
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/AcknowledgeRiskPolicyChallengeRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AcknowledgeRiskPolicyChallengeResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: acknowledgeRiskPolicyChallenge risk
            tags:
                - risk
            x-speakeasy-group: risk.policyChallenges
            x-speakeasy-name-override: acknowledge
            x-speakeasy-react-hook:
                name: RiskAcknowledgePolicyChallenge
                type: mutation
    /rpc/risk.approvePolicyBypassRequest:
        post:
            description: Approve a risk policy bypass request for the requested policy target.
            operationId: approveRiskPolicyBypassRequest
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RiskPolicyBypassApprovalRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RiskPolicyBypassRequest'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: approveRiskPolicyBypassRequest risk
            tags:
                - risk
            x-speakeasy-group: risk.policyBypassRequests
            x-speakeasy-name-override: approve
            x-speakeasy-react-hook:
                name: RiskApprovePolicyBypassRequest
                type: mutation
    /rpc/risk.compileCELExpression:
        get:
            description: Compile a single CEL expression (a detection predicate or a policy scope predicate) without evaluating it, so the editor can validate as the author types. Returns ok=true when it compiles, otherwise ok=false with the compiler error message. An empty expression is valid (ok=true).
            operationId: compileExpr
            parameters:
                - allowEmptyValue: true
                  description: The CEL expression to compile. Empty is valid and compiles to ok=true.
                  in: query
                  name: expr
                  schema:
                    default: ""
                    description: The CEL expression to compile. Empty is valid and compiles to ok=true.
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ExprCompileResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: compileExpr risk
            tags:
                - risk
            x-speakeasy-group: risk.expr
            x-speakeasy-name-override: compile
            x-speakeasy-react-hook:
                name: RiskCompileExpr
    /rpc/risk.createCustomRule:
        post:
            description: Create a custom regex-backed detection rule for the current project.
            operationId: createCustomDetectionRule
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateCustomDetectionRuleRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RiskCustomDetectionRule'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: createCustomDetectionRule risk
            tags:
                - risk
            x-speakeasy-group: risk.customRules
            x-speakeasy-name-override: create
            x-speakeasy-react-hook:
                name: RiskCreateCustomDetectionRule
                type: mutation
    /rpc/risk.createExclusions:
        post:
            description: Create a risk exclusion. Omit risk_policy_id to create a global exclusion that applies to every policy in the project.
            operationId: createRiskExclusion
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateRiskExclusionRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RiskExclusion'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: createRiskExclusion risk
            tags:
                - risk
            x-speakeasy-group: risk.exclusions
            x-speakeasy-name-override: create
            x-speakeasy-react-hook:
                name: RiskCreateExclusion
                type: mutation
    /rpc/risk.createPolicy:
        post:
            description: Create a new risk analysis policy for the current project.
            operationId: createRiskPolicy
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateRiskPolicyRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RiskPolicy'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: createRiskPolicy risk
            tags:
                - risk
            x-speakeasy-group: risk.policies
            x-speakeasy-name-override: create
            x-speakeasy-react-hook:
                name: RiskCreatePolicy
                type: mutation
    /rpc/risk.createPolicyBypassRequest:
        post:
            description: Create or refresh a risk policy bypass request from a signed request URL token.
            operationId: createRiskPolicyBypassRequest
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateRiskPolicyBypassRequestRequestBody'
                required: true
            responses:
                "201":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/PolicyBypassRedemption'
                    description: Created response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: createRiskPolicyBypassRequest risk
            tags:
                - risk
            x-speakeasy-group: risk.policyBypassRequests
            x-speakeasy-name-override: create
            x-speakeasy-react-hook:
                name: RiskCreatePolicyBypassRequest
                type: mutation
    /rpc/risk.decideApproval:
        post:
            description: Approve or deny a pending tool approval request. Only a listed approver may decide, and never the person who made the call. An approval releases one retry of the exact call.
            operationId: decideRiskPolicyApproval
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RiskPolicyApprovalDecisionRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RiskPolicyApproval'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: decideRiskPolicyApproval risk
            tags:
                - risk
            x-speakeasy-group: risk.approvals
            x-speakeasy-name-override: decide
            x-speakeasy-react-hook:
                name: RiskDecideApproval
                type: mutation
    /rpc/risk.declinePolicyChallenge:
        post:
            description: 'Decline a risk policy warn/challenge from a warning-link token: invalidate the link and mark the challenge declined. The blocked action stays blocked.'
            operationId: declineRiskPolicyChallenge
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/AcknowledgeRiskPolicyChallengeRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DeclineRiskPolicyChallengeResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: declineRiskPolicyChallenge risk
            tags:
                - risk
            x-speakeasy-group: risk.policyChallenges
            x-speakeasy-name-override: decline
            x-speakeasy-react-hook:
                name: RiskDeclinePolicyChallenge
                type: mutation
    /rpc/risk.deleteCustomRule:
        post:
            description: Delete a custom detection rule.
            operationId: deleteCustomDetectionRule
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RiskIDRequestBody'
                required: true
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: deleteCustomDetectionRule risk
            tags:
                - risk
            x-speakeasy-group: risk.customRules
            x-speakeasy-name-override: delete
            x-speakeasy-react-hook:
                name: RiskDeleteCustomDetectionRule
                type: mutation
    /rpc/risk.deleteExclusions:
        delete:
            description: Delete a risk exclusion. Previously suppressed findings are restored.
            operationId: deleteRiskExclusion
            parameters:
                - allowEmptyValue: true
                  description: The exclusion ID.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The exclusion ID.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: deleteRiskExclusion risk
            tags:
                - risk
            x-speakeasy-group: risk.exclusions
            x-speakeasy-name-override: delete
            x-speakeasy-react-hook:
                name: RiskDeleteExclusion
                type: mutation
    /rpc/risk.deletePolicy:
        delete:
            description: Delete a risk analysis policy.
            operationId: deleteRiskPolicy
            parameters:
                - allowEmptyValue: true
                  description: The policy ID.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The policy ID.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: deleteRiskPolicy risk
            tags:
                - risk
            x-speakeasy-group: risk.policies
            x-speakeasy-name-override: delete
    /rpc/risk.denyPolicyBypassRequest:
        post:
            description: Deny a risk policy bypass request, updating workflow state.
            operationId: denyRiskPolicyBypassRequest
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RiskIDRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RiskPolicyBypassRequest'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: denyRiskPolicyBypassRequest risk
            tags:
                - risk
            x-speakeasy-group: risk.policyBypassRequests
            x-speakeasy-name-override: deny
            x-speakeasy-react-hook:
                name: RiskDenyPolicyBypassRequest
                type: mutation
    /rpc/risk.getAnalysisStatus:
        get:
            description: 'Get the run state of the project''s risk analysis coordinator, which produces the findings behind the Watchdog page. Analysis is signal-driven, not scheduled: the coordinator wakes within about 30 seconds of new chat traffic and never runs on a timer, so a quiet project can legitimately go a long time between runs. The state is never when no run is visible (the project has never been analyzed, or its last run is older than Temporal''s retention window), idle when the latest run has closed and the coordinator is waiting for the next chat write, and running when a run is in flight.'
            operationId: getRiskAnalysisStatus
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RiskAnalysisStatusResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getRiskAnalysisStatus risk
            tags:
                - risk
            x-speakeasy-group: risk.signals
            x-speakeasy-name-override: analysisStatus
            x-speakeasy-react-hook:
                name: RiskAnalysisStatus
    /rpc/risk.getApproval:
        get:
            description: Get one tool approval request, including a preview of the call's arguments.
            operationId: getRiskPolicyApproval
            parameters:
                - allowEmptyValue: true
                  description: The approval request ID.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The approval request ID.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RiskPolicyApproval'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getRiskPolicyApproval risk
            tags:
                - risk
            x-speakeasy-group: risk.approvals
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: RiskGetApproval
    /rpc/risk.getBlock:
        get:
            description: Get a tool call block by its risk result ID for the durable block page.
            operationId: getRiskBlock
            parameters:
                - allowEmptyValue: true
                  description: The block ID (the underlying risk result ID).
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The block ID (the underlying risk result ID).
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RiskBlock'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getRiskBlock risk
            tags:
                - risk
            x-speakeasy-group: risk.blocks
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: RiskGetBlock
                type: query
    /rpc/risk.getCustomRule:
        get:
            description: Get a custom detection rule by ID.
            operationId: getCustomDetectionRule
            parameters:
                - allowEmptyValue: true
                  description: The custom detection rule ID.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The custom detection rule ID.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RiskCustomDetectionRule'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getCustomDetectionRule risk
            tags:
                - risk
            x-speakeasy-group: risk.customRules
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: RiskGetCustomDetectionRule
                type: query
    /rpc/risk.getMcpServerCounts:
        get:
            description: Get live finding counts per concrete MCP server over a window, largest first. Powers the MCP server filter pickers on Risk Events and Watchdog. Served from the ClickHouse findings store.
            operationId: getRiskMcpServerCounts
            parameters:
                - allowEmptyValue: true
                  description: Inclusive start of the window. Defaults to 7 days before to.
                  in: query
                  name: from
                  schema:
                    description: Inclusive start of the window. Defaults to 7 days before to.
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: Exclusive end of the window. Defaults to now.
                  in: query
                  name: to
                  schema:
                    description: Exclusive end of the window. Defaults to now.
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RiskMcpServerCountsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getRiskMcpServerCounts risk
            tags:
                - risk
            x-speakeasy-group: risk.signals
            x-speakeasy-name-override: mcpServerCounts
            x-speakeasy-react-hook:
                name: RiskMcpServerCounts
    /rpc/risk.getOverview:
        get:
            description: Get risk overview metrics and trend data for the current project.
            operationId: getRiskOverview
            parameters:
                - allowEmptyValue: true
                  description: Inclusive start of the overview window. Defaults to the start of the 7-day calendar window ending at to.
                  in: query
                  name: from
                  schema:
                    description: Inclusive start of the overview window. Defaults to the start of the 7-day calendar window ending at to.
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: Exclusive end of the overview window. Defaults to now.
                  in: query
                  name: to
                  schema:
                    description: Exclusive end of the overview window. Defaults to now.
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RiskOverviewResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getRiskOverview risk
            tags:
                - risk
            x-speakeasy-group: risk.overview
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: RiskOverview
    /rpc/risk.getPolicy:
        get:
            description: Get a risk analysis policy by ID.
            operationId: getRiskPolicy
            parameters:
                - allowEmptyValue: true
                  description: The policy ID.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The policy ID.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RiskPolicy'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getRiskPolicy risk
            tags:
                - risk
            x-speakeasy-group: risk.policies
            x-speakeasy-name-override: get
    /rpc/risk.getPolicyChallenge:
        post:
            description: Fetch the details of a risk policy warn/challenge from a warning-link token, WITHOUT acknowledging it. Powers the approval page (shows what was flagged and Approve/Deny actions).
            operationId: getRiskPolicyChallenge
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/AcknowledgeRiskPolicyChallengeRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetRiskPolicyChallengeResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getRiskPolicyChallenge risk
            tags:
                - risk
            x-speakeasy-group: risk.policyChallenges
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: RiskGetPolicyChallenge
                type: mutation
    /rpc/risk.getSignals:
        get:
            description: Get clustered risk signals — findings grouped by rule and ranked by severity score — plus window-level KPI stats and the exposure breakdown by category. Powers the Watchdog page. Served from the ClickHouse findings store.
            operationId: getRiskSignals
            parameters:
                - allowEmptyValue: true
                  description: Inclusive start of the signals window. Defaults to the start of the 7-day calendar window ending at to.
                  in: query
                  name: from
                  schema:
                    description: Inclusive start of the signals window. Defaults to the start of the 7-day calendar window ending at to.
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: Exclusive end of the signals window. Defaults to now.
                  in: query
                  name: to
                  schema:
                    description: Exclusive end of the signals window. Defaults to now.
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: Optional concrete MCP server ID. When set, every signal, KPI and exposure figure is computed from findings on that server only.
                  in: query
                  name: mcp_server_id
                  schema:
                    description: Optional concrete MCP server ID. When set, every signal, KPI and exposure figure is computed from findings on that server only.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RiskSignalsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getRiskSignals risk
            tags:
                - risk
            x-speakeasy-group: risk.signals
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: RiskSignals
    /rpc/risk.getUserBreakdown:
        get:
            description: Per-user breakdowns of findings by category and by rule_id within a time window. Powers the risk panels on identity pages.
            operationId: getRiskUserBreakdown
            parameters:
                - allowEmptyValue: true
                  description: External user identifier to scope the breakdown to.
                  in: query
                  name: external_user_id
                  required: true
                  schema:
                    description: External user identifier to scope the breakdown to.
                    type: string
                - allowEmptyValue: true
                  description: Inclusive start of the window. Defaults to the same 7-day window as the overview.
                  in: query
                  name: from
                  schema:
                    description: Inclusive start of the window. Defaults to the same 7-day window as the overview.
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: Exclusive end of the window. Defaults to now.
                  in: query
                  name: to
                  schema:
                    description: Exclusive end of the window. Defaults to now.
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RiskUserBreakdownResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getRiskUserBreakdown risk
            tags:
                - risk
            x-speakeasy-group: risk.overview
            x-speakeasy-name-override: userBreakdown
            x-speakeasy-react-hook:
                name: RiskUserBreakdown
    /rpc/risk.listApprovals:
        get:
            description: List tool approval requests held by require_approval policies, newest first. Org admins see every request; others see requests they can approve and their own.
            operationId: listRiskPolicyApprovals
            parameters:
                - allowEmptyValue: true
                  description: Optional status filter. An open request past its window counts as expired.
                  in: query
                  name: status
                  schema:
                    description: Optional status filter. An open request past its window counts as expired.
                    enum:
                        - blocked
                        - pending
                        - approved
                        - denied
                        - consumed
                        - expired
                    type: string
                - allowEmptyValue: true
                  description: Continue after this approval request ID.
                  in: query
                  name: cursor
                  schema:
                    description: Continue after this approval request ID.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Maximum number of requests to return.
                  in: query
                  name: limit
                  schema:
                    default: 50
                    description: Maximum number of requests to return.
                    format: int32
                    maximum: 100
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListRiskPolicyApprovalsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listRiskPolicyApprovals risk
            tags:
                - risk
            x-speakeasy-group: risk.approvals
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: RiskListApprovals
    /rpc/risk.listBuiltinExclusions:
        get:
            description: List the built-in exclusion library (known-safe values suppressed before they reach exclusions), grouped by category.
            operationId: listBuiltinExclusions
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListBuiltinExclusionsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listBuiltinExclusions risk
            tags:
                - risk
            x-speakeasy-group: risk.exclusions
            x-speakeasy-name-override: listBuiltinExclusions
            x-speakeasy-react-hook:
                name: BuiltinExclusions
    /rpc/risk.listCategories:
        get:
            description: 'Return the canonical risk category definitions: metadata (label/description/icon) plus the classification (source / rule_id list / rule_id prefix) used to bucket findings. Dashboards and CLIs should call this instead of maintaining their own copy of the mapping.'
            operationId: listRiskCategories
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RiskCategoriesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listRiskCategories risk
            tags:
                - risk
            x-speakeasy-group: risk.categories
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: RiskCategories
    /rpc/risk.listCustomRules:
        get:
            description: List custom detection rules for the current project.
            operationId: listCustomDetectionRules
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListCustomDetectionRulesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listCustomDetectionRules risk
            tags:
                - risk
            x-speakeasy-group: risk.customRules
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: RiskListCustomDetectionRules
                type: query
    /rpc/risk.listDismissedResults:
        get:
            description: List suppressed risk results for the current project — findings hidden by an exclusion rule, a manual dismissal, or the automated false-positive sweep. Kept separate from listRiskResults, which never returns suppressed results.
            operationId: listDismissedRiskResults
            parameters:
                - allowEmptyValue: true
                  description: Cursor to fetch the next page of results.
                  in: query
                  name: cursor
                  schema:
                    description: Cursor to fetch the next page of results.
                    type: string
                - allowEmptyValue: true
                  description: Maximum number of results to return per page.
                  in: query
                  name: limit
                  schema:
                    description: Maximum number of results to return per page.
                    format: int64
                    maximum: 200
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Only return results suppressed for these reasons. Omitted or empty means all reasons.
                  in: query
                  name: reasons
                  schema:
                    description: Only return results suppressed for these reasons. Omitted or empty means all reasons.
                    items:
                        enum:
                            - rule
                            - manual
                            - automated
                        type: string
                    type: array
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListRiskResultsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listDismissedRiskResults risk
            tags:
                - risk
            x-speakeasy-group: risk.results
            x-speakeasy-name-override: listDismissed
            x-speakeasy-react-hook:
                name: RiskListDismissedResults
                type: query
    /rpc/risk.listExclusions:
        get:
            description: List risk exclusions for the current project. Optionally filter to a single policy.
            operationId: listRiskExclusions
            parameters:
                - allowEmptyValue: true
                  description: Filter to exclusions bound to this policy. Omit to return all exclusions (global plus every policy).
                  in: query
                  name: risk_policy_id
                  schema:
                    description: Filter to exclusions bound to this policy. Omit to return all exclusions (global plus every policy).
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListRiskExclusionsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listRiskExclusions risk
            tags:
                - risk
            x-speakeasy-group: risk.exclusions
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: RiskListExclusions
                type: query
    /rpc/risk.listMCPPlatformToolsets:
        get:
            description: List code-owned Platform MCP toolsets available as risk policy scope targets.
            operationId: listMCPPlatformToolsets
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListMCPPlatformToolsetsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listMCPPlatformToolsets risk
            tags:
                - risk
            x-speakeasy-group: risk.policies
            x-speakeasy-name-override: listMcpPlatformToolsets
            x-speakeasy-react-hook:
                name: RiskListMcpPlatformToolsets
    /rpc/risk.listPolicies:
        get:
            description: List all risk analysis policies for the current project.
            operationId: listRiskPolicies
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListRiskPoliciesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listRiskPolicies risk
            tags:
                - risk
            x-speakeasy-group: risk.policies
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: RiskListPolicies
    /rpc/risk.listPolicyBypassRequests:
        get:
            description: List current risk policy bypass request workflow records.
            operationId: listRiskPolicyBypassRequests
            parameters:
                - allowEmptyValue: true
                  description: Optional risk policy ID filter.
                  in: query
                  name: policy_id
                  schema:
                    description: Optional risk policy ID filter.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Optional request status filter.
                  in: query
                  name: status
                  schema:
                    description: Optional request status filter.
                    enum:
                        - requested
                        - approved
                        - denied
                        - revoked
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListRiskPolicyBypassRequestsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listRiskPolicyBypassRequests risk
            tags:
                - risk
            x-speakeasy-group: risk.policyBypassRequests
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: RiskListPolicyBypassRequests
    /rpc/risk.listPresets:
        get:
            description: Return the use-case presets a risk policy can start from. Each preset resolves to a complete create payload (policy type, detectors, action, severity and, for prompt-based presets, the judge instruction) so the dashboard and the Platform MCP offer the same starting points.
            operationId: listRiskPresets
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RiskPresetsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listRiskPresets risk
            tags:
                - risk
            x-speakeasy-group: risk.presets
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: RiskPresets
    /rpc/risk.listResults:
        get:
            description: List risk analysis results for the current project.
            operationId: listRiskResults
            parameters:
                - allowEmptyValue: true
                  description: Optional policy ID to filter by.
                  in: query
                  name: policy_id
                  schema:
                    description: Optional policy ID to filter by.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Optional chat ID to filter by.
                  in: query
                  name: chat_id
                  schema:
                    description: Optional chat ID to filter by.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Optional concrete MCP server ID to match exactly.
                  in: query
                  name: mcp_server_id
                  schema:
                    description: Optional concrete MCP server ID to match exactly.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Optional risk result ID; returns that one finding even when it is not on a loaded page, such as from a shared link. A dismissed finding, such as a false positive, is not returned.
                  in: query
                  name: result_id
                  schema:
                    description: Optional risk result ID; returns that one finding even when it is not on a loaded page, such as from a shared link. A dismissed finding, such as a false positive, is not returned.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Optional ID of one mediated MCP execution (tool call, resource read or prompt get), the execution_id a result carries; returns the live findings on that execution across its request and response phases. Findings that were dismissed, auto-excluded by exclusion rules, or raised under deleted policies are omitted.
                  in: query
                  name: execution_id
                  schema:
                    description: Optional ID of one mediated MCP execution (tool call, resource read or prompt get), the execution_id a result carries; returns the live findings on that execution across its request and response phases. Findings that were dismissed, auto-excluded by exclusion rules, or raised under deleted policies are omitted.
                    type: string
                - allowEmptyValue: true
                  description: Optional rule category key to filter by (e.g. secrets, pii, financial).
                  in: query
                  name: category
                  schema:
                    description: Optional rule category key to filter by (e.g. secrets, pii, financial).
                    type: string
                - allowEmptyValue: true
                  description: Optional rule identifier substring to filter by (case-insensitive, e.g. 'secret' matches all 'secret.*' rules).
                  in: query
                  name: rule_id
                  schema:
                    description: Optional rule identifier substring to filter by (case-insensitive, e.g. 'secret' matches all 'secret.*' rules).
                    type: string
                - allowEmptyValue: true
                  description: Optional user identifier substring to filter by (case-insensitive, matched against the chat's external user id).
                  in: query
                  name: user_id
                  schema:
                    description: Optional user identifier substring to filter by (case-insensitive, matched against the chat's external user id).
                    type: string
                - allowEmptyValue: true
                  description: Optional external user identifiers to filter by, matched whole rather than as a substring. Pass every identifier a subject is known by; unlike user_id this cannot pull in another person whose identifier merely contains theirs.
                  in: query
                  name: external_user_ids
                  schema:
                    description: Optional external user identifiers to filter by, matched whole rather than as a substring. Pass every identifier a subject is known by; unlike user_id this cannot pull in another person whose identifier merely contains theirs.
                    items:
                        type: string
                    type: array
                - allowEmptyValue: true
                  description: If true, collapse results to one row per (policy_id, rule_id, match), keeping the most recent occurrence. Useful when the same secret is detected many times within a single message body.
                  in: query
                  name: unique_match
                  schema:
                    description: If true, collapse results to one row per (policy_id, rule_id, match), keeping the most recent occurrence. Useful when the same secret is detected many times within a single message body.
                    type: boolean
                - allowEmptyValue: true
                  description: If true, only return findings from chats that are not linked to an assistant. Useful for surfacing events that are missing user attribution.
                  in: query
                  name: non_assistant
                  schema:
                    description: If true, only return findings from chats that are not linked to an assistant. Useful for surfacing events that are missing user attribution.
                    type: boolean
                - allowEmptyValue: true
                  description: Optional assistant ID; only return findings from chats linked to this assistant.
                  in: query
                  name: assistant_id
                  schema:
                    description: Optional assistant ID; only return findings from chats linked to this assistant.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Filter results to messages created at or after this timestamp (ISO 8601).
                  in: query
                  name: from
                  schema:
                    description: Filter results to messages created at or after this timestamp (ISO 8601).
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: Filter results to messages created strictly before this timestamp (ISO 8601).
                  in: query
                  name: to
                  schema:
                    description: Filter results to messages created strictly before this timestamp (ISO 8601).
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: Cursor to fetch the next page of results.
                  in: query
                  name: cursor
                  schema:
                    description: Cursor to fetch the next page of results.
                    type: string
                - allowEmptyValue: true
                  description: Maximum number of results to return per page.
                  in: query
                  name: limit
                  schema:
                    description: Maximum number of results to return per page.
                    format: int64
                    maximum: 200
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListRiskResultsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listRiskResults risk
            tags:
                - risk
            x-speakeasy-group: risk.results
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: RiskListResults
    /rpc/risk.listResultsByChat:
        get:
            description: List risk results grouped by chat session for the current project.
            operationId: listRiskResultsByChat
            parameters:
                - allowEmptyValue: true
                  description: Cursor to fetch the next page of results.
                  in: query
                  name: cursor
                  schema:
                    description: Cursor to fetch the next page of results.
                    type: string
                - allowEmptyValue: true
                  description: Maximum number of results to return per page.
                  in: query
                  name: limit
                  schema:
                    description: Maximum number of results to return per page.
                    format: int64
                    maximum: 200
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListRiskResultsByChatResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listRiskResultsByChat risk
            tags:
                - risk
            x-speakeasy-group: risk.results
            x-speakeasy-name-override: byChat
            x-speakeasy-react-hook:
                name: RiskListResultsByChat
    /rpc/risk.listResultsForAgent:
        get:
            description: List risk analysis results with the `match` field redacted to an opaque length+sha256-prefix fingerprint. Matches the payload and pagination semantics of listRiskResults. Designed for AI assistant / MCP consumption so secret content (gitleaks captures, presidio entities, prompt-injection payloads) never reaches the model context. For shadow_mcp findings the `match` value — a non-sensitive server URL or command identifier — is passed through verbatim.
            operationId: listRiskResultsForAgent
            parameters:
                - allowEmptyValue: true
                  description: Optional policy ID to filter by.
                  in: query
                  name: policy_id
                  schema:
                    description: Optional policy ID to filter by.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Optional chat ID to filter by.
                  in: query
                  name: chat_id
                  schema:
                    description: Optional chat ID to filter by.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Optional concrete MCP server ID to match exactly.
                  in: query
                  name: mcp_server_id
                  schema:
                    description: Optional concrete MCP server ID to match exactly.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Optional rule category key to filter by (e.g. secrets, pii, financial).
                  in: query
                  name: category
                  schema:
                    description: Optional rule category key to filter by (e.g. secrets, pii, financial).
                    type: string
                - allowEmptyValue: true
                  description: Optional rule identifier substring to filter by (case-insensitive, e.g. 'secret' matches all 'secret.*' rules).
                  in: query
                  name: rule_id
                  schema:
                    description: Optional rule identifier substring to filter by (case-insensitive, e.g. 'secret' matches all 'secret.*' rules).
                    type: string
                - allowEmptyValue: true
                  description: Optional user identifier substring to filter by (case-insensitive, matched against the chat's external user id).
                  in: query
                  name: user_id
                  schema:
                    description: Optional user identifier substring to filter by (case-insensitive, matched against the chat's external user id).
                    type: string
                - allowEmptyValue: true
                  description: If true, collapse results to one row per (policy_id, rule_id, match), keeping the most recent occurrence. Useful when the same secret is detected many times within a single message body.
                  in: query
                  name: unique_match
                  schema:
                    description: If true, collapse results to one row per (policy_id, rule_id, match), keeping the most recent occurrence. Useful when the same secret is detected many times within a single message body.
                    type: boolean
                - allowEmptyValue: true
                  description: If true, only return findings from chats that are not linked to an assistant. Useful for surfacing events that are missing user attribution.
                  in: query
                  name: non_assistant
                  schema:
                    description: If true, only return findings from chats that are not linked to an assistant. Useful for surfacing events that are missing user attribution.
                    type: boolean
                - allowEmptyValue: true
                  description: Optional assistant ID; only return findings from chats linked to this assistant.
                  in: query
                  name: assistant_id
                  schema:
                    description: Optional assistant ID; only return findings from chats linked to this assistant.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Filter results to messages created at or after this timestamp (ISO 8601).
                  in: query
                  name: from
                  schema:
                    description: Filter results to messages created at or after this timestamp (ISO 8601).
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: Filter results to messages created strictly before this timestamp (ISO 8601).
                  in: query
                  name: to
                  schema:
                    description: Filter results to messages created strictly before this timestamp (ISO 8601).
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: Cursor to fetch the next page of results.
                  in: query
                  name: cursor
                  schema:
                    description: Cursor to fetch the next page of results.
                    type: string
                - allowEmptyValue: true
                  description: Maximum number of results to return per page.
                  in: query
                  name: limit
                  schema:
                    description: Maximum number of results to return per page.
                    format: int64
                    maximum: 200
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListRiskResultsForAgentResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listRiskResultsForAgent risk
            tags:
                - risk
            x-speakeasy-group: risk.results
            x-speakeasy-name-override: listForAgent
            x-speakeasy-react-hook:
                name: RiskListResultsForAgent
    /rpc/risk.listRiskPoliciesForMcpServer:
        get:
            description: List enabled MCP-scoped risk policies that apply to an MCP server and optional tool. Policies without an MCP scope are excluded.
            operationId: listRiskPoliciesForMcpServer
            parameters:
                - allowEmptyValue: true
                  description: The MCP server ID.
                  in: query
                  name: mcp_server_id
                  required: true
                  schema:
                    description: The MCP server ID.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Optional tool name used to apply per-server tool selections.
                  in: query
                  name: tool_name
                  schema:
                    description: Optional tool name used to apply per-server tool selections.
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListRiskPoliciesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listRiskPoliciesForMcpServer risk
            tags:
                - risk
            x-speakeasy-group: risk.policies
            x-speakeasy-name-override: listForMcpServer
            x-speakeasy-react-hook:
                name: RiskListPoliciesForMcpServer
    /rpc/risk.listSessionQuarantines:
        get:
            description: List active session quarantines for the current project.
            operationId: listSessionQuarantines
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListSessionQuarantinesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listSessionQuarantines risk
            tags:
                - risk
            x-speakeasy-group: risk.sessionQuarantines
            x-speakeasy-name-override: listSessionQuarantines
            x-speakeasy-react-hook:
                name: RiskListSessionQuarantines
    /rpc/risk.markResultsFalsePositive:
        post:
            description: 'Mark one or more risk results as manually-reviewed false positives. Distinct from exclusions: this suppresses the specific results picked, not future findings matching a rule.'
            operationId: markRiskResultsFalsePositive
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/MarkRiskResultsFalsePositiveRequestBody'
                required: true
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: markRiskResultsFalsePositive risk
            tags:
                - risk
            x-speakeasy-group: risk.results
            x-speakeasy-name-override: markFalsePositive
            x-speakeasy-react-hook:
                name: RiskMarkResultsFalsePositive
                type: mutation
    /rpc/risk.releaseSessionQuarantine:
        post:
            description: Release an active session quarantine.
            operationId: releaseSessionQuarantine
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SessionQuarantineReleaseRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SessionQuarantine'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: releaseSessionQuarantine risk
            tags:
                - risk
            x-speakeasy-group: risk.sessionQuarantines
            x-speakeasy-name-override: releaseSessionQuarantine
            x-speakeasy-react-hook:
                name: RiskReleaseSessionQuarantine
                type: mutation
    /rpc/risk.revealResultPayload:
        post:
            description: Return the full scanned payload of the MCP tool call phase a risk result was raised on, so its findings can be shown in context. Positions of every finding with the same execution_id and phase index into the returned payload. Requires an unrestricted chat:read grant. Every successful reveal is audited.
            operationId: revealRiskResultPayload
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RiskIDRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RiskRevealPayloadResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: revealRiskResultPayload risk
            tags:
                - risk
            x-speakeasy-group: risk.results
            x-speakeasy-name-override: revealPayload
            x-speakeasy-react-hook:
                name: RiskRevealResultPayload
                type: mutation
    /rpc/risk.revokePolicyBypassRequest:
        post:
            description: Revoke a previously approved risk policy bypass request.
            operationId: revokeRiskPolicyBypassRequest
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RiskIDRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RiskPolicyBypassRequest'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: revokeRiskPolicyBypassRequest risk
            tags:
                - risk
            x-speakeasy-group: risk.policyBypassRequests
            x-speakeasy-name-override: revoke
            x-speakeasy-react-hook:
                name: RiskRevokePolicyBypassRequest
                type: mutation
    /rpc/risk.submitBlockFeedback:
        put:
            description: Record thumbs-up/thumbs-down feedback for a tool call block from the block page.
            operationId: submitRiskBlockFeedback
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SubmitRiskBlockFeedbackRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RiskBlock'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: submitRiskBlockFeedback risk
            tags:
                - risk
            x-speakeasy-group: risk.blocks
            x-speakeasy-name-override: submitFeedback
            x-speakeasy-react-hook:
                name: RiskSubmitBlockFeedback
                type: mutation
    /rpc/risk.suggestCustomRules:
        post:
            description: Suggest a custom detection rule (rule_id, title, description, regex, severity) from a natural-language prompt. Calls the configured LLM with a JSON-schema constrained response so the dashboard can prefill the create form.
            operationId: suggestCustomDetectionRule
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SuggestCustomDetectionRuleRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SuggestCustomDetectionRuleResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: suggestCustomDetectionRule risk
            tags:
                - risk
            x-speakeasy-group: risk.customRules
            x-speakeasy-name-override: suggest
            x-speakeasy-react-hook:
                name: RiskSuggestCustomRule
                type: mutation
    /rpc/risk.suggestExclusion:
        post:
            description: Suggest a risk exclusion (match_type, match_value, filters) from a natural-language prompt, a batch of example findings, or both. Calls the configured LLM with a JSON-schema constrained response so the dashboard can prefill the create exclusion form. At least one of prompt or finding_ids is required.
            operationId: suggestExclusion
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SuggestExclusionRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SuggestExclusionResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: suggestExclusion risk
            tags:
                - risk
            x-speakeasy-group: risk.exclusions
            x-speakeasy-name-override: suggest
            x-speakeasy-react-hook:
                name: RiskSuggestExclusion
                type: mutation
    /rpc/risk.suggestPolicy:
        post:
            description: 'Map a plain-language description of a risk to a policy draft: the closest preset with its detectors, action and severity, or a bespoke prompt-based guardrail when no preset fits. Uses the configured LLM when available and a deterministic keyword match otherwise. Nothing is created.'
            operationId: suggestRiskPolicy
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SuggestRiskPolicyRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SuggestRiskPolicyResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: suggestRiskPolicy risk
            tags:
                - risk
            x-speakeasy-group: risk.presets
            x-speakeasy-name-override: suggest
            x-speakeasy-react-hook:
                name: RiskSuggestPolicy
                type: mutation
    /rpc/risk.testRule:
        post:
            description: Run a single detection rule against pasted sample text and return any matches. Reuses the same scanner code (gitleaks, Presidio, prompt-injection, custom regex) that the analyzer runs in production so the playground match shape mirrors the chat-message path.
            operationId: testDetectionRule
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/TestDetectionRuleRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/TestDetectionRuleResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: testDetectionRule risk
            tags:
                - risk
            x-speakeasy-group: risk.rules
            x-speakeasy-name-override: test
            x-speakeasy-react-hook:
                name: RiskTestDetectionRule
                type: mutation
    /rpc/risk.triggerPolicy:
        post:
            description: Manually trigger risk analysis for a policy, starting or signaling the drain workflow. Defaults to the most recent 100 unanalyzed messages; pass `limit=0` to backfill every unanalyzed message.
            operationId: triggerRiskAnalysis
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/TriggerRiskAnalysisRequestBody'
                required: true
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: triggerRiskAnalysis risk
            tags:
                - risk
            x-speakeasy-group: risk.policies
            x-speakeasy-name-override: trigger
    /rpc/risk.unmarkResultsFalsePositive:
        post:
            description: Undo a false-positive dismissal for one or more risk results.
            operationId: unmarkRiskResultsFalsePositive
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UnmarkRiskResultsFalsePositiveRequestBody'
                required: true
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: unmarkRiskResultsFalsePositive risk
            tags:
                - risk
            x-speakeasy-group: risk.results
            x-speakeasy-name-override: unmarkFalsePositive
            x-speakeasy-react-hook:
                name: RiskUnmarkResultsFalsePositive
                type: mutation
    /rpc/risk.unmaskResult:
        post:
            description: Return the plaintext match for a single risk result on demand. Every finding requires chat:read for its attributed chat. MCP findings with an empty or invalid chat ID require an unrestricted chat:read grant and use encrypted stored evidence. Every successful reveal is audited.
            operationId: unmaskRiskResult
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RiskIDRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RiskUnmaskResultResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: unmaskRiskResult risk
            tags:
                - risk
            x-speakeasy-group: risk.results
            x-speakeasy-name-override: unmask
            x-speakeasy-react-hook:
                name: RiskUnmaskResult
                type: mutation
    /rpc/risk.updateCustomRule:
        post:
            description: Update a custom detection rule.
            operationId: updateCustomDetectionRule
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateCustomDetectionRuleRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RiskCustomDetectionRule'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: updateCustomDetectionRule risk
            tags:
                - risk
            x-speakeasy-group: risk.customRules
            x-speakeasy-name-override: update
            x-speakeasy-react-hook:
                name: RiskUpdateCustomDetectionRule
                type: mutation
    /rpc/risk.updateExclusions:
        put:
            description: Update a risk exclusion.
            operationId: updateRiskExclusion
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateRiskExclusionRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RiskExclusion'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: updateRiskExclusion risk
            tags:
                - risk
            x-speakeasy-group: risk.exclusions
            x-speakeasy-name-override: update
            x-speakeasy-react-hook:
                name: RiskUpdateExclusion
                type: mutation
    /rpc/risk.updatePolicy:
        put:
            description: Update a risk analysis policy.
            operationId: updateRiskPolicy
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateRiskPolicyRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RiskPolicy'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: updateRiskPolicy risk
            tags:
                - risk
            x-speakeasy-group: risk.policies
            x-speakeasy-name-override: update
    /rpc/riskEvals.deleteReview:
        delete:
            description: Remove the current reviewer's verdict for one session (the toggle-off path). A reviewer can only clear their own verdict.
            operationId: deleteRiskEvalReview
            parameters:
                - allowEmptyValue: true
                  description: The policy the verdict belongs to.
                  in: query
                  name: policy_id
                  required: true
                  schema:
                    description: The policy the verdict belongs to.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: The chat session whose verdict to clear.
                  in: query
                  name: chat_id
                  required: true
                  schema:
                    description: The chat session whose verdict to clear.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: deleteRiskEvalReview risk
            tags:
                - risk
            x-speakeasy-group: risk.evals
            x-speakeasy-name-override: deleteReview
            x-speakeasy-react-hook:
                name: RiskDeleteEvalReview
                type: mutation
    /rpc/riskEvals.evaluate:
        post:
            description: 'Replay a prompt_based guardrail against a single chat session and return the LLM judge''s per-message verdict. The guardrail (prompt + judge config + message-type scope + CEL scope) is passed inline so the policy-eval workbench can evaluate an unsaved draft before a policy exists. This path is read-only: it never writes risk_results, publishes to the outbox, or enforces. It exists purely to tune a guardrail against real transcripts. Judges only the chat''s latest generation and at most the first 200 in-scope messages in transcript order; message-type scoping and CEL scope predicates are both applied.'
            operationId: evaluatePromptGuardrail
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/EvaluatePromptGuardrailRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/PromptGuardrailEvalResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: evaluatePromptGuardrail risk
            tags:
                - risk
            x-speakeasy-group: risk.evals
            x-speakeasy-name-override: evaluate
            x-speakeasy-react-hook:
                name: RiskEvaluatePromptGuardrail
                type: query
    /rpc/riskEvals.listReviews:
        get:
            description: 'List the active regression set for a prompt-based policy: every reviewer''s current ground-truth verdicts.'
            operationId: listRiskEvalReviews
            parameters:
                - allowEmptyValue: true
                  description: The policy whose review set to list.
                  in: query
                  name: policy_id
                  required: true
                  schema:
                    description: The policy whose review set to list.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListRiskEvalReviewsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listRiskEvalReviews risk
            tags:
                - risk
            x-speakeasy-group: risk.evals
            x-speakeasy-name-override: listReviews
            x-speakeasy-react-hook:
                name: RiskListEvalReviews
                type: query
    /rpc/riskEvals.saveReview:
        post:
            description: 'Record (or replace) the current reviewer''s ground-truth verdict for one chat session under a prompt-based policy. This is the durable regression set the eval workbench scores the live guardrail against. Upserts: a reviewer has at most one verdict per session per policy.'
            operationId: saveRiskEvalReview
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SaveRiskEvalReviewRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RiskPolicyEvalReview'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: saveRiskEvalReview risk
            tags:
                - risk
            x-speakeasy-group: risk.evals
            x-speakeasy-name-override: saveReview
            x-speakeasy-react-hook:
                name: RiskSaveEvalReview
                type: mutation
    /rpc/sigint.createSensor:
        post:
            description: Create a sensor. multi_label permits independently applicable labels, exclusive makes attached signals compete and permits at most 255, and ordered_score uses ordered levels and permits at most 10. Empty and one-signal sensors are valid drafts. Omitted signal_ids creates an empty sensor; [] is explicitly empty. Repeated, deleted, missing, or cross-project signal IDs are rejected atomically.
            operationId: createSigintSensor
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateSigintSensorForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SigintSensor'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: createSensor sigint
            tags:
                - sigint
            x-speakeasy-name-override: createSensor
            x-speakeasy-react-hook:
                name: CreateSigintSensor
    /rpc/sigint.createSignal:
        post:
            description: Create a reusable custom signal. Names are trimmed and must contain 1 to 200 characters. Description and classifier criteria are optional authoring metadata; an empty string clears either field.
            operationId: createSigintSignal
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateSigintSignalForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SigintSignal'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: createSignal sigint
            tags:
                - sigint
            x-speakeasy-name-override: createSignal
            x-speakeasy-react-hook:
                name: CreateSigintSignal
    /rpc/sigint.deleteSensor:
        delete:
            description: Soft-delete a sensor and its memberships. Shared custom signals remain active.
            operationId: deleteSigintSensor
            parameters:
                - allowEmptyValue: true
                  description: Sensor ID
                  in: query
                  name: id
                  required: true
                  schema:
                    description: Sensor ID
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SigintSensor'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: deleteSensor sigint
            tags:
                - sigint
            x-speakeasy-name-override: deleteSensor
            x-speakeasy-react-hook:
                name: DeleteSigintSensor
    /rpc/sigint.deleteSignal:
        delete:
            description: Soft-delete a custom signal and detach it from every sensor in the selected project. Surviving sensor signal order is compacted; sensors may remain incomplete drafts.
            operationId: deleteSigintSignal
            parameters:
                - allowEmptyValue: true
                  description: Custom signal ID
                  in: query
                  name: id
                  required: true
                  schema:
                    description: Custom signal ID
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SigintSignal'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: deleteSignal sigint
            tags:
                - sigint
            x-speakeasy-name-override: deleteSignal
            x-speakeasy-react-hook:
                name: DeleteSigintSignal
    /rpc/sigint.getSensor:
        get:
            description: Get an active sensor with its ordered signal_ids. The collection is always returned and is [] when no signals are attached.
            operationId: getSigintSensor
            parameters:
                - allowEmptyValue: true
                  description: Sensor ID
                  in: query
                  name: id
                  required: true
                  schema:
                    description: Sensor ID
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SigintSensor'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: getSensor sigint
            tags:
                - sigint
            x-speakeasy-name-override: getSensor
            x-speakeasy-react-hook:
                name: GetSigintSensor
    /rpc/sigint.getSignal:
        get:
            description: Get an active custom signal by ID in the selected project.
            operationId: getSigintSignal
            parameters:
                - allowEmptyValue: true
                  description: Custom signal ID
                  in: query
                  name: id
                  required: true
                  schema:
                    description: Custom signal ID
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SigintSignal'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: getSignal sigint
            tags:
                - sigint
            x-speakeasy-name-override: getSignal
            x-speakeasy-react-hook:
                name: GetSigintSignal
    /rpc/sigint.listSensors:
        get:
            description: List active sensors in deterministic ID order with each sensor's ordered signal_ids from one consistent database snapshot. The collection is [] for an unattached sensor.
            operationId: listSigintSensors
            parameters:
                - allowEmptyValue: true
                  description: Sensor ID after which to continue
                  in: query
                  name: cursor
                  schema:
                    description: Sensor ID after which to continue
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Page size
                  in: query
                  name: limit
                  schema:
                    default: 50
                    description: Page size
                    format: int64
                    maximum: 200
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListSigintSensorsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listSensors sigint
            tags:
                - sigint
            x-speakeasy-name-override: listSensors
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: SigintSensors
    /rpc/sigint.listSignals:
        get:
            description: List active custom signals in deterministic ID order. The cursor is the final ID from the previous page.
            operationId: listSigintSignals
            parameters:
                - allowEmptyValue: true
                  description: Signal ID after which to continue
                  in: query
                  name: cursor
                  schema:
                    description: Signal ID after which to continue
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Page size
                  in: query
                  name: limit
                  schema:
                    default: 50
                    description: Page size
                    format: int64
                    maximum: 200
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListSigintSignalsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listSignals sigint
            tags:
                - sigint
            x-speakeasy-name-override: listSignals
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: SigintSignals
    /rpc/sigint.updateSensor:
        post:
            description: 'Partially update a sensor. Omitted fields and JSON null preserve stored values. Empty optional text clears it. Omitted signal_ids preserves membership, while [] clears it and a non-empty array replaces and reorders it atomically. Mode changes validate the final membership: exclusive permits at most 255 signals and ordered_score at most 10; incomplete drafts remain valid.'
            operationId: updateSigintSensor
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateSigintSensorForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SigintSensor'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: updateSensor sigint
            tags:
                - sigint
            x-speakeasy-name-override: updateSensor
            x-speakeasy-react-hook:
                name: UpdateSigintSensor
    /rpc/sigint.updateSignal:
        post:
            description: Partially update a custom signal. Omitted fields and JSON null leave existing values unchanged. Supplying an empty optional-text value clears it. A supplied name is trimmed and must contain 1 to 200 characters.
            operationId: updateSigintSignal
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateSigintSignalForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SigintSignal'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: updateSignal sigint
            tags:
                - sigint
            x-speakeasy-name-override: updateSignal
            x-speakeasy-react-hook:
                name: UpdateSigintSignal
    /rpc/skillEfficacy.getSettings:
        get:
            description: Get effective organization-wide skill efficacy sampling settings.
            operationId: getSkillEfficacySettings
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SkillEfficacySettings'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: getSettings skillEfficacy
            tags:
                - skillEfficacy
            x-speakeasy-name-override: getSettings
            x-speakeasy-react-hook:
                name: SkillEfficacySettings
    /rpc/skillEfficacy.queryInsights:
        get:
            description: Query activation-time skill efficacy, estimated savings, attributed session cost, and optional scored-session detail for the current project. Scores are sampled and costs fan out to every activated version.
            operationId: querySkillEfficacyInsights
            parameters:
                - allowEmptyValue: true
                  description: Active skill IDs to query (up to 200). Omit to query all active project skills.
                  in: query
                  name: skill_ids
                  schema:
                    description: Active skill IDs to query (up to 200). Omit to query all active project skills.
                    items:
                        type: string
                    type: array
                - allowEmptyValue: true
                  description: RFC3339 window start; defaults to 30 days before to.
                  in: query
                  name: from
                  schema:
                    description: RFC3339 window start; defaults to 30 days before to.
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: RFC3339 window end; defaults to now.
                  in: query
                  name: to
                  schema:
                    description: RFC3339 window end; defaults to now.
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: Include per-version daily trends.
                  in: query
                  name: include_versions
                  schema:
                    description: Include per-version daily trends.
                    type: boolean
                - allowEmptyValue: true
                  description: Include a newest-first page of scored sessions. Intended for one skill detail view.
                  in: query
                  name: include_scored_sessions
                  schema:
                    description: Include a newest-first page of scored sessions. Intended for one skill detail view.
                    type: boolean
                - allowEmptyValue: true
                  description: Calculate attributed session cost. Disable for surfaces that do not display it.
                  in: query
                  name: include_session_cost
                  schema:
                    description: Calculate attributed session cost. Disable for surfaces that do not display it.
                    type: boolean
                - allowEmptyValue: true
                  description: Calculate the current-versus-predecessor efficacy regression signal.
                  in: query
                  name: include_regression_signal
                  schema:
                    description: Calculate the current-versus-predecessor efficacy regression signal.
                    type: boolean
                - allowEmptyValue: true
                  description: Cursor for the next page of scored sessions.
                  in: query
                  name: cursor
                  schema:
                    description: Cursor for the next page of scored sessions.
                    type: string
                - allowEmptyValue: true
                  description: The number of scored sessions to return per page.
                  in: query
                  name: limit
                  schema:
                    default: 20
                    description: The number of scored sessions to return per page.
                    format: int64
                    maximum: 100
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SkillEfficacyInsightsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: queryInsights skillEfficacy
            tags:
                - skillEfficacy
            x-speakeasy-name-override: queryInsights
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: SkillEfficacyInsights
                type: query
    /rpc/skillEfficacy.upsertSettings:
        post:
            description: Create or replace organization-wide skill efficacy sampling settings.
            operationId: upsertSkillEfficacySettings
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpsertSettingsRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SkillEfficacySettings'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                - session_header_Gram-Session: []
            summary: upsertSettings skillEfficacy
            tags:
                - skillEfficacy
            x-speakeasy-name-override: upsertSettings
            x-speakeasy-react-hook:
                name: UpsertSkillEfficacySettings
    /rpc/skills.addVersion:
        post:
            description: Record an uploaded SKILL.md as a version of an existing skill. The implementation requires the skills product feature and skill write scope, and returns the existing canonical version as a no-op when appropriate.
            operationId: addSkillVersion
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/AddSkillVersionRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RecordSkillResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: addVersion skills
            tags:
                - skills
            x-speakeasy-name-override: addVersion
            x-speakeasy-react-hook:
                name: AddSkillVersion
    /rpc/skills.approveAllSuggestions:
        post:
            description: Snapshot and independently process selected skill edit suggestions, or every open suggestion when no IDs are supplied. One conflict or failure does not stop the remaining approvals.
            operationId: approveAllSkillSuggestions
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ApproveAllSkillSuggestionsRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ApproveAllSkillSuggestionsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: approveAllSuggestions skills
            tags:
                - skills
            x-speakeasy-name-override: approveAllSuggestions
            x-speakeasy-react-hook:
                name: ApproveAllSkillSuggestions
    /rpc/skills.approveSuggestion:
        post:
            description: Approve an open skill edit suggestion, optionally replacing its proposed SKILL.md content or taking only a subset of its proposed changes. Stale suggestions are superseded instead.
            operationId: approveSkillSuggestion
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ApproveSkillSuggestionRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ApproveSkillSuggestionResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: approveSuggestion skills
            tags:
                - skills
            x-speakeasy-name-override: approveSuggestion
            x-speakeasy-react-hook:
                name: ApproveSkillSuggestion
    /rpc/skills.archive:
        post:
            description: Idempotently archive a skill. The implementation requires the skills product feature and skill write scope. Repeated requests for the same skill succeed without creating another state transition.
            operationId: archiveSkill
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ArchiveSkillRequestBody'
                required: true
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: archive skills
            tags:
                - skills
            x-speakeasy-name-override: archive
            x-speakeasy-react-hook:
                name: ArchiveSkill
    /rpc/skills.create:
        post:
            description: Record an uploaded SKILL.md. The implementation requires the skills product feature and skill write scope, and may create a skill, add a version to an existing skill, or return an existing canonical version as a no-op.
            operationId: createSkill
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateSkillRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RecordSkillResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: create skills
            tags:
                - skills
            x-speakeasy-name-override: create
            x-speakeasy-react-hook:
                name: CreateSkill
    /rpc/skills.dismissSuggestion:
        post:
            description: Idempotently dismiss an open skill edit suggestion. Approved and superseded suggestions conflict.
            operationId: dismissSkillSuggestion
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DismissSkillSuggestionRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SkillEditSuggestion'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: dismissSuggestion skills
            tags:
                - skills
            x-speakeasy-name-override: dismissSuggestion
            x-speakeasy-react-hook:
                name: DismissSkillSuggestion
    /rpc/skills.distribute:
        post:
            description: Create or update the active distribution of a skill to exactly one plugin or assistant. Repeating the request for the same target updates the version pin or is a no-op.
            operationId: distributeSkill
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        example:
                            id: 550e8400-e29b-41d4-a716-446655440000
                            plugin_id: 550e8400-e29b-41d4-a716-446655440001
                        schema:
                            $ref: '#/components/schemas/DistributeSkillRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SkillDistribution'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: distribute skills
            tags:
                - skills
            x-speakeasy-name-override: distribute
            x-speakeasy-react-hook:
                name: DistributeSkill
    /rpc/skills.get:
        get:
            description: Get an active skill and its latest version. The implementation requires the skills product feature and skill read scope.
            operationId: getSkill
            parameters:
                - allowEmptyValue: true
                  description: The skill ID.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The skill ID.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetSkillResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: get skills
            tags:
                - skills
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: Skill
    /rpc/skills.getShared:
        get:
            description: Fetch the publicly shared view of a skill by its share token. This endpoint is unauthenticated and only ever exposes the skill name, display name, summary, and latest content.
            operationId: getSharedSkill
            parameters:
                - allowEmptyValue: true
                  description: The public share token.
                  in: query
                  name: token
                  required: true
                  schema:
                    description: The public share token.
                    maxLength: 128
                    minLength: 32
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SharedSkill2'
                    description: OK response.
                    headers:
                        Cache-Control:
                            description: The Cache-Control response header.
                            schema:
                                description: The Cache-Control response header.
                                type: string
                        Referrer-Policy:
                            description: The Referrer-Policy response header.
                            schema:
                                description: The Referrer-Policy response header.
                                type: string
                        X-Robots-Tag:
                            description: The X-Robots-Tag response header.
                            schema:
                                description: The X-Robots-Tag response header.
                                type: string
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            summary: getShared skills
            tags:
                - skills
            x-speakeasy-name-override: getShared
            x-speakeasy-react-hook:
                name: SharedSkill
    /rpc/skills.link:
        post:
            description: Link a skill to exactly one MCP surface that serves it over MCP. Repeating the request for the same skill and target updates the version pin or is a no-op. Requires the skills-over-mcp rollout for the organization.
            operationId: linkSkill
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        example:
                            id: 550e8400-e29b-41d4-a716-446655440000
                            mcp_server_id: 550e8400-e29b-41d4-a716-446655440001
                            target_kind: mcp_server
                        schema:
                            $ref: '#/components/schemas/LinkSkillRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SkillLink'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: link skills
            tags:
                - skills
            x-speakeasy-name-override: link
            x-speakeasy-react-hook:
                name: LinkSkill
    /rpc/skills.list:
        get:
            description: List active skills in the project. The implementation requires the skills product feature and skill read scope.
            operationId: listSkills
            parameters:
                - allowEmptyValue: true
                  description: Cursor for the next page of skills.
                  in: query
                  name: cursor
                  schema:
                    description: Cursor for the next page of skills.
                    type: string
                - allowEmptyValue: true
                  description: The number of skills to return per page.
                  in: query
                  name: limit
                  schema:
                    default: 50
                    description: The number of skills to return per page.
                    format: int64
                    maximum: 200
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Search skill names, display names, and summaries.
                  in: query
                  name: search
                  schema:
                    description: Search skill names, display names, and summaries.
                    maxLength: 256
                    type: string
                - allowEmptyValue: true
                  description: Only return skills from these sources.
                  in: query
                  name: source_kinds
                  schema:
                    description: Only return skills from these sources.
                    items:
                        enum:
                            - manual
                            - captured
                        type: string
                    type: array
                - allowEmptyValue: true
                  description: Only return skills with these classifications.
                  in: query
                  name: classifications
                  schema:
                    description: Only return skills with these classifications.
                    items:
                        enum:
                            - custom
                            - built_in
                        type: string
                    type: array
                - allowEmptyValue: true
                  description: Only return skills that have any of these tags.
                  in: query
                  name: tags
                  schema:
                    description: Only return skills that have any of these tags.
                    items:
                        maxLength: 64
                        type: string
                    type: array
                - allowEmptyValue: true
                  description: Only return skills at least one of these Speakeasy users is authorized to reach, through a grant on them or on a role they hold, less any blocking grant withdrawing the same scope. Plugin membership is distribution and does not widen it.
                  in: query
                  name: accessible_by
                  schema:
                    description: Only return skills at least one of these Speakeasy users is authorized to reach, through a grant on them or on a role they hold, less any blocking grant withdrawing the same scope. Plugin membership is distribution and does not widen it.
                    items:
                        type: string
                    type: array
                - allowEmptyValue: true
                  description: How to order skills.
                  in: query
                  name: sort
                  schema:
                    default: name
                    description: How to order skills.
                    enum:
                        - name
                        - updated
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListSkillsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: list skills
            tags:
                - skills
            x-speakeasy-name-override: list
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: Skills
    /rpc/skills.listDistributions:
        get:
            description: List active plugin skill distributions for the current project.
            operationId: listSkillDistributions
            parameters:
                - allowEmptyValue: true
                  description: Only return distributions of this skill.
                  in: query
                  name: skill_id
                  schema:
                    description: Only return distributions of this skill.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Only return distributions carried by this plugin.
                  in: query
                  name: plugin_id
                  schema:
                    description: Only return distributions carried by this plugin.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Cursor for the next page of skill distributions.
                  in: query
                  name: cursor
                  schema:
                    description: Cursor for the next page of skill distributions.
                    type: string
                - allowEmptyValue: true
                  description: The number of skill distributions to return per page.
                  in: query
                  name: limit
                  schema:
                    default: 20
                    description: The number of skill distributions to return per page.
                    format: int64
                    maximum: 50
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListSkillDistributionsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listDistributions skills
            tags:
                - skills
            x-speakeasy-name-override: listDistributions
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: SkillDistributions
    /rpc/skills.listFeedback:
        get:
            description: List outcome counts, collection metrics, volume, and recent resolved feedback for a skill. Name-only feedback is excluded.
            operationId: listSkillFeedback
            parameters:
                - allowEmptyValue: true
                  description: The skill ID.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The skill ID.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Cursor for the next page of feedback.
                  in: query
                  name: cursor
                  schema:
                    description: Cursor for the next page of feedback.
                    type: string
                - allowEmptyValue: true
                  description: The number of feedback rows to return per page.
                  in: query
                  name: limit
                  schema:
                    default: 20
                    description: The number of feedback rows to return per page.
                    format: int64
                    maximum: 50
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListSkillFeedbackResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listFeedback skills
            tags:
                - skills
            x-speakeasy-name-override: listFeedback
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: SkillFeedback
    /rpc/skills.listLinks:
        get:
            description: List the current project's live skill links, limited to MCP surfaces the caller can read. Requires the skills-over-mcp rollout for the organization.
            operationId: listSkillLinks
            parameters:
                - allowEmptyValue: true
                  description: Only return links of this skill.
                  in: query
                  name: skill_id
                  schema:
                    description: Only return links of this skill.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Only return links to this MCP server.
                  in: query
                  name: mcp_server_id
                  schema:
                    description: Only return links to this MCP server.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Only return links to this gateway.
                  in: query
                  name: meta_mcp_server_id
                  schema:
                    description: Only return links to this gateway.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Only return links to this kind of MCP surface.
                  in: query
                  name: target_kind
                  schema:
                    description: Only return links to this kind of MCP surface.
                    enum:
                        - mcp_server
                        - meta_mcp_server
                        - organization_gateway
                    type: string
                - allowEmptyValue: true
                  description: Cursor for the next page of skill links.
                  in: query
                  name: cursor
                  schema:
                    description: Cursor for the next page of skill links.
                    type: string
                - allowEmptyValue: true
                  description: The number of skill links to return per page.
                  in: query
                  name: limit
                  schema:
                    default: 20
                    description: The number of skill links to return per page.
                    format: int64
                    maximum: 50
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListSkillLinksResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listLinks skills
            tags:
                - skills
            x-speakeasy-name-override: listLinks
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: SkillLinks
    /rpc/skills.listSuggestionFeedback:
        get:
            description: List the agent feedback cited as the reason for one proposed change, newest first.
            operationId: listSkillSuggestionFeedback
            parameters:
                - allowEmptyValue: true
                  description: The proposed change ID.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The proposed change ID.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: The number of feedback records to return.
                  in: query
                  name: limit
                  schema:
                    default: 50
                    description: The number of feedback records to return.
                    format: int64
                    maximum: 50
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListSkillSuggestionFeedbackResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listSuggestionFeedback skills
            tags:
                - skills
            x-speakeasy-name-override: listSuggestionFeedback
            x-speakeasy-react-hook:
                name: SkillSuggestionFeedback
    /rpc/skills.listSuggestions:
        get:
            description: List open skill edit suggestions in the project, newest first. The implementation requires the skills product feature and skill read scope.
            operationId: listSkillSuggestions
            parameters:
                - allowEmptyValue: true
                  description: Only return suggestions for this skill.
                  in: query
                  name: skill_id
                  schema:
                    description: Only return suggestions for this skill.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Cursor for the next page of suggestions.
                  in: query
                  name: cursor
                  schema:
                    description: Cursor for the next page of suggestions.
                    type: string
                - allowEmptyValue: true
                  description: The number of suggestions to return per page.
                  in: query
                  name: limit
                  schema:
                    default: 20
                    description: The number of suggestions to return per page.
                    format: int64
                    maximum: 50
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListSkillSuggestionsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listSuggestions skills
            tags:
                - skills
            x-speakeasy-name-override: listSuggestions
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: SkillSuggestions
    /rpc/skills.listTags:
        get:
            description: List distinct tags used by active skills in the project. The implementation requires the skills product feature and skill read scope.
            operationId: listSkillTags
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListSkillTagsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listTags skills
            tags:
                - skills
            x-speakeasy-name-override: listTags
            x-speakeasy-react-hook:
                name: SkillTags
    /rpc/skills.listUnknownActivations:
        get:
            description: List terminal skill activations that could not be attributed to a skill version.
            operationId: listUnknownSkillActivations
            parameters:
                - allowEmptyValue: true
                  description: Cursor for the next page of unknown activations.
                  in: query
                  name: cursor
                  schema:
                    description: Cursor for the next page of unknown activations.
                    type: string
                - allowEmptyValue: true
                  description: The number of unknown activations to return per page.
                  in: query
                  name: limit
                  schema:
                    default: 50
                    description: The number of unknown activations to return per page.
                    format: int64
                    maximum: 200
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListUnknownSkillActivationsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listUnknownActivations skills
            tags:
                - skills
            x-speakeasy-name-override: listUnknownActivations
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: UnknownSkillActivations
    /rpc/skills.listVersions:
        get:
            description: List immutable versions of an active skill, newest first. The implementation requires the skills product feature and skill read scope.
            operationId: listSkillVersions
            parameters:
                - allowEmptyValue: true
                  description: The skill ID.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The skill ID.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Cursor for the next page of skill versions.
                  in: query
                  name: cursor
                  schema:
                    description: Cursor for the next page of skill versions.
                    type: string
                - allowEmptyValue: true
                  description: The number of skill versions to return per page.
                  in: query
                  name: limit
                  schema:
                    default: 20
                    description: The number of skill versions to return per page.
                    format: int64
                    maximum: 50
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListSkillVersionsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listVersions skills
            tags:
                - skills
            x-speakeasy-name-override: listVersions
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: SkillVersions
    /rpc/skills.restoreVersion:
        post:
            description: Restore a historical valid version as the skill's current version without changing the immutable version record or explicit distribution pins.
            operationId: restoreSkillVersion
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RestoreSkillVersionRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RecordSkillResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: restoreVersion skills
            tags:
                - skills
            x-speakeasy-name-override: restoreVersion
            x-speakeasy-react-hook:
                name: RestoreSkillVersion
    /rpc/skills.share:
        post:
            description: Create a public share link for a skill. Repeated requests return the existing active link, so each skill has at most one active share token.
            operationId: shareSkill
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ShareSkillRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SkillShareLink'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: share skills
            tags:
                - skills
            x-speakeasy-name-override: share
            x-speakeasy-react-hook:
                name: ShareSkill
    /rpc/skills.triggerSuggestion:
        post:
            description: Manually run suggestion analysis for a skill, bypassing automatic feedback and efficacy thresholds while preserving the one-open-suggestion invariant.
            operationId: triggerSkillSuggestion
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/TriggerSkillSuggestionRequestBody'
                required: true
            responses:
                "202":
                    description: Accepted response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: triggerSuggestion skills
            tags:
                - skills
            x-speakeasy-name-override: triggerSuggestion
            x-speakeasy-react-hook:
                name: TriggerSkillSuggestion
                type: mutation
    /rpc/skills.undistribute:
        post:
            description: Revoke a skill's active distribution to exactly one plugin or assistant. Repeated requests are a no-op.
            operationId: undistributeSkill
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        example:
                            id: 550e8400-e29b-41d4-a716-446655440000
                            plugin_id: 550e8400-e29b-41d4-a716-446655440001
                        schema:
                            $ref: '#/components/schemas/UndistributeSkillRequestBody'
                required: true
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: undistribute skills
            tags:
                - skills
            x-speakeasy-name-override: undistribute
            x-speakeasy-react-hook:
                name: UndistributeSkill
    /rpc/skills.unlink:
        post:
            description: Remove a skill link so its MCP surface stops serving the skill through it. Removing a link that is already gone is a no-op. Requires the skills-over-mcp rollout for the organization.
            operationId: unlinkSkill
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        example:
                            link_id: 550e8400-e29b-41d4-a716-446655440000
                        schema:
                            $ref: '#/components/schemas/UnlinkSkillRequestBody'
                required: true
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: unlink skills
            tags:
                - skills
            x-speakeasy-name-override: unlink
            x-speakeasy-react-hook:
                name: UnlinkSkill
    /rpc/skills.unshare:
        post:
            description: Revoke a skill's active public share link. Repeated requests are a no-op.
            operationId: unshareSkill
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UnshareSkillRequestBody'
                required: true
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: unshare skills
            tags:
                - skills
            x-speakeasy-name-override: unshare
            x-speakeasy-react-hook:
                name: UnshareSkill
    /rpc/skills.update:
        post:
            description: Rename an active skill or update its display name, summary, and tags. The implementation requires the skills product feature and skill write scope.
            operationId: updateSkill
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateSkillRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Skill'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: update skills
            tags:
                - skills
            x-speakeasy-name-override: update
            x-speakeasy-react-hook:
                name: UpdateSkill
    /rpc/slackDirectoryConnections.begin:
        post:
            operationId: beginSlackDirectoryConnection
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/BeginSlackDirectoryConnectionRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/BeginResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/vnd.goa.error:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: Slack connections are unavailable or authorization is not configured.'
            security:
                - session_header_Gram-Session: []
            summary: begin slackDirectoryConnections
            tags:
                - slackDirectoryConnections
            x-speakeasy-name-override: begin
            x-speakeasy-react-hook:
                name: BeginSlackDirectoryConnection
    /rpc/slackDirectoryConnections.disconnect:
        post:
            operationId: disconnectSlackDirectoryConnection
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DisconnectSlackDirectoryConnectionRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SlackDirectoryConnection'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/vnd.goa.error:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: Slack connections are unavailable or authorization is not configured.'
            security:
                - session_header_Gram-Session: []
            summary: disconnect slackDirectoryConnections
            tags:
                - slackDirectoryConnections
            x-speakeasy-name-override: disconnect
            x-speakeasy-react-hook:
                name: DisconnectSlackDirectoryConnection
    /rpc/slackDirectoryConnections.getMember:
        get:
            description: Read current Slack profile and mapping before an administrator confirms a selection.
            operationId: getSlackDirectoryMember
            parameters:
                - allowEmptyValue: true
                  in: query
                  name: id
                  required: true
                  schema:
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SlackDirectoryMember'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/vnd.goa.error:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: Slack connections are unavailable or authorization is not configured.'
            security:
                - session_header_Gram-Session: []
            summary: getMember slackDirectoryConnections
            tags:
                - slackDirectoryConnections
            x-speakeasy-name-override: getMember
            x-speakeasy-react-hook:
                name: SlackDirectoryMember
    /rpc/slackDirectoryConnections.list:
        get:
            operationId: listSlackDirectoryConnections
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/vnd.goa.error:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: Slack connections are unavailable or authorization is not configured.'
            security:
                - session_header_Gram-Session: []
            summary: list slackDirectoryConnections
            tags:
                - slackDirectoryConnections
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: SlackDirectoryConnections
    /rpc/slackDirectoryConnections.listMembers:
        get:
            description: Read observed Slack members across the organization or within one workspace. Does not create identity mappings.
            operationId: listSlackDirectoryMembers
            parameters:
                - allowEmptyValue: true
                  description: Filter to a workspace connection.
                  in: query
                  name: connection_id
                  schema:
                    description: Filter to a workspace connection.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Literal case-insensitive name, email or Slack ID search.
                  in: query
                  name: search
                  schema:
                    description: Literal case-insensitive name, email or Slack ID search.
                    maxLength: 200
                    type: string
                - allowEmptyValue: true
                  description: Filter mapping state.
                  in: query
                  name: mapping_status
                  schema:
                    description: Filter mapping state.
                    enum:
                        - unmapped
                        - mapped
                        - needs_review
                    type: string
                - allowEmptyValue: true
                  description: Include members deactivated in Slack.
                  in: query
                  name: include_deactivated
                  schema:
                    default: false
                    description: Include members deactivated in Slack.
                    type: boolean
                - allowEmptyValue: true
                  description: Include bots and apps.
                  in: query
                  name: include_bots
                  schema:
                    default: false
                    description: Include bots and apps.
                    type: boolean
                - allowEmptyValue: true
                  description: Include guests.
                  in: query
                  name: include_guests
                  schema:
                    default: false
                    description: Include guests.
                    type: boolean
                - allowEmptyValue: true
                  description: Sort by mapping state at this time, so mapping changes after it do not reorder pages. Pass back the sort_as_of from the first page; defaults to the database's current time.
                  in: query
                  name: sort_as_of
                  schema:
                    description: Sort by mapping state at this time, so mapping changes after it do not reorder pages. Pass back the sort_as_of from the first page; defaults to the database's current time.
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: One-based page number. Unmapped members sort first, then members needing review, then mapped members, each alphabetically.
                  in: query
                  name: page
                  schema:
                    default: 1
                    description: One-based page number. Unmapped members sort first, then members needing review, then mapped members, each alphabetically.
                    format: int64
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Maximum returned rows.
                  in: query
                  name: limit
                  schema:
                    default: 50
                    description: Maximum returned rows.
                    format: int64
                    maximum: 100
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListMembersResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/vnd.goa.error:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: Slack connections are unavailable or authorization is not configured.'
            security:
                - session_header_Gram-Session: []
            summary: listMembers slackDirectoryConnections
            tags:
                - slackDirectoryConnections
            x-speakeasy-name-override: listMembers
            x-speakeasy-react-hook:
                name: SlackDirectoryMembers
    /rpc/slackDirectoryConnections.listPersonAccounts:
        get:
            description: Read mapped Slack accounts for an active organization person by exact Speakeasy user ID. Browser session only; caller must be that person or an organization administrator. Does not infer associations from email or grant permissions.
            operationId: listSlackPersonAccounts
            parameters:
                - allowEmptyValue: true
                  description: Exact Speakeasy user ID of the active organization person.
                  in: query
                  name: user_id
                  required: true
                  schema:
                    description: Exact Speakeasy user ID of the active organization person.
                    minLength: 1
                    type: string
                - allowEmptyValue: true
                  description: Continue after the last membership ID.
                  in: query
                  name: cursor
                  schema:
                    description: Continue after the last membership ID.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListPersonAccountsResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/vnd.goa.error:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: Slack connections are unavailable or authorization is not configured.'
            security:
                - session_header_Gram-Session: []
            summary: listPersonAccounts slackDirectoryConnections
            tags:
                - slackDirectoryConnections
            x-speakeasy-name-override: listPersonAccounts
            x-speakeasy-react-hook:
                name: SlackPersonAccounts
    /rpc/slackDirectoryConnections.setDefaultProject:
        post:
            description: Choose the project whose managed assistant answers Speakeasy app mentions and direct messages in a connected workspace. Omit project_id to clear it. A project can be the default for at most one workspace.
            operationId: setSlackDirectoryDefaultProject
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetSlackDirectoryDefaultProjectRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SlackDirectoryConnection'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/vnd.goa.error:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: Slack connections are unavailable or authorization is not configured.'
            security:
                - session_header_Gram-Session: []
            summary: setDefaultProject slackDirectoryConnections
            tags:
                - slackDirectoryConnections
            x-speakeasy-name-override: setDefaultProject
            x-speakeasy-react-hook:
                name: SetSlackDirectoryDefaultProject
    /rpc/slackDirectoryConnections.setMapping:
        post:
            description: Explicitly confirm, reassign or remove a Slack association. This grants no permissions and does not establish runtime eligibility.
            operationId: setSlackIdentityMapping
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetSlackIdentityMappingRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SlackDirectoryMember'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/vnd.goa.error:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: Slack connections are unavailable or authorization is not configured.'
            security:
                - session_header_Gram-Session: []
            summary: setMapping slackDirectoryConnections
            tags:
                - slackDirectoryConnections
            x-speakeasy-name-override: setMapping
            x-speakeasy-react-hook:
                name: SetSlackIdentityMapping
    /rpc/slackDirectoryConnections.sync:
        post:
            description: Request a complete Slack workspace directory sync. Concurrent requests join the running sync.
            operationId: syncSlackDirectory
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SyncSlackDirectoryRequestBody'
                required: true
            responses:
                "202":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SyncResponseBody'
                    description: Accepted response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
                "503":
                    content:
                        application/vnd.goa.error:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unavailable: Slack connections are unavailable or authorization is not configured.'
            security:
                - session_header_Gram-Session: []
            summary: sync slackDirectoryConnections
            tags:
                - slackDirectoryConnections
            x-speakeasy-name-override: sync
            x-speakeasy-react-hook:
                name: SyncSlackDirectory
    /rpc/spendrules.archiveRule:
        post:
            description: 'Archive a budget rule. There is no delete: archiving ends the rule''s lineage while retaining its slug, version history, and events. Any open circuits for the rule close on the next evaluation cycle.'
            operationId: archiveSpendRule
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RiskIDRequestBody'
                required: true
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: archiveSpendRule spendRules
            tags:
                - spendRules
            x-speakeasy-group: spendRules.rules
            x-speakeasy-name-override: archive
            x-speakeasy-react-hook:
                name: SpendRulesArchiveRule
                type: mutation
    /rpc/spendrules.createRule:
        post:
            description: Create a new budget rule for the current organization.
            operationId: createSpendRule
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateSpendRuleRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SpendRule'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: createSpendRule spendRules
            tags:
                - spendRules
            x-speakeasy-group: spendRules.rules
            x-speakeasy-name-override: create
            x-speakeasy-react-hook:
                name: SpendRulesCreateRule
                type: mutation
    /rpc/spendrules.getOverview:
        get:
            description: 'Get budgets overview metrics: aggregate card numbers plus current-window usage per rule.'
            operationId: getSpendRulesOverview
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SpendRulesOverviewResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getSpendRulesOverview spendRules
            tags:
                - spendRules
            x-speakeasy-group: spendRules.overview
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: SpendRulesOverview
    /rpc/spendrules.getRule:
        get:
            description: Get a budget rule by ID.
            operationId: getSpendRule
            parameters:
                - allowEmptyValue: true
                  description: The rule ID.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The rule ID.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SpendRule'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getSpendRule spendRules
            tags:
                - spendRules
            x-speakeasy-group: spendRules.rules
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: SpendRulesGetRule
    /rpc/spendrules.listActorAttributes:
        get:
            description: List the member attributes a rule target condition can be written against, with each attribute's value kind. Static reference data that powers the rule editor's attribute picker.
            operationId: listSpendRuleActorAttributes
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListActorAttributesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listActorAttributes spendRules
            tags:
                - spendRules
            x-speakeasy-group: spendRules.actorAttributes
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: SpendRulesActorAttributes
    /rpc/spendrules.listEvents:
        get:
            description: List warning and breach events emitted by budget rule evaluation, most recent first.
            operationId: listSpendRuleEvents
            parameters:
                - allowEmptyValue: true
                  description: 'Optional rule ID to filter by. Matches the rule''s whole lineage: events from every version of the rule are returned.'
                  in: query
                  name: rule_id
                  schema:
                    description: 'Optional rule ID to filter by. Matches the rule''s whole lineage: events from every version of the rule are returned.'
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Optional event type to filter by.
                  in: query
                  name: event_type
                  schema:
                    description: Optional event type to filter by.
                    enum:
                        - warning
                        - breach
                    type: string
                - allowEmptyValue: true
                  description: Cursor to fetch the next page of events.
                  in: query
                  name: cursor
                  schema:
                    description: Cursor to fetch the next page of events.
                    type: string
                - allowEmptyValue: true
                  description: Maximum number of events to return per page.
                  in: query
                  name: limit
                  schema:
                    description: Maximum number of events to return per page.
                    format: int64
                    maximum: 200
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListSpendRuleEventsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listSpendRuleEvents spendRules
            tags:
                - spendRules
            x-speakeasy-group: spendRules.events
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: SpendRulesListEvents
    /rpc/spendrules.listRules:
        get:
            description: List all budget rules for the current organization.
            operationId: listSpendRules
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListSpendRulesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listSpendRules spendRules
            tags:
                - spendRules
            x-speakeasy-group: spendRules.rules
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: SpendRulesListRules
    /rpc/spendrules.previewRule:
        post:
            description: Preview which actors a target expression matches and their current spend against a proposed budget. Powers the live preview in the rule editor and the per-actor breakdown in the rule detail view.
            operationId: previewSpendRule
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/PreviewSpendRuleRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/PreviewSpendRuleResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: previewSpendRule spendRules
            tags:
                - spendRules
            x-speakeasy-group: spendRules.rules
            x-speakeasy-name-override: preview
            x-speakeasy-react-hook:
                name: SpendRulesPreviewRule
                type: mutation
    /rpc/spendrules.updateRule:
        put:
            description: 'Update a budget rule. Rule rows are immutable version snapshots: any change besides the enabled toggle archives the current version row and creates a successor at version + 1 (returned as the result, under a new ID). Enabled-only changes toggle the live row in place.'
            operationId: updateSpendRule
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateSpendRuleRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SpendRule'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: updateSpendRule spendRules
            tags:
                - spendRules
            x-speakeasy-group: spendRules.rules
            x-speakeasy-name-override: update
            x-speakeasy-react-hook:
                name: SpendRulesUpdateRule
                type: mutation
    /rpc/telemetry.captureEvent:
        post:
            description: Capture a telemetry event and forward it to PostHog
            operationId: captureEvent
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
                - allowEmptyValue: true
                  description: Chat Sessions token header
                  in: header
                  name: Gram-Chat-Session
                  schema:
                    description: Chat Sessions token header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CaptureEventPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaptureEventResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - chat_sessions_token_header_Gram-Chat-Session: []
            summary: captureEvent telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: captureEvent
    /rpc/telemetry.getEmployeeDataFlowGraph:
        post:
            description: Get an employee's MCP data flow graph across origins, clients, servers, and tools
            operationId: getEmployeeDataFlowGraph
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetEmployeeDataFlowGraphPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetEmployeeDataFlowGraphResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getEmployeeDataFlowGraph telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: getEmployeeDataFlowGraph
            x-speakeasy-react-hook:
                name: GetEmployeeDataFlowGraph
                type: query
    /rpc/telemetry.getHooksSummary:
        post:
            description: Get aggregated hooks metrics grouped by server
            operationId: getHooksSummary
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetHooksSummaryPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetHooksSummaryResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getHooksSummary telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: getHooksSummary
            x-speakeasy-react-hook:
                name: GetHooksSummary
                type: query
    /rpc/telemetry.getMcpNetworkTraffic:
        post:
            description: Observed inbound public and private MCP request counts for a server or gateway over a recent window
            operationId: getMcpNetworkTraffic
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetMcpNetworkTrafficPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetMcpNetworkTrafficResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getMcpNetworkTraffic telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: getMcpNetworkTraffic
            x-speakeasy-react-hook:
                name: GetMcpNetworkTraffic
                type: query
    /rpc/telemetry.getMcpServerActivity:
        post:
            description: Get per-MCP-server tool-call activity for the Distribute MCP listing. Returns, for every MCP server with usage in the lookback window, its total and recent tool-call counts plus the last tool-call time, so the listing can flag servers that have never received a tool call or that have gone quiet.
            operationId: getMcpServerActivity
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetMcpServerActivityPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetMcpServerActivityResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getMcpServerActivity telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: getMcpServerActivity
            x-speakeasy-react-hook:
                name: GetMcpServerActivity
                type: query
    /rpc/telemetry.getMetaMcpServerUsage:
        post:
            description: Discovery funnel and per-member execution breakdown for one gateway (meta MCP server), from gateway-attributed telemetry.
            operationId: getMetaMcpServerUsage
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetMetaMcpServerUsagePayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetMetaMcpServerUsageResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getMetaMcpServerUsage telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: getMetaMcpServerUsage
            x-speakeasy-react-hook:
                name: GetMetaMcpServerUsage
                type: query
    /rpc/telemetry.getObservabilityOverview:
        post:
            description: Get observability overview metrics including time series, tool breakdowns, and summary stats
            operationId: getObservabilityOverview
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetObservabilityOverviewPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetObservabilityOverviewResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getObservabilityOverview telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: getObservabilityOverview
            x-speakeasy-react-hook:
                name: GetObservabilityOverview
                type: query
    /rpc/telemetry.getOrgMcpServerActivity:
        post:
            description: Get recent per-MCP-server tool-call activity for every project in the organization the caller can read, in one request. Only the recent window is scanned.
            operationId: getOrgMcpServerActivity
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetMcpServerActivityPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetOrgMcpServerActivityResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getOrgMcpServerActivity telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: getOrgMcpServerActivity
            x-speakeasy-react-hook:
                name: GetOrgMcpServerActivity
                type: query
    /rpc/telemetry.getOrganizationGatewayOverview:
        post:
            description: Observability overview metrics for calls dispatched through the caller's Organization Gateway, across every project in the organization.
            operationId: getOrganizationGatewayOverview
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetOrganizationGatewayActivityPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetObservabilityOverviewResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getOrganizationGatewayOverview telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: getOrganizationGatewayOverview
            x-speakeasy-react-hook:
                name: GetOrganizationGatewayOverview
                type: query
    /rpc/telemetry.getOrganizationGatewayUsage:
        post:
            description: Discovery funnel and per-server execution breakdown for the caller's Organization Gateway, across every project in the organization.
            operationId: getOrganizationGatewayUsage
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetOrganizationGatewayActivityPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetMetaMcpServerUsageResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getOrganizationGatewayUsage telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: getOrganizationGatewayUsage
            x-speakeasy-react-hook:
                name: GetOrganizationGatewayUsage
                type: query
    /rpc/telemetry.getProjectMetricsSummary:
        post:
            description: Get aggregated metrics summary for an entire project
            operationId: getProjectMetricsSummary
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetProjectMetricsSummaryPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetMetricsSummaryResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getProjectMetricsSummary telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: getProjectMetricsSummary
            x-speakeasy-react-hook:
                name: GetProjectMetricsSummary
                type: query
    /rpc/telemetry.getProjectOverview:
        post:
            description: Get project-level overview including total chats, tool calls, active servers/users, and top lists
            operationId: getProjectOverview
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetProjectOverviewPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetProjectOverviewResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getProjectOverview telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: getProjectOverview
            x-speakeasy-react-hook:
                name: GetProjectOverview
                type: query
    /rpc/telemetry.getToolUsageClientToolBreakdown:
        post:
            description: Get per-tool MCP and tool usage grouped by MCP client
            operationId: getToolUsageClientToolBreakdown
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetToolUsageSummaryPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetToolUsageClientToolBreakdownResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getToolUsageClientToolBreakdown telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: getToolUsageClientToolBreakdown
            x-speakeasy-react-hook:
                name: GetToolUsageClientToolBreakdown
                type: query
    /rpc/telemetry.getToolUsageClients:
        post:
            description: Get top MCP clients by tool usage
            operationId: getToolUsageClients
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetToolUsageSummaryPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetToolUsageClientsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getToolUsageClients telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: getToolUsageClients
            x-speakeasy-react-hook:
                name: GetToolUsageClients
                type: query
    /rpc/telemetry.getToolUsageFilterOptions:
        post:
            description: Get filter options for target-aware MCP and tool usage metrics
            operationId: getToolUsageFilterOptions
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetToolUsageFilterOptionsPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetToolUsageFilterOptionsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getToolUsageFilterOptions telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: getToolUsageFilterOptions
            x-speakeasy-react-hook:
                name: GetToolUsageFilterOptions
                type: query
    /rpc/telemetry.getToolUsageSummary:
        post:
            description: Get target-aware MCP and tool usage metrics
            operationId: getToolUsageSummary
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetToolUsageSummaryPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetToolUsageSummaryResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getToolUsageSummary telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: getToolUsageSummary
            x-speakeasy-react-hook:
                name: GetToolUsageSummary
                type: query
    /rpc/telemetry.getToolUsageTargetTimeSeries:
        post:
            description: Get time-series MCP and tool usage grouped by target
            operationId: getToolUsageTargetTimeSeries
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetToolUsageSummaryPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetToolUsageTargetTimeSeriesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getToolUsageTargetTimeSeries telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: getToolUsageTargetTimeSeries
            x-speakeasy-react-hook:
                name: GetToolUsageTargetTimeSeries
                type: query
    /rpc/telemetry.getToolUsageTargetToolBreakdown:
        post:
            description: Get per-tool MCP and tool usage grouped by target
            operationId: getToolUsageTargetToolBreakdown
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetToolUsageSummaryPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetToolUsageTargetToolBreakdownResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getToolUsageTargetToolBreakdown telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: getToolUsageTargetToolBreakdown
            x-speakeasy-react-hook:
                name: GetToolUsageTargetToolBreakdown
                type: query
    /rpc/telemetry.getToolUsageTargets:
        post:
            description: Get top MCP and tool usage targets
            operationId: getToolUsageTargets
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetToolUsageSummaryPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetToolUsageTargetsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getToolUsageTargets telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: getToolUsageTargets
            x-speakeasy-react-hook:
                name: GetToolUsageTargets
                type: query
    /rpc/telemetry.getToolUsageTotals:
        post:
            description: Get overall MCP and tool usage totals
            operationId: getToolUsageTotals
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetToolUsageSummaryPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetToolUsageTotalsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getToolUsageTotals telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: getToolUsageTotals
            x-speakeasy-react-hook:
                name: GetToolUsageTotals
                type: query
    /rpc/telemetry.getToolUsageUserTimeSeries:
        post:
            description: Get time-series MCP and tool usage grouped by user identity
            operationId: getToolUsageUserTimeSeries
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetToolUsageSummaryPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetToolUsageUserTimeSeriesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getToolUsageUserTimeSeries telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: getToolUsageUserTimeSeries
            x-speakeasy-react-hook:
                name: GetToolUsageUserTimeSeries
                type: query
    /rpc/telemetry.getToolUsageUsers:
        post:
            description: Get top MCP and tool usage user identities
            operationId: getToolUsageUsers
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetToolUsageSummaryPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetToolUsageUsersResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getToolUsageUsers telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: getToolUsageUsers
            x-speakeasy-react-hook:
                name: GetToolUsageUsers
                type: query
    /rpc/telemetry.getToolUsageUsersByTarget:
        post:
            description: Get cross-dimensional MCP and tool usage grouped by target and user identity
            operationId: getToolUsageUsersByTarget
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetToolUsageSummaryPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetToolUsageUsersByTargetResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getToolUsageUsersByTarget telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: getToolUsageUsersByTarget
            x-speakeasy-react-hook:
                name: GetToolUsageUsersByTarget
                type: query
    /rpc/telemetry.getUnproxiedMcpServerClientUsage:
        post:
            description: Best-effort per-client (hook source, e.g. claude-code, cursor, codex) call counts for an unproxied MCP server, sourced from Shadow MCP's hook-reported traces matched by canonicalized URL. Same coverage caveats as getUnproxiedMcpServerUsage.
            operationId: getUnproxiedMcpServerClientUsage
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UnproxiedMcpServerUsageBreakdownPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetUnproxiedMcpServerClientUsageResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getUnproxiedMcpServerClientUsage telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: getUnproxiedMcpServerClientUsage
            x-speakeasy-react-hook:
                name: GetUnproxiedMcpServerClientUsage
                type: query
    /rpc/telemetry.getUnproxiedMcpServerToolUsage:
        post:
            description: Best-effort per-tool call counts for an unproxied MCP server, sourced from Shadow MCP's hook-reported traces matched by canonicalized URL. Same coverage caveats as getUnproxiedMcpServerUsage.
            operationId: getUnproxiedMcpServerToolUsage
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UnproxiedMcpServerUsageBreakdownPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetUnproxiedMcpServerToolUsageResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getUnproxiedMcpServerToolUsage telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: getUnproxiedMcpServerToolUsage
            x-speakeasy-react-hook:
                name: GetUnproxiedMcpServerToolUsage
                type: query
    /rpc/telemetry.getUnproxiedMcpServerUsage:
        post:
            description: 'Best-effort tool-call activity for an unproxied MCP server, sourced from Shadow MCP''s hook-reported traces matched by canonicalized URL. Coverage is opportunistic: only calls made from hook-instrumented sessions in this project are visible, so a freshly added or rarely used server may show no data.'
            operationId: getUnproxiedMcpServerUsage
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetUnproxiedMcpServerUsageRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetUnproxiedMcpServerUsageResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getUnproxiedMcpServerUsage telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: getUnproxiedMcpServerUsage
            x-speakeasy-react-hook:
                name: GetUnproxiedMcpServerUsage
                type: query
    /rpc/telemetry.getUnproxiedMcpServerUserUsage:
        post:
            description: Best-effort per-user call counts for an unproxied MCP server, sourced from Shadow MCP's hook-reported traces matched by canonicalized URL. Same coverage caveats as getUnproxiedMcpServerUsage.
            operationId: getUnproxiedMcpServerUserUsage
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UnproxiedMcpServerUsageBreakdownPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetUnproxiedMcpServerUserUsageResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getUnproxiedMcpServerUserUsage telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: getUnproxiedMcpServerUserUsage
            x-speakeasy-react-hook:
                name: GetUnproxiedMcpServerUserUsage
                type: query
    /rpc/telemetry.getUserMetricsSummary:
        post:
            description: Get aggregated metrics summary grouped by user
            operationId: getUserMetricsSummary
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetUserMetricsSummaryPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetUserMetricsSummaryResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getUserMetricsSummary telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: getUserMetricsSummary
            x-speakeasy-react-hook:
                name: GetUserMetricsSummary
                type: query
    /rpc/telemetry.listAttributeKeys:
        post:
            description: List distinct attribute keys available for filtering
            operationId: listAttributeKeys
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetProjectMetricsSummaryPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListAttributeKeysResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listAttributeKeys telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: listAttributeKeys
            x-speakeasy-react-hook:
                name: ListAttributeKeys
                type: query
    /rpc/telemetry.listFilterOptions:
        post:
            description: List available filter options (API keys or users) for the observability overview
            operationId: listFilterOptions
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ListFilterOptionsPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListFilterOptionsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listFilterOptions telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: listFilterOptions
            x-speakeasy-react-hook:
                name: ListFilterOptions
                type: query
    /rpc/telemetry.listHooksTraces:
        post:
            description: List hook traces aggregated by trace_id with user information
            operationId: listHooksTraces
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ListHooksTracesPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListHooksTracesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listHooksTraces telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: listHooksTraces
            x-speakeasy-react-hook:
                name: ListHooksTraces
                type: query
    /rpc/telemetry.listSessions:
        post:
            description: Org-scoped list of individual chat sessions for a slice of usage, filtered by the same allowlisted dimensions as telemetry.query. Returns per-session cost, token, and tool metrics with cursor pagination.
            operationId: listSessions
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ListSessionsPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListSessionsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: listSessions telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: listSessions
            x-speakeasy-react-hook:
                name: ListSessions
                type: query
    /rpc/telemetry.listToolUsageTraces:
        post:
            description: List target-aware MCP and tool usage traces
            operationId: listToolUsageTraces
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ListToolUsageTracesPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListToolUsageTracesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listToolUsageTraces telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: listToolUsageTraces
            x-speakeasy-react-hook:
                name: ListToolUsageTraces
                type: query
    /rpc/telemetry.query:
        post:
            description: Generic, org-scoped analytics query over pre-aggregated usage metrics. Returns both a grouped table and a per-group hourly timeseries for the same slice of data, supporting arbitrary allowlisted group-by dimensions and filters (e.g. group by department_name, then drill in by filtering department_name and grouping by role).
            operationId: query
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/QueryPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/QueryResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: query telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: query
            x-speakeasy-react-hook:
                name: TelemetryQuery
                type: query
    /rpc/telemetry.queryTumDetails:
        post:
            description: 'Org-scoped daily usage details for the billing page, computed in one pass: the tokens-under-management daily token-type split (observed agent traffic; cache reads excluded) and per-dimension breakdowns over the same population.'
            operationId: queryTumDetails
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/TelemetryWindowPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/TumDetailsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: queryTumDetails telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: queryTumDetails
            x-speakeasy-react-hook:
                name: TelemetryQueryTumDetails
                type: query
    /rpc/telemetry.searchChats:
        post:
            description: Search and list chat session summaries that match a search filter
            operationId: searchChats
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SearchChatsPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SearchChatsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: searchChats telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: searchChats
            x-speakeasy-react-hook:
                name: SearchChats
                type: query
    /rpc/telemetry.searchLogs:
        post:
            description: Search and list telemetry logs that match a search filter
            operationId: searchLogs
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SearchLogsPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SearchLogsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: searchLogs telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: searchLogs
            x-speakeasy-react-hook:
                name: SearchLogs
    /rpc/telemetry.searchToolCalls:
        post:
            description: Search and list tool calls that match a search filter
            operationId: searchToolCalls
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SearchToolCallsPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SearchToolCallsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: searchToolCalls telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: searchToolCalls
            x-speakeasy-react-hook:
                name: SearchToolCalls
    /rpc/telemetry.searchUsers:
        post:
            description: Search and list user usage summaries grouped by user_id or external_user_id
            operationId: searchUsers
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SearchUsersPayload'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SearchUsersResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: searchUsers telemetry
            tags:
                - telemetry
            x-speakeasy-name-override: searchUsers
            x-speakeasy-react-hook:
                name: SearchUsers
                type: query
    /rpc/templates.create:
        post:
            description: Create a new prompt template.
            operationId: createTemplate
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreatePromptTemplateForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CreatePromptTemplateResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: createTemplate templates
            tags:
                - templates
            x-speakeasy-name-override: create
            x-speakeasy-react-hook:
                name: CreateTemplate
    /rpc/templates.delete:
        delete:
            description: Delete prompt template by its ID or name.
            operationId: deleteTemplate
            parameters:
                - allowEmptyValue: true
                  description: The ID of the prompt template
                  in: query
                  name: id
                  schema:
                    description: The ID of the prompt template
                    type: string
                - allowEmptyValue: true
                  description: The name of the prompt template
                  in: query
                  name: name
                  schema:
                    description: The name of the prompt template
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: deleteTemplate templates
            tags:
                - templates
            x-speakeasy-name-override: delete
            x-speakeasy-react-hook:
                name: DeleteTemplate
    /rpc/templates.get:
        get:
            description: Get prompt template by its ID or name.
            operationId: getTemplate
            parameters:
                - allowEmptyValue: true
                  description: The ID of the prompt template
                  in: query
                  name: id
                  schema:
                    description: The ID of the prompt template
                    type: string
                - allowEmptyValue: true
                  description: The name of the prompt template
                  in: query
                  name: name
                  schema:
                    description: The name of the prompt template
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetPromptTemplateResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: getTemplate templates
            tags:
                - templates
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: Template
    /rpc/templates.list:
        get:
            description: List available prompt template.
            operationId: listTemplates
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListPromptTemplatesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listTemplates templates
            tags:
                - templates
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: Templates
    /rpc/templates.render:
        post:
            description: Render a prompt template by ID with provided input data.
            operationId: renderTemplateByID
            parameters:
                - allowEmptyValue: true
                  description: The ID of the prompt template to render
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the prompt template to render
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RenderTemplateByIDRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RenderTemplateResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: renderTemplateByID templates
            tags:
                - templates
            x-speakeasy-name-override: renderByID
            x-speakeasy-react-hook:
                name: RenderTemplateByID
                type: query
    /rpc/templates.renderDirect:
        post:
            description: Render a prompt template directly with all template fields provided.
            operationId: renderTemplate
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RenderTemplateRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RenderTemplateResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: renderTemplate templates
            tags:
                - templates
            x-speakeasy-name-override: render
            x-speakeasy-react-hook:
                name: RenderTemplate
                type: query
    /rpc/templates.update:
        post:
            description: Update a prompt template.
            operationId: updateTemplate
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdatePromptTemplateForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UpdatePromptTemplateResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: updateTemplate templates
            tags:
                - templates
            x-speakeasy-name-override: update
            x-speakeasy-react-hook:
                name: UpdateTemplate
    /rpc/tokenExchange.exchange:
        post:
            description: Exchange the org-scoped device-agent install credential plus a vouched user email for a long-lived, per-user API key carrying the 'agent_user' scope. Authenticated with an org-scoped API key carrying the 'agent' scope — deliberately broader than the 'agent_user' scope the minted per-user keys carry, so a leaked per-user key cannot re-enter this endpoint to forge another user's key. The raw key is returned exactly once.
            operationId: tokenExchange
            parameters:
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ExchangeRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/TokenResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - apikey_header_Gram-Key: []
            summary: exchange tokenExchange
            tags:
                - tokenExchange
            x-speakeasy-name-override: exchange
    /rpc/tools.list:
        get:
            description: List all tools for a project
            operationId: listTools
            parameters:
                - allowEmptyValue: true
                  description: The cursor to fetch results from
                  in: query
                  name: cursor
                  schema:
                    description: The cursor to fetch results from
                    type: string
                - allowEmptyValue: true
                  description: The number of tools to return per page
                  in: query
                  name: limit
                  schema:
                    description: The number of tools to return per page
                    format: int32
                    type: integer
                - allowEmptyValue: true
                  description: The deployment ID. If unset, latest deployment will be used.
                  in: query
                  name: deployment_id
                  schema:
                    description: The deployment ID. If unset, latest deployment will be used.
                    type: string
                - allowEmptyValue: true
                  description: Filter tools by URN prefix (e.g. 'tools:http:kitchen-sink' to match all tools starting with that prefix)
                  in: query
                  name: urn_prefix
                  schema:
                    description: Filter tools by URN prefix (e.g. 'tools:http:kitchen-sink' to match all tools starting with that prefix)
                    type: string
                - allowEmptyValue: true
                  in: query
                  name: tool_types
                  schema:
                    default:
                        - http
                        - function
                        - prompt
                        - platform
                    items:
                        description: The type of tool
                        enum:
                            - http
                            - prompt
                            - function
                            - platform
                            - externalmcp
                        type: string
                    type: array
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListToolsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listTools tools
            tags:
                - tools
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: ListTools
    /rpc/toolsets.addExternalOAuthServer:
        post:
            description: Associate an external OAuth server with a toolset
            operationId: addExternalOAuthServer
            parameters:
                - allowEmptyValue: true
                  description: The slug of the toolset to update
                  in: query
                  name: slug
                  required: true
                  schema:
                    description: A short url-friendly label that uniquely identifies a resource.
                    maxLength: 40
                    pattern: ^[a-z0-9_-]{1,128}$
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/AddExternalOAuthServerRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Toolset'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: addExternalOAuthServer toolsets
            tags:
                - toolsets
            x-speakeasy-name-override: addExternalOAuthServer
            x-speakeasy-react-hook:
                name: AddExternalOAuthServer
    /rpc/toolsets.clone:
        post:
            description: Clone an existing toolset with a new name
            operationId: cloneToolset
            parameters:
                - allowEmptyValue: true
                  description: The slug of the toolset to clone
                  in: query
                  name: slug
                  required: true
                  schema:
                    description: A short url-friendly label that uniquely identifies a resource.
                    maxLength: 40
                    pattern: ^[a-z0-9_-]{1,128}$
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Toolset'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Authorization: []
                  project_slug_header_Gram-Project: []
            summary: cloneToolset toolsets
            tags:
                - toolsets
            x-speakeasy-name-override: cloneBySlug
            x-speakeasy-react-hook:
                name: CloneToolset
    /rpc/toolsets.create:
        post:
            description: Create a new toolset with associated tools
            operationId: createToolset
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateToolsetRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Toolset'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: createToolset toolsets
            tags:
                - toolsets
            x-speakeasy-name-override: create
            x-speakeasy-react-hook:
                name: CreateToolset
    /rpc/toolsets.delete:
        delete:
            description: Delete a toolset by its ID
            operationId: deleteToolset
            parameters:
                - allowEmptyValue: true
                  description: The slug of the toolset
                  in: query
                  name: slug
                  required: true
                  schema:
                    description: A short url-friendly label that uniquely identifies a resource.
                    maxLength: 40
                    pattern: ^[a-z0-9_-]{1,128}$
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "204":
                    description: No Content response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: deleteToolset toolsets
            tags:
                - toolsets
            x-speakeasy-name-override: deleteBySlug
            x-speakeasy-react-hook:
                name: DeleteToolset
    /rpc/toolsets.get:
        get:
            description: Get detailed information about a toolset including full HTTP tool definitions
            operationId: getToolset
            parameters:
                - allowEmptyValue: true
                  description: The slug of the toolset
                  in: query
                  name: slug
                  required: true
                  schema:
                    description: The slug of the toolset
                    maxLength: 60
                    pattern: ^[a-z0-9_-]{1,128}$
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Toolset'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: getToolset toolsets
            tags:
                - toolsets
            x-speakeasy-name-override: getBySlug
            x-speakeasy-react-hook:
                name: Toolset
    /rpc/toolsets.list:
        get:
            description: List all toolsets for a project
            operationId: listToolsets
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListToolsetsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listToolsets toolsets
            tags:
                - toolsets
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: ListToolsets
    /rpc/toolsets.listForOrg:
        get:
            description: List all toolsets across the organization (summary view)
            operationId: listToolsetsForOrg
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListToolsetSummariesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
            summary: listToolsetsForOrg toolsets
            tags:
                - toolsets
            x-speakeasy-name-override: listForOrg
            x-speakeasy-react-hook:
                name: ListToolsetsForOrg
    /rpc/toolsets.listToolFilters:
        get:
            description: List the tool filter scopes (tags) available on a toolset-backed MCP server and the tools under each, including tools excluded from all filters. Read-only; reflects the explicit tool variations group configured on the toolset, deriving effective tags with the same logic as the runtime ?tags= filter. Returns filtering disabled when no explicit group is set.
            operationId: listToolsetToolFilters
            parameters:
                - allowEmptyValue: true
                  description: The slug of the toolset
                  in: query
                  name: slug
                  required: true
                  schema:
                    description: A short url-friendly label that uniquely identifies a resource.
                    maxLength: 40
                    pattern: ^[a-z0-9_-]{1,128}$
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListToolFiltersResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listToolFilters toolsets
            tags:
                - toolsets
            x-speakeasy-name-override: listToolFilters
            x-speakeasy-react-hook:
                name: ListToolsetToolFilters
    /rpc/toolsets.listToolSchemaStaticValues:
        get:
            description: 'List every const, default, enum, example, and examples value in each tool input schema. The result is deliberately mechanical: clients decide how to present or interpret the values. This supports reviewing the exact schema contents before changing how a toolset is shared.'
            operationId: listToolsetToolSchemaStaticValues
            parameters:
                - allowEmptyValue: true
                  description: The slug of the toolset
                  in: query
                  name: slug
                  required: true
                  schema:
                    description: A short url-friendly label that uniquely identifies a resource.
                    maxLength: 40
                    pattern: ^[a-z0-9_-]{1,128}$
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListToolSchemaStaticValuesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listToolSchemaStaticValues toolsets
            tags:
                - toolsets
            x-speakeasy-name-override: listToolSchemaStaticValues
            x-speakeasy-react-hook:
                name: ListToolSchemaStaticValues
    /rpc/toolsets.removeOAuthServer:
        post:
            description: Remove OAuth server association from a toolset
            operationId: removeOAuthServer
            parameters:
                - allowEmptyValue: true
                  description: The slug of the toolset
                  in: query
                  name: slug
                  required: true
                  schema:
                    description: A short url-friendly label that uniquely identifies a resource.
                    maxLength: 40
                    pattern: ^[a-z0-9_-]{1,128}$
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Toolset'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: removeOAuthServer toolsets
            tags:
                - toolsets
            x-speakeasy-name-override: removeOAuthServer
            x-speakeasy-react-hook:
                name: RemoveOAuthServer
    /rpc/toolsets.setToolVariationsGroup:
        post:
            description: Assign a tool variations group to a toolset to enable MCP tool filtering (or pass null to disable). The group must already exist in the caller's project.
            operationId: setToolsetToolVariationsGroup
            parameters:
                - allowEmptyValue: true
                  description: The slug of the toolset to configure
                  in: query
                  name: slug
                  required: true
                  schema:
                    description: A short url-friendly label that uniquely identifies a resource.
                    maxLength: 40
                    pattern: ^[a-z0-9_-]{1,128}$
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetToolVariationsGroupRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Toolset'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: setToolVariationsGroup toolsets
            tags:
                - toolsets
            x-speakeasy-name-override: setToolVariationsGroup
            x-speakeasy-react-hook:
                name: SetToolsetToolVariationsGroup
    /rpc/toolsets.setUserSessionIssuer:
        post:
            deprecated: true
            description: |-
                Link a toolset to a user_session_issuer (or pass null to unlink). The user_session_issuer must already exist in the caller's project.

                Deprecated: use mcpServers.update with user_session_issuer_id, or clear_user_session_issuer to unlink. This endpoint will be removed on 2026-11-25.
            operationId: setToolsetUserSessionIssuer
            parameters:
                - allowEmptyValue: true
                  description: The slug of the toolset to link
                  in: query
                  name: slug
                  required: true
                  schema:
                    description: A short url-friendly label that uniquely identifies a resource.
                    maxLength: 40
                    pattern: ^[a-z0-9_-]{1,128}$
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetUserSessionIssuerRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Toolset'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: setUserSessionIssuer toolsets
            tags:
                - toolsets
            x-speakeasy-name-override: setUserSessionIssuer
            x-speakeasy-react-hook:
                name: SetToolsetUserSessionIssuer
    /rpc/toolsets.update:
        post:
            description: Update a toolset's properties including name, description, and HTTP tools
            operationId: updateToolset
            parameters:
                - allowEmptyValue: true
                  description: The slug of the toolset to update
                  in: query
                  name: slug
                  required: true
                  schema:
                    description: A short url-friendly label that uniquely identifies a resource.
                    maxLength: 40
                    pattern: ^[a-z0-9_-]{1,128}$
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateToolsetRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Toolset'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: updateToolset toolsets
            tags:
                - toolsets
            x-speakeasy-name-override: updateBySlug
            x-speakeasy-react-hook:
                name: UpdateToolset
    /rpc/toolsets.updateExternalOAuthServer:
        post:
            description: Change an attached external OAuth server between provider-hosted and Speakeasy-hosted authorization-server metadata without replacing the server, registrations, tokens, or toolset association
            operationId: updateExternalOAuthServer
            parameters:
                - allowEmptyValue: true
                  description: The slug of the toolset whose attached external OAuth server is updated
                  in: query
                  name: slug
                  required: true
                  schema:
                    description: A short url-friendly label that uniquely identifies a resource.
                    maxLength: 40
                    pattern: ^[a-z0-9_-]{1,128}$
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateExternalOAuthServerRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Toolset'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: updateExternalOAuthServer toolsets
            tags:
                - toolsets
            x-speakeasy-name-override: updateExternalOAuthServer
            x-speakeasy-react-hook:
                name: UpdateExternalOAuthServer
    /rpc/triggers.create:
        post:
            description: Create a trigger instance.
            operationId: createTriggerInstance
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateTriggerInstanceForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/TriggerInstance'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: createTriggerInstance triggers
            tags:
                - triggers
            x-speakeasy-name-override: create
            x-speakeasy-react-hook:
                name: CreateTrigger
    /rpc/triggers.delete:
        delete:
            description: Delete a trigger instance.
            operationId: deleteTriggerInstance
            parameters:
                - allowEmptyValue: true
                  description: The trigger instance ID.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The trigger instance ID.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: deleteTriggerInstance triggers
            tags:
                - triggers
            x-speakeasy-name-override: delete
            x-speakeasy-react-hook:
                name: DeleteTrigger
    /rpc/triggers.get:
        get:
            description: Get a trigger instance by ID.
            operationId: getTriggerInstance
            parameters:
                - allowEmptyValue: true
                  description: The trigger instance ID.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The trigger instance ID.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/TriggerInstance'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getTriggerInstance triggers
            tags:
                - triggers
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: Trigger
    /rpc/triggers.list:
        get:
            description: List trigger instances for the current project.
            operationId: listTriggerInstances
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListTriggerInstancesResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listTriggerInstances triggers
            tags:
                - triggers
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: Triggers
    /rpc/triggers.listDefinitions:
        get:
            description: List static trigger definitions available to a project.
            operationId: listTriggerDefinitions
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListTriggerDefinitionsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listTriggerDefinitions triggers
            tags:
                - triggers
            x-speakeasy-name-override: listDefinitions
            x-speakeasy-react-hook:
                name: TriggerDefinitions
    /rpc/triggers.listEvents:
        get:
            description: List recent dispatch events for a trigger instance.
            operationId: listTriggerEvents
            parameters:
                - allowEmptyValue: true
                  description: The trigger instance ID.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The trigger instance ID.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Maximum number of events to return.
                  in: query
                  name: limit
                  schema:
                    default: 50
                    description: Maximum number of events to return.
                    format: int64
                    maximum: 200
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListTriggerEventsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listTriggerEvents triggers
            tags:
                - triggers
            x-speakeasy-name-override: listEvents
            x-speakeasy-react-hook:
                name: TriggerEvents
    /rpc/triggers.pause:
        post:
            description: Pause a trigger instance.
            operationId: pauseTriggerInstance
            parameters:
                - allowEmptyValue: true
                  description: The trigger instance ID.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The trigger instance ID.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/TriggerInstance'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: pauseTriggerInstance triggers
            tags:
                - triggers
            x-speakeasy-name-override: pause
            x-speakeasy-react-hook:
                name: PauseTrigger
    /rpc/triggers.resume:
        post:
            description: Resume a trigger instance.
            operationId: resumeTriggerInstance
            parameters:
                - allowEmptyValue: true
                  description: The trigger instance ID.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The trigger instance ID.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/TriggerInstance'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: resumeTriggerInstance triggers
            tags:
                - triggers
            x-speakeasy-name-override: resume
            x-speakeasy-react-hook:
                name: ResumeTrigger
    /rpc/triggers.update:
        post:
            description: Update a trigger instance.
            operationId: updateTriggerInstance
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateTriggerInstanceForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/TriggerInstance'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: updateTriggerInstance triggers
            tags:
                - triggers
            x-speakeasy-name-override: update
            x-speakeasy-react-hook:
                name: UpdateTrigger
    /rpc/tunneledMcp.createServer:
        post:
            description: Create a new tunneled MCP server source. Returns the tunnel key once.
            operationId: createTunneledMcpServer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateTunneledMcpServerForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CreateTunneledMcpServerResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: createServer tunneledMcp
            tags:
                - tunneledMcp
            x-speakeasy-name-override: createServer
            x-speakeasy-react-hook:
                name: CreateTunneledMcpServer
    /rpc/tunneledMcp.deleteServer:
        delete:
            description: Delete a tunneled MCP server source
            operationId: deleteTunneledMcpServer
            parameters:
                - allowEmptyValue: true
                  description: The ID of the tunneled MCP server to delete
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the tunneled MCP server to delete
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: deleteServer tunneledMcp
            tags:
                - tunneledMcp
            x-speakeasy-name-override: deleteServer
            x-speakeasy-react-hook:
                name: DeleteTunneledMcpServer
    /rpc/tunneledMcp.getServer:
        get:
            description: Get a tunneled MCP server by ID
            operationId: getTunneledMcpServer
            parameters:
                - allowEmptyValue: true
                  description: The ID of the tunneled MCP server
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the tunneled MCP server
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/TunneledMcpServer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: getServer tunneledMcp
            tags:
                - tunneledMcp
            x-speakeasy-name-override: getServer
            x-speakeasy-react-hook:
                name: GetTunneledMcpServer
    /rpc/tunneledMcp.getServerMetrics:
        get:
            description: Read seven-day payload-free tunnel activity aggregates
            operationId: getTunneledMcpServerMetrics
            parameters:
                - allowEmptyValue: true
                  in: query
                  name: id
                  required: true
                  schema:
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  in: query
                  name: window
                  schema:
                    default: day
                    enum:
                        - hour
                        - day
                        - week
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/TunnelMetrics'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: getServerMetrics tunneledMcp
            tags:
                - tunneledMcp
            x-speakeasy-name-override: getServerMetrics
            x-speakeasy-react-hook:
                name: GetTunneledMcpServerMetrics
    /rpc/tunneledMcp.listServerConnections:
        get:
            description: List live tunnel connections for a tunneled MCP server
            operationId: listTunneledMcpServerConnections
            parameters:
                - allowEmptyValue: true
                  description: The ID of the tunneled MCP server
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the tunneled MCP server
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/TunneledMcpServerConnections'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listServerConnections tunneledMcp
            tags:
                - tunneledMcp
            x-speakeasy-name-override: listServerConnections
            x-speakeasy-react-hook:
                name: ListTunneledMcpServerConnections
    /rpc/tunneledMcp.listServers:
        get:
            description: List all tunneled MCP server sources for a project
            operationId: listTunneledMcpServers
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListTunneledMcpServersResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listServers tunneledMcp
            tags:
                - tunneledMcp
            x-speakeasy-name-override: listServers
            x-speakeasy-react-hook:
                name: TunneledMcpServers
    /rpc/tunneledMcp.rotateServerKey:
        post:
            description: Rotate a tunneled MCP server source key. Returns the new tunnel key once.
            operationId: rotateTunneledMcpServerKey
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RotateTunneledMcpServerKeyForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RotateTunneledMcpServerKeyResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: rotateServerKey tunneledMcp
            tags:
                - tunneledMcp
            x-speakeasy-name-override: rotateServerKey
            x-speakeasy-react-hook:
                name: RotateTunneledMcpServerKey
    /rpc/tunneledMcp.updateServer:
        post:
            description: Update a tunneled MCP server source
            operationId: updateTunneledMcpServer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateTunneledMcpServerForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/TunneledMcpServer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: updateServer tunneledMcp
            tags:
                - tunneledMcp
            x-speakeasy-name-override: updateServer
            x-speakeasy-react-hook:
                name: UpdateTunneledMcpServer
    /rpc/unproxiedMcp.createServer:
        post:
            description: Create a new unproxied MCP server. Restricted to callers whose email is on the speakeasy.com or speakeasyapi.dev domain.
            operationId: createUnproxiedMcpServer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateUnproxiedMcpServerForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UnproxiedMcpServer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: createServer unproxiedMcp
            tags:
                - unproxiedMcp
            x-speakeasy-name-override: createServer
            x-speakeasy-react-hook:
                name: CreateUnproxiedMcpServer
    /rpc/unproxiedMcp.deleteServer:
        delete:
            description: Delete an unproxied MCP server
            operationId: deleteUnproxiedMcpServer
            parameters:
                - allowEmptyValue: true
                  description: The ID of the unproxied MCP server to delete
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The ID of the unproxied MCP server to delete
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: deleteServer unproxiedMcp
            tags:
                - unproxiedMcp
            x-speakeasy-name-override: deleteServer
            x-speakeasy-react-hook:
                name: DeleteUnproxiedMcpServer
    /rpc/unproxiedMcp.getServer:
        get:
            description: Get an unproxied MCP server by ID or slug. Exactly one of id or slug must be provided.
            operationId: getUnproxiedMcpServer
            parameters:
                - allowEmptyValue: true
                  description: The ID of the unproxied MCP server. Mutually exclusive with slug.
                  in: query
                  name: id
                  schema:
                    description: The ID of the unproxied MCP server. Mutually exclusive with slug.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: The slug of the unproxied MCP server. Mutually exclusive with id.
                  in: query
                  name: slug
                  schema:
                    description: The slug of the unproxied MCP server. Mutually exclusive with id.
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UnproxiedMcpServer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: getServer unproxiedMcp
            tags:
                - unproxiedMcp
            x-speakeasy-name-override: getServer
            x-speakeasy-react-hook:
                name: GetUnproxiedMcpServer
    /rpc/unproxiedMcp.listServers:
        get:
            description: List all unproxied MCP servers for a project
            operationId: listUnproxiedMcpServers
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListUnproxiedMcpServersResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listServers unproxiedMcp
            tags:
                - unproxiedMcp
            x-speakeasy-name-override: listServers
            x-speakeasy-react-hook:
                name: UnproxiedMcpServers
    /rpc/usage.cancelStripeSubscription:
        post:
            description: Schedule the organization's Stripe PAYG subscription to cancel at the end of its current period
            operationId: cancelStripeSubscription
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/StripeSubscription'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: cancelStripeSubscription usage
            tags:
                - usage
            x-speakeasy-name-override: cancelStripeSubscription
            x-speakeasy-react-hook:
                name: cancelStripeSubscription
    /rpc/usage.createCheckout:
        post:
            description: Create a checkout link for upgrading to the business plan
            operationId: createCheckout
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                type: string
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: createCheckout usage
            tags:
                - usage
            x-speakeasy-name-override: createCheckout
            x-speakeasy-react-hook:
                name: createCheckout
    /rpc/usage.createCustomerSession:
        post:
            description: Create a customer session for the user
            operationId: createCustomerSession
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                type: string
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: createCustomerSession usage
            tags:
                - usage
            x-speakeasy-name-override: createCustomerSession
            x-speakeasy-react-hook:
                name: createCustomerSession
    /rpc/usage.createStripeCheckout:
        post:
            description: Create an embedded Stripe Checkout session for starting PAYG billing
            operationId: createStripeCheckout
            parameters:
                - allowEmptyValue: true
                  description: Appearance for new embedded Checkout sessions; existing sessions retain their original theme.
                  in: query
                  name: theme
                  schema:
                    default: light
                    description: Appearance for new embedded Checkout sessions; existing sessions retain their original theme.
                    enum:
                        - light
                        - dark
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/StripeEmbeddedCheckout'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: createStripeCheckout usage
            tags:
                - usage
            x-speakeasy-name-override: createStripeCheckout
            x-speakeasy-react-hook:
                name: createStripeCheckout
    /rpc/usage.createStripePortalSession:
        post:
            description: Create a Stripe customer portal session for the organization's PAYG subscription
            operationId: createStripePortalSession
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                type: string
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: createStripePortalSession usage
            tags:
                - usage
            x-speakeasy-name-override: createStripePortalSession
            x-speakeasy-react-hook:
                name: createStripePortalSession
    /rpc/usage.createTopUpCheckout:
        post:
            description: Create a checkout link for a one-time credit top-up purchase
            operationId: createTopUpCheckout
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                type: string
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: createTopUpCheckout usage
            tags:
                - usage
            x-speakeasy-name-override: createTopUpCheckout
            x-speakeasy-react-hook:
                name: createTopUpCheckout
    /rpc/usage.getBillingEmail:
        get:
            description: Get the billing notification email for a PAYG organization
            operationId: getBillingEmail
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/BillingEmail'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getBillingEmail usage
            tags:
                - usage
            x-speakeasy-name-override: getBillingEmail
            x-speakeasy-react-hook:
                name: getBillingEmail
    /rpc/usage.getInferenceSpendCaps:
        get:
            description: List current usage and caps for the organization's materialized platform-managed inference keys
            operationId: getInferenceSpendCaps
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                items:
                                    $ref: '#/components/schemas/InferenceSpendCap'
                                type: array
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getInferenceSpendCaps usage
            tags:
                - usage
            x-speakeasy-name-override: getInferenceSpendCaps
            x-speakeasy-react-hook:
                name: getInferenceSpendCaps
    /rpc/usage.getMeterUsage:
        get:
            description: Get incrementally aggregated ordinary meter usage by UTC day over a maximum of three calendar months. Duplicate deliveries count unless prevented by the producer.
            operationId: getMeterUsage
            parameters:
                - allowEmptyValue: true
                  in: query
                  name: family
                  required: true
                  schema:
                    enum:
                        - agent_session_storage
                        - mcp_bandwidth
                        - risk_content_scans
                    type: string
                - allowEmptyValue: true
                  description: Inclusive UTC midnight reporting boundary. Must be paired with to.
                  in: query
                  name: from
                  schema:
                    description: Inclusive UTC midnight reporting boundary. Must be paired with to.
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: Exclusive UTC midnight reporting boundary. Must be paired with from and no later than three calendar months after from, clamped to the target month's last day.
                  in: query
                  name: to
                  schema:
                    description: Exclusive UTC midnight reporting boundary. Must be paired with from and no later than three calendar months after from, clamped to the target month's last day.
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: Family-compatible reporting facet
                  in: query
                  name: breakdown
                  schema:
                    description: Family-compatible reporting facet
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/MeterUsageResponse'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getMeterUsage usage
            tags:
                - usage
            x-speakeasy-name-override: getMeterUsage
            x-speakeasy-react-hook:
                name: getMeterUsage
    /rpc/usage.getPaygBillingSummary:
        get:
            description: Get exact billable usage and estimated cost for the organization's live paid Stripe service period
            operationId: getPaygBillingSummary
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/PaygBillingSummary'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getPaygBillingSummary usage
            tags:
                - usage
            x-speakeasy-name-override: getPaygBillingSummary
            x-speakeasy-react-hook:
                name: getPaygBillingSummary
    /rpc/usage.getPeriodUsage:
        get:
            description: Get the usage for an organization for a given period
            operationId: getPeriodUsage
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/PeriodUsage'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getPeriodUsage usage
            tags:
                - usage
            x-speakeasy-name-override: getPeriodUsage
            x-speakeasy-react-hook:
                name: getPeriodUsage
    /rpc/usage.getSpendBreakdown:
        get:
            description: 'Report spend availability and estimate PAYG organizations'' three metered products at current list prices over a maximum of three calendar months. Other plans return unsupported_plan, empty products, and a zero total without calculating estimates. This is not an actual bill: ordinary summaries count duplicate deliveries unless prevented by the producer and exclude adjustment readings.'
            operationId: getSpendBreakdown
            parameters:
                - allowEmptyValue: true
                  description: Inclusive UTC midnight reporting boundary. Must be paired with to.
                  in: query
                  name: from
                  schema:
                    description: Inclusive UTC midnight reporting boundary. Must be paired with to.
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: Exclusive UTC midnight reporting boundary. Must be paired with from and no later than three calendar months after from, clamped to the target month's last day.
                  in: query
                  name: to
                  schema:
                    description: Exclusive UTC midnight reporting boundary. Must be paired with from and no later than three calendar months after from, clamped to the target month's last day.
                    format: date-time
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SpendBreakdownResponse'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getSpendBreakdown usage
            tags:
                - usage
            x-speakeasy-name-override: getSpendBreakdown
            x-speakeasy-react-hook:
                name: getSpendBreakdown
    /rpc/usage.getStripeCheckoutStatus:
        get:
            description: Read the current status of a Stripe Checkout session owned by the active organization
            operationId: getStripeCheckoutStatus
            parameters:
                - allowEmptyValue: true
                  description: Stripe Checkout session identifier
                  in: query
                  name: session_id
                  required: true
                  schema:
                    description: Stripe Checkout session identifier
                    maxLength: 255
                    pattern: ^cs_[A-Za-z0-9_]+$
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetStripeCheckoutStatusResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getStripeCheckoutStatus usage
            tags:
                - usage
            x-speakeasy-name-override: getStripeCheckoutStatus
            x-speakeasy-react-hook:
                name: getStripeCheckoutStatus
    /rpc/usage.getStripeSubscription:
        get:
            description: Get the live lifecycle state of the organization's Stripe PAYG subscription
            operationId: getStripeSubscription
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/StripeSubscription'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getStripeSubscription usage
            tags:
                - usage
            x-speakeasy-name-override: getStripeSubscription
            x-speakeasy-react-hook:
                name: getStripeSubscription
    /rpc/usage.getTokensUnderManagement:
        get:
            description: Get tokens under management for the active billing cycle alongside the contracted terms
            operationId: getTokensUnderManagement
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/TokensUnderManagement'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: getTokensUnderManagement usage
            tags:
                - usage
            x-speakeasy-name-override: getTokensUnderManagement
            x-speakeasy-react-hook:
                name: getTokensUnderManagement
    /rpc/usage.getUsageTiers:
        get:
            description: Get the usage tiers
            operationId: getUsageTiers
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UsageTiers'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            summary: getUsageTiers usage
            tags:
                - usage
            x-speakeasy-name-override: getUsageTiers
            x-speakeasy-react-hook:
                name: getUsageTiers
    /rpc/usage.resumeStripeSubscription:
        post:
            description: Remove a scheduled end-of-period cancellation from the organization's Stripe PAYG subscription
            operationId: resumeStripeSubscription
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/StripeSubscription'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: resumeStripeSubscription usage
            tags:
                - usage
            x-speakeasy-name-override: resumeStripeSubscription
            x-speakeasy-react-hook:
                name: resumeStripeSubscription
    /rpc/usage.setBillingEmail:
        post:
            description: Set or clear the billing notification email for a PAYG organization
            operationId: setBillingEmail
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/BillingEmail'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/BillingEmail'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: setBillingEmail usage
            tags:
                - usage
            x-speakeasy-name-override: setBillingEmail
            x-speakeasy-react-hook:
                name: setBillingEmail
    /rpc/usage.setBillingMetadata:
        post:
            description: Set an organization's billing contract terms. Restricted to platform admins.
            operationId: setBillingMetadata
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetBillingMetadataRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/TokensUnderManagement'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: setBillingMetadata usage
            tags:
                - usage
            x-speakeasy-name-override: setBillingMetadata
            x-speakeasy-react-hook:
                name: setBillingMetadata
    /rpc/usage.setSpendCap:
        post:
            description: Set the monthly spend cap for one of a PAYG organization's platform-managed inference keys
            operationId: setSpendCap
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetSpendCapRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SpendCap'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
            summary: setSpendCap usage
            tags:
                - usage
            x-speakeasy-name-override: setSpendCap
            x-speakeasy-react-hook:
                name: setSpendCap
    /rpc/userSessionClients.get:
        get:
            description: Get a user_session_client by id.
            operationId: getUserSessionClient
            parameters:
                - allowEmptyValue: true
                  description: The user_session_client id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The user_session_client id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UserSessionClient'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: getUserSessionClient userSessionClients
            tags:
                - userSessionClients
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: UserSessionClient
    /rpc/userSessionClients.list:
        get:
            description: List user_session_clients in the caller's project.
            operationId: listUserSessionClients
            parameters:
                - allowEmptyValue: true
                  description: Filter to clients registered with this issuer.
                  in: query
                  name: user_session_issuer_id
                  schema:
                    description: Filter to clients registered with this issuer.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: 'Pagination cursor: id of the last item from the previous page.'
                  in: query
                  name: cursor
                  schema:
                    description: 'Pagination cursor: id of the last item from the previous page.'
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Page size (default 50, max 100).
                  in: query
                  name: limit
                  schema:
                    description: Page size (default 50, max 100).
                    format: int64
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListUserSessionClientsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listUserSessionClients userSessionClients
            tags:
                - userSessionClients
            x-speakeasy-name-override: list
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: UserSessionClients
    /rpc/userSessionClients.refreshCIMD:
        post:
            description: 'Force a CIMD client''s metadata document to be re-read. Purges the stored cache state (expiry + ETag) before re-fetching, so the read is unconditional: a host answering 304 Not Modified cannot re-confirm the copy the operator is discarding. Rejected for DCR clients. Deliberately bypasses the document cache, so it carries a per-client cooldown: a refresh shortly after the last successful read returns rate_limit_exceeded.'
            operationId: refreshUserSessionClientCIMD
            parameters:
                - allowEmptyValue: true
                  description: The user_session_client id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The user_session_client id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UserSessionClient'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: refreshUserSessionClientCIMD userSessionClients
            tags:
                - userSessionClients
            x-speakeasy-name-override: refreshCIMD
            x-speakeasy-react-hook:
                name: RefreshUserSessionClientCIMD
    /rpc/userSessionClients.revoke:
        post:
            description: 'Soft-delete a user_session_client and cascade to the user_sessions it issued. A DCR client stays revoked. A CIMD client does not: its identity is the metadata document URL, so the next /authorize re-resolves that document and registers a fresh row. Durably blocking a CIMD client is admission control''s job, not revocation''s.'
            operationId: revokeUserSessionClient
            parameters:
                - allowEmptyValue: true
                  description: The user_session_client id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The user_session_client id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: revokeUserSessionClient userSessionClients
            tags:
                - userSessionClients
            x-speakeasy-name-override: revoke
            x-speakeasy-react-hook:
                name: RevokeUserSessionClient
    /rpc/userSessionConsents.list:
        get:
            description: List consent records for the caller's project.
            operationId: listUserSessionConsents
            parameters:
                - allowEmptyValue: true
                  description: Filter by subject URN.
                  in: query
                  name: subject_urn
                  schema:
                    description: Filter by subject URN.
                    type: string
                - allowEmptyValue: true
                  description: Filter by user_session_client id.
                  in: query
                  name: user_session_client_id
                  schema:
                    description: Filter by user_session_client id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Filter by user_session_issuer id (joins through user_session_clients).
                  in: query
                  name: user_session_issuer_id
                  schema:
                    description: Filter by user_session_issuer id (joins through user_session_clients).
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: 'Pagination cursor: id of the last item from the previous page.'
                  in: query
                  name: cursor
                  schema:
                    description: 'Pagination cursor: id of the last item from the previous page.'
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Page size (default 50, max 100).
                  in: query
                  name: limit
                  schema:
                    description: Page size (default 50, max 100).
                    format: int64
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListUserSessionConsentsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listUserSessionConsents userSessionConsents
            tags:
                - userSessionConsents
            x-speakeasy-name-override: list
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: UserSessionConsents
    /rpc/userSessionConsents.revoke:
        post:
            description: Withdraw consent. Subsequent authorization requests for matching (subject, user_session_client) pairs re-prompt.
            operationId: revokeUserSessionConsent
            parameters:
                - allowEmptyValue: true
                  description: The user_session_consent id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The user_session_consent id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: revokeUserSessionConsent userSessionConsents
            tags:
                - userSessionConsents
            x-speakeasy-name-override: revoke
            x-speakeasy-react-hook:
                name: RevokeUserSessionConsent
    /rpc/userSessionIssuers.create:
        post:
            description: Create a new user_session_issuer.
            operationId: createUserSessionIssuer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateUserSessionIssuerForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UserSessionIssuer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: createUserSessionIssuer userSessionIssuers
            tags:
                - userSessionIssuers
            x-speakeasy-name-override: create
            x-speakeasy-react-hook:
                name: CreateUserSessionIssuer
    /rpc/userSessionIssuers.delete:
        delete:
            description: Soft-delete a user_session_issuer. Cascades to dependent user_sessions, user_session_consents, and remote_session_clients.
            operationId: deleteUserSessionIssuer
            parameters:
                - allowEmptyValue: true
                  description: The user_session_issuer id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The user_session_issuer id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: deleteUserSessionIssuer userSessionIssuers
            tags:
                - userSessionIssuers
            x-speakeasy-name-override: delete
            x-speakeasy-react-hook:
                name: DeleteUserSessionIssuer
    /rpc/userSessionIssuers.get:
        get:
            description: Get a user_session_issuer by id or by slug. Provide exactly one.
            operationId: getUserSessionIssuer
            parameters:
                - allowEmptyValue: true
                  description: The user_session_issuer id.
                  in: query
                  name: id
                  schema:
                    description: The user_session_issuer id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: The user_session_issuer slug.
                  in: query
                  name: slug
                  schema:
                    description: The user_session_issuer slug.
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UserSessionIssuer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: getUserSessionIssuer userSessionIssuers
            tags:
                - userSessionIssuers
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: UserSessionIssuer
    /rpc/userSessionIssuers.getAttachImpact:
        get:
            description: 'Preview what attaching a user_session_issuer to an existing MCP server, toolset, or meta MCP server changes for its clients, before calling the matching update. Name exactly one of mcp_server_id, toolset_id, or meta_mcp_server_id; omit user_session_issuer_id to preview detaching the current issuer. Clients and sessions belong to an issuer, so any change of issuer requires the server''s clients to authorize again. Advisory only: the update does not require it. Requires the mcp:write access the matching update requires.'
            operationId: getUserSessionIssuerAttachImpact
            parameters:
                - allowEmptyValue: true
                  description: The MCP server the issuer would be attached to.
                  in: query
                  name: mcp_server_id
                  schema:
                    description: The MCP server the issuer would be attached to.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: The toolset the issuer would be attached to.
                  in: query
                  name: toolset_id
                  schema:
                    description: The toolset the issuer would be attached to.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: The meta MCP server the issuer would be attached to.
                  in: query
                  name: meta_mcp_server_id
                  schema:
                    description: The meta MCP server the issuer would be attached to.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: The issuer to attach. Omit to preview detaching the current issuer.
                  in: query
                  name: user_session_issuer_id
                  schema:
                    description: The issuer to attach. Omit to preview detaching the current issuer.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UserSessionIssuerAttachImpact'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: getAttachImpact userSessionIssuers
            tags:
                - userSessionIssuers
            x-speakeasy-name-override: getAttachImpact
            x-speakeasy-react-hook:
                name: UserSessionIssuerAttachImpact
    /rpc/userSessionIssuers.list:
        get:
            description: List user_session_issuers in the caller's project.
            operationId: listUserSessionIssuers
            parameters:
                - allowEmptyValue: true
                  description: 'Pagination cursor: id of the last item from the previous page.'
                  in: query
                  name: cursor
                  schema:
                    description: 'Pagination cursor: id of the last item from the previous page.'
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Page size (default 50, max 100).
                  in: query
                  name: limit
                  schema:
                    description: Page size (default 50, max 100).
                    format: int64
                    type: integer
                - allowEmptyValue: true
                  description: Optional MCP server or toolset resource ID used to authorize callers with resource-scoped mcp:write access. The resource must belong to the selected project.
                  in: query
                  name: mcp_resource_id
                  schema:
                    description: Optional MCP server or toolset resource ID used to authorize callers with resource-scoped mcp:write access. The resource must belong to the selected project.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListUserSessionIssuersResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listUserSessionIssuers userSessionIssuers
            tags:
                - userSessionIssuers
            x-speakeasy-name-override: list
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: UserSessionIssuers
    /rpc/userSessionIssuers.update:
        post:
            description: Update fields on an existing user_session_issuer.
            operationId: updateUserSessionIssuer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateUserSessionIssuerForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UserSessionIssuer'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: updateUserSessionIssuer userSessionIssuers
            tags:
                - userSessionIssuers
            x-speakeasy-name-override: update
            x-speakeasy-react-hook:
                name: UpdateUserSessionIssuer
    /rpc/userSessionIssuersCimdClients.create:
        post:
            description: 'Allow an additional CIMD document URL on a user_session_issuer, beyond the preset catalog. The URL is validated for draft-ietf-oauth-client-id-metadata-document-02 §3 syntax and rejected outright when malformed. The document itself is deliberately NOT fetched here: a vendor''s host being briefly unreachable must not block configuration, and an advisory warning nobody can act on is not worth an outbound request on every write. Call verifyURL first to check that the document is reachable and valid.'
            operationId: createUserSessionIssuerCimdClient
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateUserSessionIssuerCimdClientForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CreateUserSessionIssuerCimdClientResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: createUserSessionIssuerCimdClient userSessionIssuersCimdClients
            tags:
                - userSessionIssuersCimdClients
            x-speakeasy-name-override: create
            x-speakeasy-react-hook:
                name: CreateUserSessionIssuerCimdClient
    /rpc/userSessionIssuersCimdClients.delete:
        delete:
            description: Remove a custom CIMD document URL from a user_session_issuer. New authorization requests from that client are denied immediately; sessions already issued to it are unaffected and continue until they expire.
            operationId: deleteUserSessionIssuerCimdClient
            parameters:
                - allowEmptyValue: true
                  description: The user_session_issuer_cimd_client id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The user_session_issuer_cimd_client id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: deleteUserSessionIssuerCimdClient userSessionIssuersCimdClients
            tags:
                - userSessionIssuersCimdClients
            x-speakeasy-name-override: delete
            x-speakeasy-react-hook:
                name: DeleteUserSessionIssuerCimdClient
    /rpc/userSessionIssuersCimdClients.get:
        get:
            description: Get a single custom CIMD document URL entry by id.
            operationId: getUserSessionIssuerCimdClient
            parameters:
                - allowEmptyValue: true
                  description: The user_session_issuer_cimd_client id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The user_session_issuer_cimd_client id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UserSessionIssuerCimdClient'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: getUserSessionIssuerCimdClient userSessionIssuersCimdClients
            tags:
                - userSessionIssuersCimdClients
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: UserSessionIssuerCimdClient
    /rpc/userSessionIssuersCimdClients.list:
        get:
            description: List the custom CIMD document URLs configured on a user_session_issuer. Does not include the preset catalog — call listPresets for that.
            operationId: listUserSessionIssuerCimdClients
            parameters:
                - allowEmptyValue: true
                  description: The user_session_issuer whose custom CIMD clients are listed.
                  in: query
                  name: user_session_issuer_id
                  required: true
                  schema:
                    description: The user_session_issuer whose custom CIMD clients are listed.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: 'Pagination cursor: id of the last item from the previous page.'
                  in: query
                  name: cursor
                  schema:
                    description: 'Pagination cursor: id of the last item from the previous page.'
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Page size (default 50, max 100).
                  in: query
                  name: limit
                  schema:
                    description: Page size (default 50, max 100).
                    format: int64
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListUserSessionIssuerCimdClientsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listUserSessionIssuerCimdClients userSessionIssuersCimdClients
            tags:
                - userSessionIssuersCimdClients
            x-speakeasy-name-override: list
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: UserSessionIssuerCimdClients
    /rpc/userSessionIssuersCimdClients.listPresets:
        get:
            description: List Speakeasy's curated CIMD preset catalog. Issuers whose admission mode is 'presets' admit every enabled entry here automatically, with no per-issuer configuration. Presets mode is opt-in; an issuer without an explicit mode uses 'open' and evaluates this catalog only for its shadow measurement. The catalog is global and contains no tenant data.
            operationId: listCimdClientPresets
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListCimdClientPresetsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listPresets userSessionIssuersCimdClients
            tags:
                - userSessionIssuersCimdClients
            x-speakeasy-name-override: listPresets
            x-speakeasy-react-hook:
                name: CimdClientPresets
    /rpc/userSessionIssuersCimdClients.verifyURL:
        post:
            description: 'Check that a CIMD document URL is reachable and spec-compliant, without saving anything. A pre-flight for create: the same fetch and validation the authorization server performs, reported in full so an operator can fix the URL before adding it. Every probe outcome is a 200 with verified true or false — errors are reserved for a malformed request, missing authorization, or an exceeded rate limit. Rate limited per project, since this is the one endpoint that makes Speakeasy fetch a caller-chosen URL.'
            operationId: verifyUserSessionIssuerCimdClientURL
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/VerifyURLRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/VerifyCimdURLResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: verifyURL userSessionIssuersCimdClients
            tags:
                - userSessionIssuersCimdClients
            x-speakeasy-name-override: verifyURL
            x-speakeasy-react-hook:
                name: VerifyUserSessionIssuerCimdClientURL
    /rpc/userSessions.list:
        get:
            description: List issued user_sessions in the caller's project. refresh_token_hash is never returned.
            operationId: listUserSessions
            parameters:
                - allowEmptyValue: true
                  description: Exact-match filter on subject URN.
                  in: query
                  name: subject_urn
                  schema:
                    description: Exact-match filter on subject URN.
                    type: string
                - allowEmptyValue: true
                  description: Filter by user_session_issuer id.
                  in: query
                  name: user_session_issuer_id
                  schema:
                    description: Filter by user_session_issuer id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Filter by session status.
                  in: query
                  name: status
                  schema:
                    description: Filter by session status.
                    enum:
                        - active
                        - expired
                        - revoked
                        - all
                    type: string
                - allowEmptyValue: true
                  description: Filter by the connecting client id.
                  in: query
                  name: client_id
                  schema:
                    description: Filter by the connecting client id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: 'Pagination cursor: id of the last item from the previous page.'
                  in: query
                  name: cursor
                  schema:
                    description: 'Pagination cursor: id of the last item from the previous page.'
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Page size (default 50, max 100).
                  in: query
                  name: limit
                  schema:
                    description: Page size (default 50, max 100).
                    format: int64
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListUserSessionsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listUserSessions userSessions
            tags:
                - userSessions
            x-speakeasy-name-override: list
            x-speakeasy-pagination:
                inputs:
                    - in: parameters
                      name: cursor
                      type: cursor
                outputs:
                    nextCursor: $.next_cursor
                type: cursor
            x-speakeasy-react-hook:
                name: UserSessions
    /rpc/userSessions.listFacets:
        get:
            description: List available user session facet values (clients, users, servers) in the caller's project.
            operationId: listUserSessionFacets
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListUserSessionFacetsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listFacets userSessions
            tags:
                - userSessions
            x-speakeasy-name-override: listFacets
            x-speakeasy-react-hook:
                name: UserSessionFacets
    /rpc/userSessions.mint:
        post:
            description: 'Mint a user_session on behalf of the authenticated dashboard user, bound to an issuer-gated audience: an MCP server, a meta MCP server, or a legacy toolset without an mcp_servers wrapper. Exactly one of toolset_id, mcp_server_id, or meta_mcp_server_id must be provided. The minted JWT matches the shape /token would emit after a successful OAuth dance, so the runtime MCP gateway validates it through the same path as a real MCP client''s bearer.'
            operationId: mintUserSession
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/MintUserSessionRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/MintUserSessionResponseBody'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: mintUserSession userSessions
            tags:
                - userSessions
            x-speakeasy-name-override: mint
            x-speakeasy-react-hook:
                name: MintUserSession
    /rpc/userSessions.revoke:
        post:
            description: Push the session's jti into the revocation cache and soft-delete the row.
            operationId: revokeUserSession
            parameters:
                - allowEmptyValue: true
                  description: The user_session id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The user_session id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: revokeUserSession userSessions
            tags:
                - userSessions
            x-speakeasy-name-override: revoke
            x-speakeasy-react-hook:
                name: RevokeUserSession
    /rpc/variations.createGlobal:
        post:
            description: 'Ensure the project-default (global) tool variation group exists, returning it. Idempotent: returns the existing group unchanged when present, otherwise creates it. Takes no parameters and only manages the single project-default group.'
            operationId: createGlobalToolVariationGroup
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ToolVariationGroupResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: createGlobal variations
            tags:
                - variations
            x-speakeasy-name-override: createGlobal
            x-speakeasy-react-hook:
                name: CreateGlobalToolVariationGroup
    /rpc/variations.deleteGlobal:
        delete:
            description: Create or update a globally defined tool variation.
            operationId: deleteGlobalVariation
            parameters:
                - allowEmptyValue: true
                  description: The ID of the variation to delete
                  in: query
                  name: variation_id
                  required: true
                  schema:
                    description: The ID of the variation to delete
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DeleteGlobalToolVariationResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: deleteGlobal variations
            tags:
                - variations
            x-speakeasy-name-override: deleteGlobal
            x-speakeasy-react-hook:
                name: deleteGlobalVariation
    /rpc/variations.listGlobal:
        get:
            description: List globally defined tool variations.
            operationId: listGlobalVariations
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListVariationsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listGlobal variations
            tags:
                - variations
            x-speakeasy-name-override: listGlobal
            x-speakeasy-react-hook:
                name: GlobalVariations
    /rpc/variations.listGroups:
        get:
            description: List the tool variation groups visible to the project. In v1 this returns the project-default group when it exists, or an empty list otherwise.
            operationId: listToolVariationGroups
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListToolVariationGroupsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listGroups variations
            tags:
                - variations
            x-speakeasy-name-override: listGroups
            x-speakeasy-react-hook:
                name: ToolVariationGroups
    /rpc/variations.upsertGlobal:
        post:
            description: Create or update a globally defined tool variation.
            operationId: upsertGlobalVariation
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpsertGlobalToolVariationForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UpsertGlobalToolVariationResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: upsertGlobal variations
            tags:
                - variations
            x-speakeasy-name-override: upsertGlobal
            x-speakeasy-react-hook:
                name: UpsertGlobalVariation
    /rpc/widgets.create:
        post:
            description: Save a widget. Any member of the project can. The question is validated against the catalog, and the chart against the question, before it is stored.
            operationId: createWidget
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateWidgetRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Widget'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: createWidget widgets
            tags:
                - widgets
            x-speakeasy-name-override: create
            x-speakeasy-react-hook:
                name: CreateWidget
    /rpc/widgets.delete:
        delete:
            description: Delete a widget. Its creator can; deleting someone else's needs project write access.
            operationId: deleteWidget
            parameters:
                - allowEmptyValue: true
                  description: The widget to delete
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The widget to delete
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: deleteWidget widgets
            tags:
                - widgets
            x-speakeasy-name-override: delete
            x-speakeasy-react-hook:
                name: DeleteWidget
    /rpc/widgets.duplicate:
        post:
            description: 'Copy a widget into a new one the caller owns, named "<name> (copy)". This is how a widget is shared: a teammate duplicates it rather than editing it. Like every save, the copy is validated, so a broken widget cannot be duplicated until it is fixed.'
            operationId: duplicateWidget
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DuplicateWidgetRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Widget'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: duplicateWidget widgets
            tags:
                - widgets
            x-speakeasy-name-override: duplicate
            x-speakeasy-react-hook:
                name: DuplicateWidget
    /rpc/widgets.get:
        get:
            description: Get one widget by id, validated as it is read.
            operationId: getWidget
            parameters:
                - allowEmptyValue: true
                  description: The widget to get
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The widget to get
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Widget'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: getWidget widgets
            tags:
                - widgets
            x-speakeasy-name-override: get
            x-speakeasy-react-hook:
                name: Widget
                type: query
    /rpc/widgets.list:
        get:
            description: List the project's widgets, most recently updated first. Each is validated as it is read, so a widget a catalog change broke says so.
            operationId: listWidgets
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListWidgetsResult'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: listWidgets widgets
            tags:
                - widgets
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: Widgets
                type: query
    /rpc/widgets.update:
        post:
            description: Replace a widget's name, description, dataset, query and visualization. Its creator can; editing someone else's needs project write access.
            operationId: updateWidget
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateWidgetRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Widget'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
            summary: updateWidget widgets
            tags:
                - widgets
            x-speakeasy-name-override: update
            x-speakeasy-react-hook:
                name: UpdateWidget
    /rpc/workloadIdentities.admitSubject:
        post:
            description: 'Admit a subject one of the trusted issuers asserts, and assign the agent it inherits its policy from. Both happen in one transaction: a subject admitted without an agent is refused at the token endpoint, so that half-configured state is not reachable. Requires workload:write.'
            operationId: admitWorkloadSubject
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/AdmitWorkloadSubjectForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/WorkloadIdentityPolicy'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: admitSubject workloadIdentities
            tags:
                - workloadIdentities
            x-speakeasy-name-override: admitSubject
            x-speakeasy-react-hook:
                name: AdmitWorkloadSubject
    /rpc/workloadIdentities.createDeviceJoinToken:
        post:
            description: 'Create a single-use join token that enrolls one headless box with no platform identity as a workload assigned to an agent. The token is returned once and only its hash is kept. Only a person can create one: a key backed by a principal rather than a user is refused with 403 whatever its grants. Requires workload:write, and either owning the agent or agent:authorize on it, since an enrolled box acts under the agent''s policy.'
            operationId: createWorkloadDeviceJoinToken
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateDeviceJoinTokenRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/WorkloadDeviceJoinToken'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: createDeviceJoinToken workloadIdentities
            tags:
                - workloadIdentities
            x-speakeasy-name-override: createDeviceJoinToken
            x-speakeasy-react-hook:
                name: CreateWorkloadDeviceJoinToken
    /rpc/workloadIdentities.getCustomFlows:
        get:
            description: 'Get the forms for trusting a platform the catalog does not list and allowing its workloads: registering and editing a trusted platform, and allowing and editing access. The same for every organization. Requires workload:read.'
            operationId: getWorkloadCustomFlows
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/WorkloadCustomFlows'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: getCustomFlows workloadIdentities
            tags:
                - workloadIdentities
            x-speakeasy-name-override: getCustomFlows
            x-speakeasy-react-hook:
                name: WorkloadCustomFlows
    /rpc/workloadIdentities.list:
        get:
            description: 'Read the whole trust policy: every trusted issuer and every admitted subject at the organization tier, plus the selected project''s tier when the caller names a project, with the agent each subject resolves to. Requires workload:read.'
            operationId: listWorkloadIdentities
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/WorkloadIdentityPolicy'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: list workloadIdentities
            tags:
                - workloadIdentities
            x-speakeasy-name-override: list
            x-speakeasy-react-hook:
                name: WorkloadIdentities
    /rpc/workloadIdentities.listPlatforms:
        get:
            description: 'List the platforms the catalog offers to trust without looking anything up, each with the policy that trusting it writes: the issuer and signing keys it is recognised by, the values the operator supplies, and the access rule it produces. How the setup is explained belongs to the dashboard. The same for every organization. Requires workload:read.'
            operationId: listWorkloadPlatforms
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/WorkloadPlatformCatalog'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listPlatforms workloadIdentities
            tags:
                - workloadIdentities
            x-speakeasy-name-override: listPlatforms
            x-speakeasy-react-hook:
                name: WorkloadPlatforms
    /rpc/workloadIdentities.listTokenEndpoints:
        get:
            description: 'List the token endpoints an external platform can be pointed at: one per user session issuer in shared mode, at the organization level and in each project, with the issuer it serves. Issuers this deployment does not serve a shared authorization server for are left out. Requires workload:read.'
            operationId: listWorkloadTokenEndpoints
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/WorkloadTokenEndpoints'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: listTokenEndpoints workloadIdentities
            tags:
                - workloadIdentities
            x-speakeasy-name-override: listTokenEndpoints
            x-speakeasy-react-hook:
                name: WorkloadTokenEndpoints
    /rpc/workloadIdentities.registerDevice:
        post:
            description: 'Enroll a device with its public key, redeeming a join token. No session or API key: the single-use join token is the credential, and an unknown, expired, or already redeemed token returns 401. A key already registered to another device returns 409, and an agent whose policy no longer grants org:device_agent_sync returns a failed precondition without spending the token. In one transaction the device''s key is registered, the device is admitted under the organization''s Speakeasy device issuer, and it is assigned the token''s agent.'
            operationId: registerWorkloadDevice
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RegisterDeviceRequestBody'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/WorkloadDeviceRegistration'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            summary: registerDevice workloadIdentities
            tags:
                - workloadIdentities
            x-speakeasy-name-override: registerDevice
    /rpc/workloadIdentities.registerIssuer:
        post:
            description: Trust an external issuer to vouch for workloads. Requires workload:write. Returns the whole policy, so a caller replaces its view rather than merging into it.
            operationId: registerWorkloadIssuer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RegisterWorkloadIssuerForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/WorkloadIdentityPolicy'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: registerIssuer workloadIdentities
            tags:
                - workloadIdentities
            x-speakeasy-name-override: registerIssuer
            x-speakeasy-react-hook:
                name: RegisterWorkloadIssuer
    /rpc/workloadIdentities.updateIssuer:
        post:
            description: Edit a trusted issuer's name, description, tags, JWKS URI, or assertion reuse setting. Omitted fields are left unchanged. The issuer URL and the wildcard admission setting are fixed at registration. Requires workload:write. Returns the whole policy, so a caller replaces its view rather than merging into it.
            operationId: updateWorkloadIssuer
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateWorkloadIssuerForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/WorkloadIdentityPolicy'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: updateIssuer workloadIdentities
            tags:
                - workloadIdentities
            x-speakeasy-name-override: updateIssuer
            x-speakeasy-react-hook:
                name: UpdateWorkloadIssuer
    /rpc/workloadIdentities.updateSubject:
        post:
            description: Edit an admitted subject's label, tags, or assigned agent. Omitted fields are left unchanged. The subject, match kind, issuer, and tier are fixed at admission. The agent assignment is shared by every admission of the same subject under the same issuer, at either tier, so reassigning it through one admission reassigns it for both. Requires workload:write. Returns the whole policy, so a caller replaces its view rather than merging into it.
            operationId: updateWorkloadSubject
            parameters:
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateWorkloadSubjectForm'
                required: true
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/WorkloadIdentityPolicy'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: updateSubject workloadIdentities
            tags:
                - workloadIdentities
            x-speakeasy-name-override: updateSubject
            x-speakeasy-react-hook:
                name: UpdateWorkloadSubject
    /rpc/workloadIdentities.withdrawIssuer:
        delete:
            description: Stop trusting an issuer. Every subject admitted under it is withdrawn in the same transaction, so no admission can outlive the issuer it names. Requires workload:write.
            operationId: withdrawWorkloadIssuer
            parameters:
                - allowEmptyValue: true
                  description: The workload issuer id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The workload issuer id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/WorkloadIdentityPolicy'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: withdrawIssuer workloadIdentities
            tags:
                - workloadIdentities
            x-speakeasy-name-override: withdrawIssuer
            x-speakeasy-react-hook:
                name: WithdrawWorkloadIssuer
    /rpc/workloadIdentities.withdrawSubject:
        delete:
            description: Withdraw an admitted subject and its agent assignment, stopping it authenticating. A subject can be admitted at the organization and in a project independently; withdrawing one leaves the other in force, and the result names the tier removed. Requires workload:write.
            operationId: withdrawWorkloadSubject
            parameters:
                - allowEmptyValue: true
                  description: The admission id.
                  in: query
                  name: id
                  required: true
                  schema:
                    description: The admission id.
                    format: uuid
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/WithdrawnWorkloadSubjectPolicy'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: withdrawSubject workloadIdentities
            tags:
                - workloadIdentities
            x-speakeasy-name-override: withdrawSubject
            x-speakeasy-react-hook:
                name: WithdrawWorkloadSubject
    /v0.1/servers:
        get:
            operationId: discoverServers
            parameters:
                - allowEmptyValue: true
                  in: query
                  name: include_deleted
                  schema:
                    default: false
                    type: boolean
                - allowEmptyValue: true
                  description: 'Unsupported: any supplied value returns 400'
                  in: query
                  name: updated_since
                  schema:
                    description: 'Unsupported: any supplied value returns 400'
                    type: string
                - allowEmptyValue: true
                  description: Search query; at most 1024 UTF-8 bytes, enforced by the server (not a character count).
                  in: query
                  name: search
                  schema:
                    description: Search query; at most 1024 UTF-8 bytes, enforced by the server (not a character count).
                    type: string
                - allowEmptyValue: true
                  description: Version filter; at most 1024 UTF-8 bytes, enforced by the server (not a character count).
                  in: query
                  name: version
                  schema:
                    description: Version filter; at most 1024 UTF-8 bytes, enforced by the server (not a character count).
                    type: string
                - allowEmptyValue: true
                  in: query
                  name: cursor
                  schema:
                    maxLength: 8192
                    type: string
                - allowEmptyValue: true
                  in: query
                  name: limit
                  schema:
                    default: 25
                    format: int32
                    maximum: 100
                    minimum: 1
                    type: integer
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RegistryDiscoveryPage'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RegistryDiscoverydiscoverServersResponseBody'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RegistryDiscoverydiscoverServersResponseBody'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: discoverServers registryDiscovery
            tags:
                - registryDiscovery
            x-speakeasy-name-override: discoverServers
    /v0.1/servers/{serverName}/versions:
        get:
            operationId: discoverVersions
            parameters:
                - allowEmptyValue: true
                  in: query
                  name: include_deleted
                  schema:
                    default: false
                    type: boolean
                - allowEmptyValue: true
                  description: 'Unsupported: any supplied value returns 400'
                  in: query
                  name: updated_since
                  schema:
                    description: 'Unsupported: any supplied value returns 400'
                    type: string
                - in: path
                  name: serverName
                  required: true
                  schema:
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RegistryDiscoveryPage'
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RegistryDiscoverydiscoverServersResponseBody'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RegistryDiscoverydiscoverServersResponseBody'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: discoverVersions registryDiscovery
            tags:
                - registryDiscovery
            x-speakeasy-name-override: discoverVersions
    /v0.1/servers/{serverName}/versions/{version}:
        get:
            operationId: discoverVersion
            parameters:
                - allowEmptyValue: true
                  in: query
                  name: include_deleted
                  schema:
                    default: false
                    type: boolean
                - allowEmptyValue: true
                  description: 'Unsupported: any supplied value returns 400'
                  in: query
                  name: updated_since
                  schema:
                    description: 'Unsupported: any supplied value returns 400'
                    type: string
                - in: path
                  name: serverName
                  required: true
                  schema:
                    type: string
                - in: path
                  name: version
                  required: true
                  schema:
                    type: string
                - allowEmptyValue: true
                  description: Session header
                  in: header
                  name: Gram-Session
                  schema:
                    description: Session header
                    type: string
                - allowEmptyValue: true
                  description: API Key header
                  in: header
                  name: Gram-Key
                  schema:
                    description: API Key header
                    type: string
                - allowEmptyValue: true
                  description: project header
                  in: header
                  name: Gram-Project
                  schema:
                    description: project header
                    type: string
            responses:
                "200":
                    content:
                        application/json:
                            schema: {}
                    description: OK response.
                "400":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RegistryDiscoverydiscoverServersResponseBody'
                    description: 'bad_request: request is invalid'
                "401":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unauthorized: unauthorized access'
                "403":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'forbidden: permission denied'
                "404":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RegistryDiscoverydiscoverServersResponseBody'
                    description: 'not_found: resource not found'
                "409":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'conflict: resource already exists'
                "415":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unsupported_media: unsupported media type'
                "422":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'invalid: request contains one or more invalidation fields'
                "500":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'unexpected: an unexpected error occurred'
                "502":
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                    description: 'gateway_error: an unexpected error occurred'
            security:
                - project_slug_header_Gram-Project: []
                  session_header_Gram-Session: []
                - apikey_header_Gram-Key: []
                  project_slug_header_Gram-Project: []
            summary: discoverVersion registryDiscovery
            tags:
                - registryDiscovery
            x-speakeasy-name-override: discoverVersion
components:
    schemas:
        AIDetection:
            type: object
            properties:
                access:
                    $ref: '#/components/schemas/AIToolAccessSummary'
                category:
                    type: string
                    description: 'Detection target category: harness (an AI coding tool), assistant (a general-purpose AI assistant or agent), or local_model (an open model run locally). From the catalog for ids it knows, otherwise as recorded at detection time.'
                    enum:
                        - harness
                        - assistant
                        - local_model
                device_count:
                    type: integer
                    description: Distinct devices, by hardware serial, this tool was detected on. Devices that report no serial are not counted.
                    format: int64
                display_name:
                    type: string
                    description: Human-readable name from the server's detection target catalog. Ids the catalog does not know — agent binaries can ship newer target lists — fall back to the raw id.
                first_seen:
                    type: string
                    description: When this tool was first detected anywhere in the organization.
                    format: date-time
                last_seen:
                    type: string
                    description: When this tool was most recently detected.
                    format: date-time
                signals:
                    type: array
                    items:
                        type: string
                        enum:
                            - installed
                            - running
                    description: 'Detection signals observed for this target across all reports: installed and/or running.'
                target_id:
                    type: string
                    description: Id of the detected AI tool as reported by agents (e.g. claude-code, ollama).
                user_count:
                    type: integer
                    description: Distinct enrolled users this tool was detected for.
                    format: int64
                versions:
                    type: array
                    items:
                        type: string
                    description: Unique non-empty detected versions for this target.
            description: One AI detection target aggregated across an organization's device-agent scan reports.
            required:
                - target_id
                - display_name
                - category
                - user_count
                - device_count
                - signals
                - versions
                - first_seen
                - last_seen
        AIDetectionUser:
            type: object
            properties:
                device_count:
                    type: integer
                    description: Distinct devices, by hardware serial, this tool was detected on for this user. Devices that report no serial are not counted.
                    format: int64
                first_seen:
                    type: string
                    description: When this tool was first detected for this user.
                    format: date-time
                last_seen:
                    type: string
                    description: When this tool was most recently detected for this user.
                    format: date-time
                signals:
                    type: array
                    items:
                        type: string
                        enum:
                            - installed
                            - running
                    description: 'Detection signals observed for this user: installed and/or running.'
                user_email:
                    type: string
                    description: Canonical email of the enrolled user the detections are attributed to. Linked alias emails are folded into it.
                versions:
                    type: array
                    items:
                        type: string
                    description: Unique non-empty detected versions for this user.
            description: 'One enrolled user a detection target was found for, with that user''s share of the organization''s scan reports: the evidence AIDetection carries for the whole organization, narrowed to one person.'
            required:
                - user_email
                - device_count
                - signals
                - versions
                - first_seen
                - last_seen
        AIIntegrationConfig:
            type: object
            properties:
                billing_mode:
                    type: string
                    description: 'How the provider org is billed: ''metered'' (pay-per-token; dashboard cost is real spend), ''flat_rate'' (subscription seats; cost is an estimate), or ''unknown''. Empty/omitted when not declared.'
                created_at:
                    type: string
                    description: ISO 8601 timestamp when the config was created. Omitted when no config is set.
                    format: date-time
                enabled:
                    type: boolean
                    description: Whether the provider integration is active.
                external_organization_id:
                    type: string
                    description: Provider scope identifier. Required for anthropic_compliance and codex_compliance (organization id) and chatgpt_compliance (ChatGPT workspace UUID); omitted for providers that do not need one.
                has_api_key:
                    type: boolean
                    description: Whether an API key is currently stored. The key itself is never returned.
                id:
                    type: string
                    description: Config ID. Omitted when no config is set for the provider.
                last_poll_error:
                    type: string
                    description: Stored error from the latest failed usage poll. Omitted unless the latest poll state failed.
                last_poll_failed_at:
                    type: string
                    description: ISO 8601 timestamp for the latest failed usage poll. Omitted unless a poll has failed.
                    format: date-time
                last_poll_status:
                    type: string
                    description: Derived status for the latest usage poll state. Omitted when no config is set for the provider.
                    enum:
                        - pending
                        - success
                        - failed
                last_polled_at:
                    type: string
                    description: ISO 8601 timestamp for the last successful usage poll. Omitted until a poll succeeds.
                    format: date-time
                next_poll_after:
                    type: string
                    description: ISO 8601 timestamp for the next scheduled usage poll. Omitted when no config is set.
                    format: date-time
                organization_id:
                    type: string
                    description: Organization the config belongs to.
                project_id:
                    type: string
                    description: Project used as the telemetry write target. Omitted when no config is set.
                provider:
                    type: string
                    description: AI provider identifier. Supported values include cursor, anthropic_compliance, codex_compliance, and chatgpt_compliance.
                updated_at:
                    type: string
                    description: ISO 8601 timestamp of the most recent change. Omitted when no config is set.
                    format: date-time
            description: Per-organization AI provider integration config. The provider API key is write-only; reads only expose whether a key is configured.
            required:
                - organization_id
                - provider
                - enabled
                - has_api_key
        AIIntegrationScheduleState:
            type: object
            properties:
                auto_paused_at:
                    type: string
                    description: ISO 8601 timestamp when the scheduler auto-paused the schedule after repeated provider rejections. Omitted unless auto-paused.
                    format: date-time
                consecutive_failures:
                    type: integer
                    description: Number of consecutive failed polls. Resets to zero on success or retry.
                    format: int64
                enabled:
                    type: boolean
                    description: Whether the user has this schedule enabled. Disabled schedules are skipped by the poller until re-enabled.
                last_poll_error:
                    type: string
                    description: Stored error from the schedule's latest failed poll. Omitted unless the latest poll failed.
                last_poll_failed_at:
                    type: string
                    description: ISO 8601 timestamp for the schedule's latest failed poll. Omitted unless a poll has failed.
                    format: date-time
                last_poll_success_at:
                    type: string
                    description: ISO 8601 timestamp for the schedule's last successful poll. Omitted until a poll succeeds.
                    format: date-time
                next_poll_after:
                    type: string
                    description: ISO 8601 timestamp for the schedule's next scheduled poll.
                    format: date-time
                schedule:
                    type: string
                    description: Schedule identifier (e.g. cursor, anthropic_compliance, anthropic_analytics_usage).
                status:
                    type: string
                    description: Derived status for the schedule's latest poll state.
                    enum:
                        - pending
                        - success
                        - failed
                        - auto_paused
                        - disabled
                stream:
                    type: string
                    description: Product-level identifier for the stream this schedule writes (e.g. cursor.usage, claude.chat.message). Omitted for legacy schedules with no registered stream.
                stream_kind:
                    type: string
                    description: Whether the stream carries discrete events or aggregated metrics. Omitted for legacy schedules with no registered stream.
                    enum:
                        - events
                        - metrics
            description: Scheduler state for one sync schedule (stream) of a provider integration.
            required:
                - schedule
                - enabled
                - status
                - consecutive_failures
        AIScanMatch:
            type: object
            properties:
                category:
                    type: string
                    description: 'Target category the agent scanned under: harness, assistant, or local_model. The server catalog''s category wins for targets it knows; this is what gets stored for the rest.'
                    enum:
                        - harness
                        - assistant
                        - local_model
                    maxLength: 32
                signal:
                    type: string
                    description: 'What the scan observed: installed or running.'
                    enum:
                        - installed
                        - running
                    maxLength: 16
                target_id:
                    type: string
                    description: 'Identifier of the matched target from the agent''s compiled-in list (e.g. claude-code, ollama). Stored as reported: an agent binary can ship a newer target list than the server catalog knows.'
                    minLength: 1
                    maxLength: 64
                version:
                    type: string
                    description: Installed version, when the scan could read one statically (e.g. from the app bundle's Info.plist).
                    maxLength: 64
            description: One AI detection target a device-agent scan matched.
            required:
                - target_id
                - category
                - signal
        AIToolAccessSummary:
            type: object
            properties:
                decision:
                    type: string
                    description: The effective organization decision behind state, which is not always the stored one. Absent rows read as unreviewed, so every tool has a value, and a tool that is not enforceable reads as unreviewed however it was decided — the stored decision is left untouched and takes effect again if the tool gains a verifiable gateway matcher.
                    enum:
                        - unreviewed
                        - approved
                        - blocked
                enforceable:
                    type: boolean
                    description: 'Whether a block on this tool would actually reach the gateway. False when the tool is linked only by a self-reported client name, or by nothing at all: the decision is recorded honestly and enforces nothing. Surfaced so an admin is never told a tool is blocked when it is not.'
                rationale:
                    type: string
                    description: Why the decision was made, when an admin gave a reason. Who recorded it and when are in the audit log rather than here, so there is one record of that and not two.
                state:
                    type: string
                    description: 'The effective decision as a table renders it: allowed and blocked mean an organization decision is recorded and in force, unreviewed means nothing is enforced — either because nobody has decided or because the tool is not enforceable, in which case a stored decision is projected as unreviewed. Read enforceable to tell the two apart.'
                    enum:
                        - allowed
                        - blocked
                        - unreviewed
            description: The enforcement verdict for one AI tool, computed server-side so a client renders wording without re-deriving it. state shares its vocabulary with the shadow MCP inventory's access summary, so one column describes both halves of the Shadow AI section.
            required:
                - state
                - decision
                - enforceable
        APIKeyPolicyGrant:
            type: object
            properties:
                scope:
                    type: string
                    description: 'mcp:connect, mcp:auth, or a block: mcp:blocked_connect, mcp:blocked_auth'
                    enum:
                        - mcp:connect
                        - mcp:blocked_connect
                        - mcp:auth
                        - mcp:blocked_auth
                selector:
                    $ref: '#/components/schemas/APIKeyPolicySelector'
            required:
                - scope
                - selector
        APIKeyPolicySelector:
            type: object
            properties:
                client_type:
                    type: string
                    description: Auth client type filter (mcp:auth only).
                    enum:
                        - service_account
                        - static_credential
                        - pass_through
                        - ema
                        - '*'
                project_id:
                    type: string
                    description: The project the servers are in; required when resource_id is '*', and the key's own project when it is bound to one.
                    format: uuid
                resource_id:
                    type: string
                    description: A server or auth client ID, or '*' for every server in project_id. mcp:auth grants must name their client.
                resource_kind:
                    type: string
                    description: mcp for mcp:connect grants, mcp_auth_client for mcp:auth grants
                    enum:
                        - mcp
                        - mcp_auth_client
            description: 'What an API key policy grant covers: servers (mcp) or auth clients (mcp_auth_client).'
            required:
                - resource_kind
                - resource_id
        AccessMember:
            type: object
            properties:
                department:
                    type: string
                    description: Department name as reported by the identity provider.
                directory_groups:
                    type: array
                    items:
                        $ref: '#/components/schemas/AccessMemberDirectoryGroup'
                    description: The directory groups the member belongs to, by stable ID. Prefer this to groups when matching a member to a group, since two groups can share a name.
                directory_role_ids:
                    type: array
                    items:
                        type: string
                    description: Role IDs this member holds through directory role mappings. They follow the member's directory groups and attributes, so updating the member's roles does not change them.
                directory_role_sources:
                    type: array
                    items:
                        $ref: '#/components/schemas/AccessMemberDirectoryRoleSource'
                    description: 'Where each role in directory_role_ids comes from: one entry per directory role mapping that currently gives the member that role, so a role reached through two groups appears twice. Set by listMembers.'
                email:
                    type: string
                    description: Email address.
                groups:
                    type: array
                    items:
                        type: string
                    description: Names of the directory groups the member belongs to.
                id:
                    type: string
                    description: User ID.
                in_directory:
                    type: boolean
                    description: Whether the member has a live profile in the organization's synced directory. Set by listMembers.
                joined_at:
                    type: string
                    description: When the member joined the organization.
                    format: date-time
                name:
                    type: string
                    description: Display name.
                photo_url:
                    type: string
                    description: Avatar URL.
                principal_urn:
                    type: string
                    description: Canonical principal URN for this member.
                role_ids:
                    type: array
                    items:
                        type: string
                    description: Role IDs assigned directly to this member.
            required:
                - id
                - principal_urn
                - name
                - email
                - role_ids
                - directory_role_ids
                - joined_at
        AccessMemberDirectoryGroup:
            type: object
            properties:
                id:
                    type: string
                    description: Directory group identifier.
                    format: uuid
                name:
                    type: string
                    description: Directory group name.
            description: A live directory group a member belongs to.
            required:
                - id
                - name
        AccessMemberDirectoryRoleSource:
            type: object
            properties:
                directory_group_id:
                    type: string
                    description: The mapped directory group. Set when source_kind is group.
                    format: uuid
                mapping_id:
                    type: string
                    description: The directory role mapping.
                    format: uuid
                role_id:
                    type: string
                    description: The role the mapping grants.
                source_kind:
                    type: string
                    description: 'What the mapping matches: a directory group or an attribute value.'
                    enum:
                        - group
                        - attribute
            description: 'One directory role mapping that currently gives a member a role. Attribute keys and values are not included: they can carry personal directory data, so admins resolve them through listDirectoryRoleMappings by mapping_id.'
            required:
                - role_id
                - mapping_id
                - source_kind
        AccessibleMCPServer:
            type: object
            properties:
                id:
                    type: string
                    description: Unique server identifier.
                    format: uuid
                name:
                    type: string
                    description: Display name of the server.
                project_id:
                    type: string
                    description: Project the server belongs to.
                    format: uuid
                project_slug:
                    type: string
                    description: Slug of the project the server belongs to.
                slug:
                    type: string
                    description: URL-safe server slug.
            description: An MCP server an identity is authorized to reach.
            required:
                - id
                - name
                - slug
                - project_id
                - project_slug
        AccessibleSkill:
            type: object
            properties:
                display_name:
                    type: string
                    description: Human-readable display name, when set.
                id:
                    type: string
                    description: Unique skill identifier.
                    format: uuid
                name:
                    type: string
                    description: Internal name of the skill.
                project_id:
                    type: string
                    description: Project the skill belongs to.
                    format: uuid
                project_slug:
                    type: string
                    description: Slug of the project the skill belongs to.
            description: A skill an identity is authorized to reach.
            required:
                - id
                - name
                - project_id
                - project_slug
        AcknowledgeRiskPolicyChallengeRequestBody:
            type: object
            properties:
                ack_token:
                    type: string
                    description: Acknowledgement token generated when a warn policy challenged the action.
            required:
                - ack_token
        AcknowledgeRiskPolicyChallengeResponseBody:
            type: object
            properties:
                acknowledged:
                    type: boolean
                    description: Whether the challenge is now acknowledged.
                expires_at:
                    type: string
                    description: RFC3339 time until which the acknowledgement suppresses re-challenge.
                    format: date-time
                policy_name:
                    type: string
                    description: The policy that issued the warning.
            required:
                - acknowledged
        ActivatePrescriptionRequestBody:
            type: object
            properties:
                definition:
                    type: string
                expected_version:
                    type: integer
                    format: int64
                expires_at:
                    type: string
                    format: date-time
                external_note:
                    type: string
                    maxLength: 500
                internal_note:
                    type: string
                    maxLength: 4000
                operation_id:
                    type: string
                    format: uuid
                organization_id:
                    type: string
                prescription_id:
                    type: string
                    format: uuid
                principal_input:
                    type: string
                principal_kind:
                    type: string
                resource_kind:
                    type: string
                resource_scope:
                    type: string
                    enum:
                        - all
                        - selected
                selected_resource_inputs:
                    type: array
                    items:
                        type: string
                    maxItems: 1000
                start_mode:
                    type: string
                    enum:
                        - now
                        - at
                starts_at:
                    type: string
                    format: date-time
            required:
                - organization_id
                - operation_id
                - resource_scope
                - start_mode
                - internal_note
                - external_note
        ActorAttribute:
            type: object
            properties:
                description:
                    type: string
                    description: Human-readable description of the attribute.
                name:
                    type: string
                    description: Attribute name as used in target conditions, e.g. department_name.
                type:
                    type: string
                    description: 'Value kind: a scalar string or a list of strings.'
                    enum:
                        - string
                        - list
            required:
                - name
                - type
                - description
        AddDashboardWidgetRequestBody:
            type: object
            properties:
                id:
                    type: string
                    description: The dashboard to place it on
                    format: uuid
                widget_id:
                    type: string
                    description: The widget to place
                    format: uuid
            required:
                - id
                - widget_id
        AddDeploymentPackageForm:
            type: object
            properties:
                name:
                    type: string
                    description: The name of the package.
                version:
                    type: string
                    description: The version of the package.
            required:
                - name
        AddExternalOAuthServerForm:
            type: object
            properties:
                external_oauth_server:
                    $ref: '#/components/schemas/ExternalOAuthServerForm'
                project_slug_input:
                    type: string
                slug:
                    type: string
                    description: A short url-friendly label that uniquely identifies a resource.
                    pattern: ^[a-z0-9_-]{1,128}$
                    maxLength: 40
            required:
                - slug
                - external_oauth_server
        AddExternalOAuthServerRequestBody:
            type: object
            properties:
                external_oauth_server:
                    $ref: '#/components/schemas/ExternalOAuthServerForm'
            required:
                - external_oauth_server
        AddFunctionsForm:
            type: object
            properties:
                asset_id:
                    type: string
                    description: The ID of the functions file from the assets service.
                memory_mib:
                    type: integer
                    description: The amount of memory in MiB to allocate for the function (1 MiB = 1024 * 1024 bytes).
                    format: int64
                    minimum: 0
                    maximum: 4096
                name:
                    type: string
                    description: The functions file display name.
                runtime:
                    type: string
                    description: 'The runtime to use when executing functions. Allowed values are: nodejs:22, nodejs:24, python:3.12.'
                scale:
                    type: integer
                    description: The number of instances to scale the function to.
                    format: int64
                    minimum: 0
                    maximum: 5
                slug:
                    type: string
                    description: A short url-friendly label that uniquely identifies a resource.
                    pattern: ^[a-z0-9_-]{1,128}$
                    maxLength: 40
            required:
                - asset_id
                - name
                - slug
                - runtime
        AddMetaMcpMemberForm:
            type: object
            properties:
                mcp_server_id:
                    type: string
                    description: The ID of the MCP server to add as a member
                    format: uuid
                meta_mcp_server_id:
                    type: string
                    description: The ID of the meta MCP server
                    format: uuid
                sort_order:
                    type: integer
                    description: The position of the member in the ordered member set. Defaults to 0.
                    format: int64
            description: Form for adding an MCP server to a meta MCP server's member set.
            required:
                - meta_mcp_server_id
                - mcp_server_id
        AddOpenAPIv3DeploymentAssetForm:
            type: object
            properties:
                asset_id:
                    type: string
                    description: The ID of the uploaded asset.
                name:
                    type: string
                    description: The name to give the document as it will be displayed in UIs.
                slug:
                    type: string
                    description: A short url-friendly label that uniquely identifies a resource.
                    pattern: ^[a-z0-9_-]{1,128}$
                    maxLength: 40
            required:
                - asset_id
                - name
                - slug
        AddOpenAPIv3SourceForm:
            type: object
            properties:
                asset_id:
                    type: string
                    description: The ID of the uploaded asset.
                name:
                    type: string
                    description: The name to give the document as it will be displayed in UIs.
                slug:
                    type: string
                    description: A short url-friendly label that uniquely identifies a resource.
                    pattern: ^[a-z0-9_-]{1,128}$
                    maxLength: 40
            required:
                - asset_id
                - name
                - slug
        AddOpenAPIv3SourceResult:
            type: object
            properties:
                deployment:
                    $ref: '#/components/schemas/Deployment'
        AddPackageForm:
            type: object
            properties:
                name:
                    type: string
                    description: The name of the package to add.
                version:
                    type: string
                    description: The version of the package to add. If omitted, the latest version will be used.
            required:
                - name
        AddPluginServerForm:
            type: object
            properties:
                display_name:
                    type: string
                    description: Display name for the server. Defaults to the backing server name when omitted.
                mcp_server_id:
                    type: string
                    description: Speakeasy MCP server ID. Provide exactly one backend ID; a hosted MCP server's toolset_id and mcp_server_id may both be sent when equal.
                    format: uuid
                meta_mcp_server_id:
                    type: string
                    description: MCP gateway ID. Provide exactly one backend ID.
                    format: uuid
                plugin_id:
                    type: string
                    format: uuid
                policy:
                    type: string
                    default: required
                    enum:
                        - required
                        - optional
                sort_order:
                    type: integer
                    default: 0
                    format: int32
                toolset_id:
                    type: string
                    description: Speakeasy toolset ID. Provide exactly one of toolset_id, mcp_server_id, or meta_mcp_server_id; a hosted MCP server's toolset_id and mcp_server_id may both be sent when equal.
                    format: uuid
            required:
                - plugin_id
        AddSkillVersionRequestBody:
            type: object
            properties:
                content:
                    type: string
                    description: The complete uploaded SKILL.md content. Handlers enforce a maximum size of 65,536 UTF-8 bytes.
                derived_from_version_id:
                    type: string
                    description: The optional source version this new version was derived from.
                    format: uuid
                expected_latest_version_id:
                    type: string
                    description: The version the caller believes is current. When set, the write is rejected as a conflict if the skill has moved on.
                    format: uuid
                id:
                    type: string
                    description: The skill ID.
                    format: uuid
            required:
                - id
                - content
        AddToolMetadataBatchResult:
            type: object
            properties:
                tools:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolMetadata'
                    description: The tool metadata entries created by this call
            description: Result of a strictly additive tool metadata batch insert.
            required:
                - tools
        AdminAuditLog:
            type: object
            properties:
                acting_client_id:
                    type: string
                    description: The registered OAuth client the call authenticated as, when it had one. Absent for calls that carried no OAuth client.
                acting_surface:
                    type: string
                    description: 'How the change was made: ''dashboard'', ''api_key'', ''platform_mcp'', ''project_assistant'', or ''unknown'' when no surface was identifiable. Always present.'
                action:
                    type: string
                actor_display_name:
                    type: string
                actor_id:
                    type: string
                actor_slug:
                    type: string
                actor_type:
                    type: string
                after_snapshot: {}
                before_snapshot: {}
                category:
                    type: string
                    description: 'What kind of event the entry records: ''configuration'' for a change to the platform''s configuration, ''security'' for machine access and other security-relevant activity that is not a configuration decision. Always present in responses; optional in the schema so clients built against it still read responses from servers that predate it.'
                    enum:
                        - configuration
                        - security
                created_at:
                    type: string
                    description: The creation date of the audit log.
                    format: date-time
                id:
                    type: string
                is_internal:
                    type: boolean
                    description: Internal staff-only audit activity; persisted but never published to the outbox. Always present in responses; optional in the schema so clients built against it still read responses from servers that predate it.
                metadata:
                    type: object
                    additionalProperties: true
                project_id:
                    type: string
                project_slug:
                    type: string
                subject_display_name:
                    type: string
                subject_id:
                    type: string
                subject_slug:
                    type: string
                subject_type:
                    type: string
            required:
                - id
                - actor_id
                - actor_type
                - action
                - subject_id
                - subject_type
                - acting_surface
                - created_at
        AdminBackfillMCPAuthGrantsResult:
            type: object
            properties:
                granted:
                    type: integer
                    description: How many principals gained the mcp:auth grant.
                    format: int64
            required:
                - granted
        AdminBackfillMCPConnectGrantsResult:
            type: object
            properties:
                extended:
                    type: integer
                    description: How many existing temporary mcp:connect grants were extended to last as long as the access they mirror.
                    format: int64
                inserted:
                    type: integer
                    description: How many mcp:connect grants were written.
                    format: int64
                taken_over:
                    type: integer
                    description: How many mcp:connect grants provisioned by the default auth permission backfill became explicit grants.
                    format: int64
            required:
                - inserted
                - extended
                - taken_over
        AdminBulkUpdateAccountTypeResult:
            type: object
            properties:
                missing_ids:
                    type: array
                    items:
                        type: string
                    description: IDs from the request that matched no organization, deduplicated and in request order. Nothing was written for these.
                updated_ids:
                    type: array
                    items:
                        type: string
                    description: 'IDs of the organizations whose account type was set. Order is unspecified: do not rely on it.'
            description: Outcome of a bulk account type change.
            required:
                - updated_ids
                - missing_ids
        AdminChatAnalysisSettings:
            type: object
            properties:
                business_memory_daily_cap:
                    type: integer
                    format: int64
                business_memory_enabled:
                    type: boolean
                is_default:
                    type: boolean
                organization_id:
                    type: string
                work_units_daily_cap:
                    type: integer
                    format: int64
                work_units_enabled:
                    type: boolean
            required:
                - organization_id
                - work_units_enabled
                - work_units_daily_cap
                - business_memory_enabled
                - business_memory_daily_cap
                - is_default
        AdminChatAnalysisTriggerResult:
            type: object
            properties:
                projects_signaled:
                    type: integer
                    format: int64
            required:
                - projects_signaled
        AdminCustomDomain:
            type: object
            properties:
                activated:
                    type: boolean
                    description: Whether the domain is provisioned in ingress.
                created_at:
                    type: string
                    description: When the domain was registered.
                    format: date-time
                dns_checked_at:
                    type: string
                    description: When DNS configuration was observed. Absent until a DNS observation has run.
                    format: date-time
                dns_configuration_status:
                    type: string
                    description: 'Advisory public DNS observation: matched, wrong_target, unconfirmed, not_found, check_failed, or not_configured. Does not establish endpoint availability.'
                dns_routing_method:
                    type: string
                    description: 'How the latest health check observed the domain''s DNS routing traffic. One of: per_domain_cname, shared_cname, a_record (also covers flattened CNAME, ALIAS and ANAME records, which resolve to addresses), unknown. Absent until the first health check.'
                dns_target:
                    type: string
                    description: The domain's designated CNAME target (<dns_target_token>.<suffix>). Absent when the admin server has no target suffix configured or the token is not yet assigned.
                dns_target_token:
                    type: string
                    description: The random DNS label of the domain's designated CNAME target. Absent until assigned.
                domain:
                    type: string
                    description: The custom domain name.
                health_checked_at:
                    type: string
                    description: When the domain health was last checked.
                    format: date-time
                health_issue:
                    type: string
                    description: Why the domain was last observed as unhealthy.
                health_status:
                    type: string
                    description: 'Infrastructure and certificate status: unknown, healthy, or unhealthy. Unknown until a complete observation has run, or when an older worker has overwritten the health result.'
                id:
                    type: string
                    description: The custom domain ID.
                    format: uuid
                organization_id:
                    type: string
                    description: The organization that owns the domain.
                organization_name:
                    type: string
                    description: The organization name.
                organization_slug:
                    type: string
                    description: The organization slug.
                verified:
                    type: boolean
                    description: Whether the domain passed DNS verification.
            description: A live custom domain with its designated CNAME target and the DNS routing method health checks last observed.
            required:
                - id
                - organization_id
                - organization_name
                - organization_slug
                - domain
                - verified
                - activated
                - created_at
        AdminCustomerUsage:
            type: object
            properties:
                account_type:
                    type: string
                    enum:
                        - enterprise
                        - pro
                        - payg
                current_cycle:
                    $ref: '#/components/schemas/MeterUsageWindow'
                error:
                    type: string
                    description: Why this organization's usage could not be read. products is empty when set.
                name:
                    type: string
                organization_id:
                    type: string
                previous_period:
                    $ref: '#/components/schemas/MeterUsageWindow'
                previous_period_costs:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminCustomerUsageProductCost'
                    description: Per-product costs over previous_period. Empty when previous_period is absent.
                products:
                    type: array
                    items:
                        $ref: '#/components/schemas/SpendProduct'
                    description: 'The three metered products in stable display order. quantity and cost_usd cover the current cycle to date. buckets are the chart buckets for the requested interval: billing cycles for monthly, days or Monday-start weeks of the current cycle otherwise.'
                slug:
                    type: string
                trial_state:
                    type: string
                    enum:
                        - none
                        - running
                        - ending_soon
                        - expired
                        - demoted
                        - converted
                window:
                    $ref: '#/components/schemas/MeterUsageWindow'
            description: One paying organization's estimated usage at current PAYG list prices.
            required:
                - organization_id
                - name
                - slug
                - account_type
                - trial_state
                - current_cycle
                - window
                - products
                - previous_period_costs
        AdminCustomerUsageProductCost:
            type: object
            properties:
                cost_usd:
                    type: string
                    description: Exact estimated cost at current PAYG list prices
                product_id:
                    type: string
                    enum:
                        - agent_session_storage
                        - risk_content_scans
                        - mcp_egress
            required:
                - product_id
                - cost_usd
        AdminCustomerUsageResponse:
            type: object
            properties:
                currency:
                    type: string
                    enum:
                        - USD
                customers:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminCustomerUsage'
                    description: Every qualifying organization, ordered by name
                interval:
                    type: string
                    enum:
                        - daily
                        - weekly
                        - monthly
                pricing_basis:
                    type: string
                    enum:
                        - current_payg_list_price
                queried_at:
                    type: string
                    description: Retrieval timestamp used to distinguish current and future buckets
                    format: date-time
            required:
                - interval
                - currency
                - pricing_basis
                - queried_at
                - customers
        AdminDashboardRedirect:
            type: object
            properties:
                cache_control:
                    type: string
                location:
                    type: string
            required:
                - location
                - cache_control
        AdminDeviceAgentCell:
            type: object
            properties:
                day:
                    type: string
                    description: The UTC day, as YYYY-MM-DD.
                    format: date
                machines:
                    type: integer
                    description: Machines whose agent polled on this day, by the last version each reported that day.
                    format: int64
                organization_id:
                    type: string
                    description: The organization ID.
                version:
                    type: string
                    description: The speakeasyd version, or empty for the organization-day total.
            description: One (organization, day, version) cell of the device agent grid.
            required:
                - organization_id
                - day
                - version
                - machines
        AdminHookClientOrganization:
            type: object
            properties:
                id:
                    type: string
                    description: The organization ID.
                name:
                    type: string
                    description: The organization name. Absent when the organization no longer exists.
                slug:
                    type: string
                    description: The organization slug. Absent when the organization no longer exists.
            description: An organization that appears in any of the fleet health grids.
            required:
                - id
        AdminHookClientSessionCell:
            type: object
            properties:
                client:
                    type: string
                    description: curl for the legacy curl hooks, a hooks binary version, binary for binary rows that record no version, or empty for the organization-day total.
                day:
                    type: string
                    description: The UTC day, as YYYY-MM-DD.
                    format: date
                machines:
                    type: integer
                    description: Machines that started a session on this day.
                    format: int64
                machines_all:
                    type: integer
                    description: Machines that sent any hook on this day, including sessions started earlier.
                    format: int64
                organization_id:
                    type: string
                    description: The organization ID.
                sessions:
                    type: integer
                    description: Sessions started on this day.
                    format: int64
            description: One (organization, day, client) cell of the hook client grid. Sessions count on the UTC day of their first hook.
            required:
                - organization_id
                - day
                - client
                - machines
                - sessions
                - machines_all
        AdminHookClientsResult:
            type: object
            properties:
                device_agents:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminDeviceAgentCell'
                    description: The device agent version grid. Empty for days before versions were recorded.
                from_cache:
                    type: boolean
                    description: True when the grids came from the cache rather than a fresh ClickHouse read. Cached grids last 48 hours and refresh in the background once an hour old. The default window is also refreshed nightly.
                inference:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminInferenceHookCell'
                    description: The inference hook traffic grid.
                organizations:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminHookClientOrganization'
                    description: Every organization that appears in any grid.
                queried_at:
                    type: string
                    description: When the grids were read from ClickHouse.
                    format: date-time
                sessions:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminHookClientSessionCell'
                    description: The hook client grid, new sessions only.
                window_days:
                    type: integer
                    description: Length of the window in days.
                    format: int64
            description: 'Fleet-wide client health grids over a fixed window: hook clients, inference hook traffic and device agent versions.'
            required:
                - window_days
                - queried_at
                - from_cache
                - organizations
                - sessions
                - inference
                - device_agents
        AdminHookFleetBucket:
            type: object
            properties:
                events:
                    type: integer
                    description: Hook events sent with this value across every install. Zero for routes.
                    format: int64
                installs:
                    type: integer
                    description: Installs whose latest value is this one.
                    format: int64
                value:
                    type: string
                    description: The route or endpoint generation. Empty when unknown.
            description: Installs and events for one value of a breakdown.
            required:
                - value
                - installs
                - events
        AdminHookFleetInstall:
            type: object
            properties:
                endpoint_generation:
                    type: string
                    description: 'The hooks endpoint the install last sent to: legacy_unkeyed, legacy_keyed, ingest_script or ingest_binary. Empty for delivery failure reports only.'
                errors:
                    type: integer
                    description: Delivery failures the install reported in the window.
                    format: int64
                events:
                    type: integer
                    description: Hook events recorded in the window.
                    format: int64
                first_seen:
                    type: string
                    description: First hook in the window.
                    format: date-time
                harness:
                    type: string
                    description: The agent the hooks run in, such as claude, codex or cursor.
                hostname:
                    type: string
                    description: The machine's hostname. Empty when the install sent none.
                install_route:
                    type: string
                    description: How the hooks were installed, such as marketplace or download. Empty when unknown.
                last_seen:
                    type: string
                    description: Most recent hook.
                    format: date-time
                project_id:
                    type: string
                    description: The project the install reports to. Empty for traffic that named no project.
                quiet:
                    type: boolean
                    description: True when the install has sent nothing for quiet_after_days or longer.
                user_email:
                    type: string
                    description: The user the install reports as. Empty when the install sent no identity.
                version:
                    type: string
                    description: The hooks binary version. Empty for the legacy curl hooks and for installs that sent no version.
                version_status:
                    type: string
                    description: How the version compares to the release Speakeasy ships.
                    enum:
                        - current
                        - behind
                        - unsupported
                        - unknown
            description: 'One hooks install: a project, user, machine and harness. Version, generation and route are the latest the install sent.'
            required:
                - project_id
                - user_email
                - hostname
                - harness
                - version
                - version_status
                - endpoint_generation
                - install_route
                - first_seen
                - last_seen
                - events
                - errors
                - quiet
        AdminHookFleetResult:
            type: object
            properties:
                generations:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminHookFleetBucket'
                    description: Installs and events per endpoint generation, largest first.
                installs:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminHookFleetInstall'
                    description: Installs, most recently seen first.
                latest_version:
                    type: string
                    description: The hooks release Speakeasy currently ships. Versions below it are behind.
                legacy_events:
                    type: integer
                    description: Hook events sent to the legacy endpoints in the window.
                    format: int64
                minimum_version:
                    type: string
                    description: The oldest supported hooks version. Versions below it are unsupported. Absent when no minimum is set.
                organization_id:
                    type: string
                    description: The organization ID.
                quiet_after_days:
                    type: integer
                    description: Days without traffic after which an install counts as quiet.
                    format: int64
                quiet_installs:
                    type: integer
                    description: Returned installs that have gone quiet. Only a window longer than quiet_after_days can return quiet installs.
                    format: int64
                routes:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminHookFleetBucket'
                    description: Installs per install route, largest first.
                since:
                    type: string
                    description: Start of the window. Counts cover the whole UTC day it falls on.
                    format: date-time
                total_installs:
                    type: integer
                    description: Installs returned. Not the organization's full install count when truncated is true.
                    format: int64
                truncated:
                    type: boolean
                    description: True when the organization has more installs than the response holds. Breakdowns then cover only the installs returned.
                versions:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminHookFleetVersion'
                    description: Installs per version, newest version first.
                window_days:
                    type: integer
                    description: Length of the window in days.
                    format: int64
            description: The hooks installs of one organization over a window, with version, route and endpoint breakdowns.
            required:
                - organization_id
                - window_days
                - since
                - latest_version
                - quiet_after_days
                - truncated
                - total_installs
                - quiet_installs
                - legacy_events
                - versions
                - routes
                - generations
                - installs
        AdminHookFleetVersion:
            type: object
            properties:
                installs:
                    type: integer
                    description: Installs whose latest version is this one.
                    format: int64
                status:
                    type: string
                    description: How the version compares to the release Speakeasy ships.
                    enum:
                        - current
                        - behind
                        - unsupported
                        - unknown
                version:
                    type: string
                    description: The hooks binary version, or empty for installs with no version.
            description: Installs on one hooks version.
            required:
                - version
                - status
                - installs
        AdminInferenceHookCell:
            type: object
            properties:
                day:
                    type: string
                    description: The UTC day, as YYYY-MM-DD.
                    format: date
                events:
                    type: integer
                    description: Stored transcript messages.
                    format: int64
                organization_id:
                    type: string
                    description: The organization ID.
                sessions:
                    type: integer
                    description: Distinct sessions.
                    format: int64
                surface:
                    type: string
                    description: The Claude app that sent the transcript, or empty for the organization-day total.
                users:
                    type: integer
                    description: Distinct users.
                    format: int64
            description: One (organization, day, surface) cell of the inference hook grid.
            required:
                - organization_id
                - day
                - surface
                - users
                - events
                - sessions
        AdminInferenceKey:
            type: object
            properties:
                cause_diagnostics:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminInferenceKeyCause'
                credits_used:
                    type: number
                    description: Credits spent this month in USD.
                    format: double
                disable_causes:
                    type: array
                    items:
                        type: string
                    description: Active internal disable causes. Omitted for legacy unclassified rows.
                disable_causes_classified:
                    type: boolean
                    description: Whether disable_causes is classified, including an explicitly empty cause set.
                disabled:
                    type: boolean
                key_type:
                    type: string
                monthly_credits:
                    type: integer
                    format: int64
            description: Current usage and configured state for one materialized platform-managed OpenRouter key, without key material or provider identifiers.
            required:
                - key_type
                - credits_used
                - monthly_credits
                - disabled
                - disable_causes_classified
        AdminInferenceKeyCause:
            type: object
            properties:
                blocked_reason:
                    type: string
                cause:
                    type: string
                description:
                    type: string
                removable:
                    type: boolean
            required:
                - cause
                - description
                - removable
        AdminInferenceKeyLimit:
            type: object
            properties:
                key_type:
                    type: string
                monthly_credits:
                    type: integer
                    format: int64
            description: The configured monthly limit for one materialized platform-managed OpenRouter key.
            required:
                - key_type
                - monthly_credits
        AdminInferenceKeyRepairResult:
            type: object
            properties:
                key:
                    $ref: '#/components/schemas/AdminInferenceKeyRepairState'
                reconciliation_pending:
                    type: boolean
            required:
                - key
                - reconciliation_pending
        AdminInferenceKeyRepairState:
            type: object
            properties:
                cause_diagnostics:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminInferenceKeyCause'
                disable_causes:
                    type: array
                    items:
                        type: string
                disable_causes_classified:
                    type: boolean
                disabled:
                    type: boolean
                key_type:
                    type: string
                monthly_credits:
                    type: integer
                    format: int64
            description: Committed local key policy, without provider usage or credentials.
            required:
                - key_type
                - monthly_credits
                - disabled
                - disable_causes
                - disable_causes_classified
                - cause_diagnostics
        AdminInferenceSpendMonth:
            type: object
            properties:
                period_end:
                    type: string
                    description: Exclusive end of the UTC calendar month.
                    format: date
                period_start:
                    type: string
                    format: date
                spend_usd:
                    type: string
            required:
                - period_start
                - period_end
                - spend_usd
        AdminListCustomDomainsResult:
            type: object
            properties:
                custom_domains:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminCustomDomain'
                    description: Every matching live custom domain, ordered by domain name. Organizations have at most one live custom domain, so the list is not paginated.
            required:
                - custom_domains
        AdminListOrganizationActivityResult:
            type: object
            properties:
                logs:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminAuditLog'
                    description: List of organization activity.
                next_cursor:
                    type: string
                    description: Cursor for the next page of results.
            required:
                - logs
        AdminListOrganizationMembersResult:
            type: object
            properties:
                members:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminOrganizationMember'
                    description: The members of the organization.
            required:
                - members
        AdminListOrganizationProjectsResult:
            type: object
            properties:
                projects:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminProject'
                    description: The projects belonging to the organization.
            required:
                - projects
        AdminListOrganizationsResult:
            type: object
            properties:
                next_cursor:
                    type: string
                    description: Cursor for the next page; empty when exhausted. Omitted in offset mode.
                organizations:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminOrganization'
                    description: The page of organizations.
                total:
                    type: integer
                    description: Number of organizations matching the filters, before paging.
                    format: int64
            required:
                - organizations
                - total
        AdminListProjectMcpServersResult:
            type: object
            properties:
                mcp_servers:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminMcpServer'
                    description: The project's MCP servers, oldest first.
            required:
                - mcp_servers
        AdminListUserOrganizationsResult:
            type: object
            properties:
                limit:
                    type: integer
                    format: int64
                organizations:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminUserOrganization'
                page:
                    type: integer
                    format: int64
                total:
                    type: integer
                    format: int64
            required:
                - organizations
                - total
                - page
                - limit
        AdminListUsersResult:
            type: object
            properties:
                limit:
                    type: integer
                    format: int64
                page:
                    type: integer
                    format: int64
                total:
                    type: integer
                    format: int64
                users:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminUser'
            required:
                - users
                - total
                - page
                - limit
        AdminMcpServer:
            type: object
            properties:
                created_at:
                    type: string
                    format: date-time
                id:
                    type: string
                    description: The mcp_servers row ID, or the toolset ID for a toolset-only server.
                name:
                    type: string
                    description: Display name of the server.
                source:
                    type: string
                    description: What backs the server. toolset_only is a toolset with no mcp_servers row.
                    enum:
                        - toolset
                        - remote
                        - tunneled
                        - unproxied
                        - toolset_only
                url:
                    type: string
                    description: The URL clients connect to. Omitted when the server has no routable address.
                visibility:
                    type: string
                    description: The visibility of the server.
                    enum:
                        - disabled
                        - private
                        - public
            description: 'MCP server surfaced to admin operators. Covers both server models: mcp_servers rows and mcp_enabled toolsets that no mcp_servers row points at.'
            required:
                - id
                - name
                - visibility
                - source
                - created_at
        AdminMcpServerHealth:
            type: object
            properties:
                correlation:
                    $ref: '#/components/schemas/AdminMcpServerHealthCorrelation'
                legacy_auth:
                    type: string
                    description: Legacy authentication in force. Set only when the server has no user session issuer.
                    enum:
                        - external_oauth
                        - gram_private
                resource_scopes:
                    $ref: '#/components/schemas/AdminMcpServerResourceScopes'
                server:
                    $ref: '#/components/schemas/AdminMcpServerHealthServer'
                upstream_auth:
                    $ref: '#/components/schemas/AdminMcpServerHealthUpstreamAuth'
                user_session_issuer:
                    $ref: '#/components/schemas/AdminMcpServerHealthUserSessionIssuer'
            description: 'Health of one MCP server: its authentication configuration and session counts. Tool calls are read separately through getMcpServerToolCalls. Never carries secrets, error text, subjects, users or emails.'
            required:
                - server
                - correlation
        AdminMcpServerHealthAuthClient:
            type: object
            properties:
                client_type:
                    type: string
                    description: How the client authenticates upstream.
                    enum:
                        - remote_session
                        - service_account
                        - static_credential
                        - pass_through
                        - ema
                enabled:
                    type: boolean
                    description: Whether the client can be used.
                header_count:
                    type: integer
                    description: Headers the client sends upstream.
                    format: int64
                id:
                    type: string
                    description: Auth client id.
                    format: uuid
                remote_session_client_id:
                    type: string
                    description: The OAuth registration behind an OAuth-backed client.
                    format: uuid
                server_count:
                    type: integer
                    description: Servers offering the client, this one included.
                    format: int64
                source:
                    type: string
                    description: backfill when created from existing configuration, admin when an administrator created it.
                    enum:
                        - backfill
                        - admin
            description: One auth client the server offers for reaching its upstream. Never carries its name or header values.
            required:
                - id
                - client_type
                - source
                - enabled
                - server_count
                - header_count
        AdminMcpServerHealthCorrelation:
            type: object
            properties:
                mcp_server_id:
                    type: string
                    description: The mcp_servers row ID stamped on proxied calls. Absent for toolset-only servers.
                toolset_slug:
                    type: string
                    description: The toolset slug stamped on hosted calls. Absent when the server has no toolset or several live servers share it.
                url_slug:
                    type: string
                    description: The slug in the server's /mcp/<slug> URL, matched against hook-observed calls. Absent when the server has no slug.
            description: The identities telemetry is matched on for this server.
        AdminMcpServerHealthRemoteSessionClient:
            type: object
            properties:
                attachment_scope:
                    type: string
                    description: Where the row is attached. global is platform-wide.
                    enum:
                        - project
                        - organization
                        - global
                grant_types:
                    type: array
                    items:
                        type: string
                    description: Grant types recorded for the client.
                has_identity_provider_connection:
                    type: boolean
                    description: Whether the client is backed by an identity provider connection.
                id:
                    type: string
                    description: The remote session client ID.
                issuer:
                    $ref: '#/components/schemas/AdminMcpServerHealthRemoteSessionIssuer'
                registration:
                    type: string
                    description: How the client was registered upstream.
                    enum:
                        - cimd
                        - dcr
                        - static
                scope:
                    type: array
                    items:
                        type: string
                    description: Scopes recorded for the client.
                sessions:
                    $ref: '#/components/schemas/AdminMcpServerHealthRemoteSessions'
                token_endpoint_auth_method:
                    type: string
                    description: The client's token endpoint auth method. Absent when unset.
                    enum:
                        - client_secret_basic
                        - client_secret_post
                        - none
                        - private_key_jwt
                upstream_rejected_at:
                    type: string
                    description: When the upstream last rejected the client's credentials.
                    format: date-time
            description: A remote session client attached to the issuer, with its upstream issuer and session counts. Never carries secrets.
            required:
                - id
                - registration
                - scope
                - grant_types
                - has_identity_provider_connection
                - attachment_scope
                - issuer
                - sessions
        AdminMcpServerHealthRemoteSessionIssuer:
            type: object
            properties:
                attachment_scope:
                    type: string
                    description: Where the row is attached. global is platform-wide.
                    enum:
                        - project
                        - organization
                        - global
                cimd_supported:
                    type: boolean
                    description: Whether the issuer accepts a Client ID Metadata Document URL as client_id.
                id:
                    type: string
                    description: The remote session issuer ID.
                issuer:
                    type: string
                    description: The upstream issuer URL.
                jwks_last_error_at:
                    type: string
                    description: Last failed JWK Set fetch.
                    format: date-time
                metadata_fetched_at:
                    type: string
                    description: Last successful metadata discovery.
                    format: date-time
                metadata_last_error_at:
                    type: string
                    description: Last failed metadata discovery.
                    format: date-time
                name:
                    type: string
                    description: Display name of the issuer.
                networking:
                    type: string
                    description: Whether Speakeasy reaches the issuer over the public internet or a tunnel.
                    enum:
                        - public
                        - tunneled
                oidc:
                    type: boolean
                    description: Whether the issuer is treated as an OpenID Connect provider.
                omit_scope_fallback:
                    type: boolean
                    description: Whether a login with no other scope source sends no scope instead of the issuer's whole scopes_supported. Absent when unset, which behaves as false.
                passthrough:
                    type: boolean
                    description: Whether upstream tokens are passed through to the server.
                pkce:
                    type: string
                    description: PKCE support classified from the issuer's advertised code challenge methods.
                    enum:
                        - supported
                        - unsupported
                        - none
                        - uncaptured
                scope_override:
                    type: array
                    items:
                        type: string
                    description: Operator-pinned scopes sent in place of the discovered set. Absent when unset.
                slug:
                    type: string
                    description: The issuer slug.
            description: The upstream authorization server a remote session client is registered with. Error columns are exposed as timestamps only.
            required:
                - id
                - slug
                - issuer
                - attachment_scope
                - networking
                - oidc
                - passthrough
                - pkce
                - cimd_supported
        AdminMcpServerHealthRemoteSessions:
            type: object
            properties:
                first_linked_at:
                    type: string
                    description: When the first upstream session was linked.
                    format: date-time
                linked_subjects:
                    type: integer
                    description: Distinct users holding a live upstream session.
                    format: int64
                reauthorizations:
                    type: integer
                    description: Fresh authorizations beyond each session's first.
                    format: int64
                validation_status_counts:
                    type: object
                    description: 'Live sessions per last validation status: valid, rejected_by_member, inactive or unknown. Sessions never validated are left out.'
                    additionalProperties:
                        type: integer
                        format: int64
            description: Upstream sessions brokered through one remote session client, whichever issuer first linked them.
            required:
                - linked_subjects
                - reauthorizations
                - validation_status_counts
        AdminMcpServerHealthServer:
            type: object
            properties:
                created_at:
                    type: string
                    format: date-time
                id:
                    type: string
                    description: The mcp_servers row ID, or the toolset ID for a toolset-only server.
                name:
                    type: string
                    description: Display name of the server.
                source:
                    type: string
                    description: What backs the server. toolset_only is a toolset with no mcp_servers row.
                    enum:
                        - toolset
                        - remote
                        - tunneled
                        - unproxied
                        - toolset_only
                visibility:
                    type: string
                    description: The visibility of the server.
                    enum:
                        - disabled
                        - private
                        - public
            description: The server the health report describes, as listProjectMcpServers lists it.
            required:
                - id
                - name
                - source
                - visibility
                - created_at
        AdminMcpServerHealthServerRef:
            type: object
            properties:
                id:
                    type: string
                    description: The mcp_servers row ID, or the toolset ID for a toolset-only server.
                name:
                    type: string
                    description: Display name of the server.
            description: Another server in the project that shares the issuer.
            required:
                - id
                - name
        AdminMcpServerHealthTrustedRemoteSession:
            type: object
            properties:
                client_id:
                    type: string
                    description: The remote session client ID Speakeasy uses with the trusted issuer.
                issuer_id:
                    type: string
                    description: The trusted remote session issuer ID.
            description: The external authorization server whose assertions the issuer trusts.
            required:
                - issuer_id
                - client_id
        AdminMcpServerHealthUpstreamAuth:
            type: object
            properties:
                auth_clients:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminMcpServerHealthAuthClient'
                requires_upstream_auth:
                    type: boolean
                    description: 'Whether the upstream needs authentication: true when the server offers at least one enabled auth client.'
                status:
                    type: string
                    description: configured (at least one enabled auth client), setup_incomplete (no auth client was ever linked to it, live or detached, but it has upstream credentials that no auth client records yet) or no_auth_required.
                    enum:
                        - configured
                        - setup_incomplete
                        - no_auth_required
            description: Whether the server's upstream needs authentication and the auth clients it offers.
            required:
                - status
                - requires_upstream_auth
                - auth_clients
        AdminMcpServerHealthUserSessionIssuer:
            type: object
            properties:
                attachment_scope:
                    type: string
                    description: Where the row is attached. global is platform-wide.
                    enum:
                        - project
                        - organization
                        - global
                authn_challenge_mode:
                    type: string
                    description: How multi-remote authn challenges are presented.
                    enum:
                        - chain
                        - interactive
                authorization_server_mode:
                    type: string
                    description: 'Which OAuth authorization server the issuer''s MCP servers point clients to: one per MCP server (endpoint), or one for the issuer at /oauth/usi/{id} (shared).'
                    enum:
                        - endpoint
                        - shared
                classification:
                    type: string
                    description: custom, or project_default_idp for the auto-provisioned issuer of private servers.
                    enum:
                        - custom
                        - project_default_idp
                client_id_metadata_admission_mode:
                    type: string
                    description: The stored CIMD admission mode. Absent when unset, which admits as open.
                    enum:
                        - disabled
                        - presets
                        - reporting
                        - open
                created_at:
                    type: string
                    format: date-time
                id:
                    type: string
                    description: The user session issuer ID.
                issuer_url_pinned:
                    type: boolean
                    description: Whether a shared authorization server's issuer URL is pinned, so it stays the same if the deployment's hosts change.
                other_servers_using_issuer:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminMcpServerHealthServerRef'
                    description: Other live servers in the project that share this issuer.
                remote_session_clients:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminMcpServerHealthRemoteSessionClient'
                    description: Remote session clients attached to the issuer.
                session_duration_hours:
                    type: integer
                    description: How long a user session lasts, in whole hours.
                    format: int64
                sessions:
                    $ref: '#/components/schemas/AdminMcpServerHealthUserSessions'
                slug:
                    type: string
                    description: The issuer slug.
                trusted_remote_session:
                    $ref: '#/components/schemas/AdminMcpServerHealthTrustedRemoteSession'
                use_authentication_host:
                    type: boolean
                    description: Whether the issuer announces the authentication host as its origin.
            description: The user session issuer that authenticates the server's users.
            required:
                - id
                - slug
                - classification
                - authn_challenge_mode
                - session_duration_hours
                - attachment_scope
                - use_authentication_host
                - authorization_server_mode
                - issuer_url_pinned
                - other_servers_using_issuer
                - created_at
                - sessions
                - remote_session_clients
        AdminMcpServerHealthUserSessions:
            type: object
            properties:
                distinct_subjects_ever:
                    type: integer
                    description: Distinct users that ever received a session from the issuer.
                    format: int64
                distinct_subjects_in_window:
                    type: integer
                    description: Distinct users that received a session inside the window.
                    format: int64
                first_issued_at:
                    type: string
                    description: When the first session was issued.
                    format: date-time
                last_issued_at:
                    type: string
                    description: When the latest session was issued or refreshed.
                    format: date-time
                live:
                    type: integer
                    description: Sessions whose refresh deadline has not passed.
                    format: int64
            description: User sessions the issuer has minted. A refresh replaces a session row, so last_issued_at includes refreshes. For an organization- or global-attached issuer the counts span every project using the issuer.
            required:
                - distinct_subjects_ever
                - distinct_subjects_in_window
                - live
        AdminMcpServerResourceScopeClient:
            type: object
            properties:
                client_id:
                    type: string
                    description: The remote session client ID.
                pin_would_decide:
                    type: boolean
                    description: 'Whether a pin, if set, decides this client''s request: the client owns the resource and neither its own scopes nor a challenge outranks the pin.'
                requested_scopes:
                    type: array
                    items:
                        type: string
                    description: The scopes a login would request.
                scope_source:
                    type: string
                    description: Which source decides the client's requested scopes.
                    enum:
                        - client_scope
                        - challenge_scope
                        - resource_pin
                        - live_resource
                        - cached_resource
                        - issuer_override
                        - issuer_omitted
                        - issuer_catalogue
                        - none
                unadvertised_pinned_scopes:
                    type: array
                    items:
                        type: string
                    description: Pinned scopes the MCP server does not advertise. They are still requested.
            description: What a login through one remote session client bound to the server would request now.
            required:
                - client_id
                - scope_source
                - requested_scopes
                - unadvertised_pinned_scopes
                - pin_would_decide
        AdminMcpServerResourceScopes:
            type: object
            properties:
                advertised_scopes:
                    type: array
                    items:
                        type: string
                    description: The RFC 9728 scopes_supported the resource advertises. Absent when unknown.
                advertised_scopes_known:
                    type: boolean
                    description: Whether the resource's advertised scopes are known from a fresh RFC 9728 read.
                challenge_scopes:
                    type: array
                    items:
                        type: string
                    description: Scopes named by the resource's last WWW-Authenticate challenge.
                clients:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminMcpServerResourceScopeClient'
                    description: Remote session clients bound to the server's user session issuer.
                pinned_scopes:
                    type: array
                    items:
                        type: string
                    description: Scopes pinned on the resource. Empty when there is no pin.
                resource_url:
                    type: string
                    description: The upstream URL the protected resource is keyed by.
                    format: uri
                shared_server_count:
                    type: integer
                    description: Other live MCP servers in the project with the same upstream URL. A pin applies to all of them.
                    format: int64
            description: The scopes logins through a remote-backed MCP server request, read from the cached protected resource without probing.
            required:
                - resource_url
                - pinned_scopes
                - advertised_scopes_known
                - challenge_scopes
                - shared_server_count
                - clients
        AdminMcpServerToolCallBucket:
            type: object
            properties:
                bucket_start:
                    type: string
                    format: date-time
                failed:
                    type: integer
                    description: Tool calls in the bucket that failed with status 400 or above. Tool errors returned inside HTTP 200 (isError) are not counted here.
                    format: int64
                total:
                    type: integer
                    description: Tool calls in the bucket.
                    format: int64
            description: Tool calls in one bucket of the series.
            required:
                - bucket_start
                - total
                - failed
        AdminMcpServerToolCallOutcomes:
            type: object
            properties:
                blocked:
                    type: integer
                    format: int64
                client_error:
                    type: integer
                    format: int64
                failed:
                    type: integer
                    format: int64
                server_error:
                    type: integer
                    format: int64
                success:
                    type: integer
                    format: int64
                unauthorized:
                    type: integer
                    format: int64
                unknown:
                    type: integer
                    format: int64
            description: Tool calls inside the window by outcome class. failed counts isError tool errors in 2xx/3xx responses and hook-reported tool errors; hosted rows recorded before 2026-10-15 and remote rows recorded before this change shipped still count as success.
            required:
                - success
                - unauthorized
                - client_error
                - server_error
                - blocked
                - failed
                - unknown
        AdminMcpServerToolCalls:
            type: object
            properties:
                bucket_seconds:
                    type: integer
                    description: Width of each series bucket.
                    format: int64
                daily:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminMcpServerToolCallBucket'
                    description: Tool calls per bucket, oldest first.
                outcomes:
                    $ref: '#/components/schemas/AdminMcpServerToolCallOutcomes'
                type:
                    type: string
                    enum:
                        - logging:disabled
                        - logging:enabled
                watermark:
                    type: string
                    description: Telemetry is complete up to this time.
                    format: date-time
                window_days:
                    type: integer
                    description: Length of the window in days.
                    format: int64
            description: 'One MCP server''s tool calls over a window, discriminated on type. logging:disabled carries nothing else: the organization''s logs are off, so calls were never recorded. logging:enabled carries every other field. Outcomes also count hook-observed calls; the daily series counts only calls that reached Speakeasy directly.'
            required:
                - type
        AdminMdmVendorOption:
            type: object
            properties:
                name:
                    type: string
                slug:
                    type: string
            required:
                - slug
                - name
        AdminMeterUsageBucket:
            type: object
            properties:
                from:
                    type: string
                    description: Inclusive UTC day boundary
                    format: date-time
                to:
                    type: string
                    description: Exclusive UTC day boundary
                    format: date-time
                total:
                    type: string
                    description: Exact integer ordinary usage quantity as a decimal string
            required:
                - from
                - to
                - total
        AdminMeterUsageResponse:
            type: object
            properties:
                billing_cycles:
                    type: array
                    items:
                        $ref: '#/components/schemas/MeterUsageWindow'
                    description: Trailing twelve billing-cycle date windows
                buckets:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminMeterUsageBucket'
                    description: Dense UTC daily ordinary usage buckets
                family:
                    type: string
                    enum:
                        - agent_session_storage
                        - mcp_bandwidth
                        - risk_content_scans
                measurement_method:
                    type: string
                queried_at:
                    type: string
                    description: Retrieval timestamp, not an ingestion watermark
                    format: date-time
                total:
                    type: string
                    description: Exact integer ordinary usage period total as a decimal string
                unit:
                    type: string
                    enum:
                        - stokens
                        - bytes
                window:
                    $ref: '#/components/schemas/MeterUsageWindow'
            required:
                - family
                - window
                - billing_cycles
                - unit
                - total
                - buckets
                - queried_at
                - measurement_method
        AdminOnboardingPlan:
            type: object
            properties:
                name:
                    type: string
                slug:
                    type: string
            required:
                - slug
                - name
        AdminOnboardingPlatform:
            type: object
            properties:
                family:
                    type: string
                name:
                    type: string
                slug:
                    type: string
                surface:
                    type: string
            required:
                - slug
                - name
                - family
                - surface
        AdminOnboardingPlaybook:
            type: object
            properties:
                description:
                    type: string
                id:
                    type: string
                is_default:
                    type: boolean
                    description: The default playbook of its use case. Only a shared playbook can be one.
                name:
                    type: string
                organization_id:
                    type: string
                    description: 'Set for a custom playbook: the one organization it belongs to. A playbook has a use case or an organization, never both.'
                organization_name:
                    type: string
                    description: That organization's name.
                steps:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminOnboardingPlaybookStep'
                    description: Top-level steps in walking order; a group brings its cards.
                use_case_id:
                    type: string
                    description: 'Set for a shared playbook: the use case it belongs to.'
                use_case_name:
                    type: string
                use_case_slug:
                    type: string
            required:
                - id
                - name
                - description
                - is_default
                - steps
        AdminOnboardingPlaybookList:
            type: object
            properties:
                playbooks:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminOnboardingPlaybook'
            required:
                - playbooks
        AdminOnboardingPlaybookStep:
            type: object
            properties:
                slug:
                    type: string
                title:
                    type: string
            required:
                - slug
                - title
        AdminOnboardingStack:
            type: object
            properties:
                mdm_vendor:
                    type: string
                    description: jamf, intune, iru, other or none. Absent until staff record the stack.
                mdm_vendor_name:
                    type: string
                    description: The software's name when mdm_vendor is other.
                organization_id:
                    type: string
                vendors:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminOnboardingStackVendor'
                    description: The vendors the organization uses. Empty until staff record the stack.
            required:
                - organization_id
                - vendors
        AdminOnboardingStackOptions:
            type: object
            properties:
                mdm_vendors:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminMdmVendorOption'
                    description: Device management software the form offers, ending with other.
                vendors:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminOnboardingVendorOption'
                    description: From the support matrix catalog, in catalog order.
            required:
                - vendors
                - mdm_vendors
        AdminOnboardingStackVendor:
            type: object
            properties:
                plan_slug:
                    type: string
                    description: The plan the organization is on with this vendor. Absent for a vendor with no plans.
                vendor:
                    type: string
            required:
                - vendor
        AdminOnboardingStep:
            type: object
            properties:
                completion:
                    type: string
                    description: 'How the step completes: manual, fact, or children for a group.'
                description:
                    type: string
                hidden_by_default:
                    type: boolean
                    description: Whether an organization that never saved a selection sees the step.
                method_slugs:
                    type: array
                    items:
                        type: string
                    description: Support matrix integration methods the step configures. Empty means the step applies to every stack.
                parent_slug:
                    type: string
                    description: The group this card sits under. Absent for a top-level step.
                requires:
                    type: array
                    items:
                        type: string
                    description: Slugs of the steps that must be done before this one.
                slug:
                    type: string
                title:
                    type: string
            required:
                - slug
                - title
                - description
                - completion
                - hidden_by_default
                - method_slugs
                - requires
        AdminOnboardingStepApplicability:
            type: object
            properties:
                applies:
                    type: boolean
                    description: Whether the recorded stack supports the step.
                reason:
                    type: string
                    description: Why not, when it does not.
                slug:
                    type: string
                title:
                    type: string
            required:
                - slug
                - title
                - applies
                - reason
        AdminOnboardingStepList:
            type: object
            properties:
                steps:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminOnboardingStep'
                    description: Every step in wizard order; a group precedes its cards.
            required:
                - steps
        AdminOnboardingUseCase:
            type: object
            properties:
                default_playbook_id:
                    type: string
                    description: The default playbook, once one is marked.
                description:
                    type: string
                id:
                    type: string
                name:
                    type: string
                slug:
                    type: string
                    description: Stable name the onboarding survey uses.
            required:
                - id
                - slug
                - name
                - description
        AdminOnboardingUseCaseList:
            type: object
            properties:
                use_cases:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminOnboardingUseCase'
            required:
                - use_cases
        AdminOnboardingVendorOption:
            type: object
            properties:
                plans:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminOnboardingPlan'
                    description: Plans the vendor sells. Empty for a vendor with no plans.
                platforms:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminOnboardingPlatform'
                    description: The vendor's products, all implied when the vendor is selected.
                vendor:
                    type: string
                    description: Vendor name as the support matrix spells it.
            required:
                - vendor
                - plans
                - platforms
        AdminOpenRouterKey:
            type: object
            properties:
                created_at:
                    type: string
                    description: When the key row was created.
                    format: date-time
                disable_causes:
                    type: array
                    items:
                        type: string
                    description: Administrative view of every reason currently disabling the key. Values are open-ended for forward compatibility.
                disabled:
                    type: boolean
                    description: Whether the key is locked down (refused locally and disabled upstream).
                gram_account_type:
                    type: string
                    description: The organization's Speakeasy account type (e.g. free, pro, enterprise).
                key_type:
                    type: string
                    description: 'Which upstream key this row provisions: ''chat'' pays for customer-facing completions, ''internal'' pays for platform-initiated LLM usage.'
                monthly_credits:
                    type: integer
                    description: Monthly credit ceiling last mirrored from OpenRouter.
                    format: int64
                organization_id:
                    type: string
                    description: Organization that owns the key.
                organization_name:
                    type: string
                    description: Display name of the owning organization.
                organization_slug:
                    type: string
                    description: Slug of the owning organization.
                updated_at:
                    type: string
                    description: When the key row was last updated.
                    format: date-time
            description: One organization's platform OpenRouter key of a given type, without its key material.
            required:
                - organization_id
                - organization_name
                - organization_slug
                - gram_account_type
                - key_type
                - monthly_credits
                - disabled
                - created_at
                - updated_at
        AdminOrganization:
            type: object
            properties:
                account_type:
                    type: string
                    description: Speakeasy account type (e.g. free, pro, payg, enterprise).
                adoption_dashboard_url:
                    type: string
                    description: Staff-entered link to the organization's adoption dashboard. Absent when none has been set.
                    format: uri
                created_at:
                    type: string
                    description: The creation date of the organization.
                    format: date-time
                creation_source:
                    type: string
                    description: The flow that created the organization (e.g. signup, assistants, platform_admin). Absent when nothing recorded one. Informational only.
                disabled_at:
                    type: string
                    description: The time at which the organization was disabled, if any.
                    format: date-time
                id:
                    type: string
                    description: The ID of the organization
                member_count:
                    type: integer
                    description: Number of active members in the organization.
                    format: int64
                name:
                    type: string
                    description: The name of the organization
                slug:
                    type: string
                    description: The slug of the organization
                stripe_customer_dashboard_url:
                    type: string
                    description: Link to the Stripe customer in the Stripe dashboard. Absent when the organization has no Stripe customer or the deployment has no Stripe API key configured.
                    format: uri
                stripe_customer_id:
                    type: string
                    description: Stripe customer ID, if billing metadata has a customer.
                stripe_subscription_dashboard_url:
                    type: string
                    description: Link to the Stripe subscription in the Stripe dashboard. Absent when the organization has no Stripe subscription or the deployment has no Stripe API key configured.
                    format: uri
                stripe_subscription_id:
                    type: string
                    description: Current Stripe subscription ID, if subscribed.
                trial_converted_at:
                    type: string
                    description: The time at which the trial converted to a paid plan, if any.
                    format: date-time
                trial_demoted_at:
                    type: string
                    description: The time at which the organization was demoted after its trial, if any.
                    format: date-time
                trial_ends_at:
                    type: string
                    description: The time at which the enterprise trial ends. Absent when the organization never trialled.
                    format: date-time
                trial_state:
                    type: string
                    description: Lifecycle state of the organization's enterprise trial.
                    enum:
                        - none
                        - running
                        - ending_soon
                        - expired
                        - demoted
                        - converted
                trial_tier:
                    type: string
                    description: The trial tier. Absent when the organization never trialled.
                updated_at:
                    type: string
                    description: The last update date of the organization.
                    format: date-time
                whitelisted:
                    type: boolean
                    description: Whether the organization is whitelisted for full access.
                workos_dashboard_url:
                    type: string
                    description: Link to the organization in the WorkOS dashboard. Absent when the organization is not linked to WorkOS or the deployment has no WorkOS environment configured.
                    format: uri
                workos_id:
                    type: string
                    description: WorkOS organization ID, if linked.
            description: Organization details surfaced to admin operators.
            required:
                - id
                - name
                - slug
                - account_type
                - whitelisted
                - member_count
                - created_at
                - updated_at
        AdminOrganizationMember:
            type: object
            properties:
                created_at:
                    type: string
                    format: date-time
                display_name:
                    type: string
                    description: User display name.
                email:
                    type: string
                    description: User email address.
                id:
                    type: string
                    description: User ID.
                last_login:
                    type: string
                    description: The time the user last logged in, if any.
                    format: date-time
                updated_at:
                    type: string
                    format: date-time
            description: Organization member surfaced to admin operators.
            required:
                - id
                - email
                - display_name
                - created_at
                - updated_at
        AdminOrganizationOnboardingPlaybook:
            type: object
            properties:
                applicability:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminOnboardingStepApplicability'
                    description: Each step of the assigned playbook against the recorded stack.
                organization_id:
                    type: string
                playbook:
                    $ref: '#/components/schemas/AdminOnboardingPlaybook'
            required:
                - organization_id
                - applicability
        AdminOrganizationStats:
            type: object
            properties:
                created_last_7_days:
                    type: integer
                    description: Organizations created in the last 7 days, whatever their current status.
                    format: int64
                customers:
                    type: integer
                    description: Organizations on a paid account type (payg or enterprise), disabled ones included.
                    format: int64
                customers_created_last_7_days:
                    type: integer
                    description: Customers created in the last 7 days, whatever their current status.
                    format: int64
                disabled:
                    type: integer
                    description: Organizations with disabled_at set.
                    format: int64
                disabled_last_7_days:
                    type: integer
                    description: Organizations disabled in the last 7 days.
                    format: int64
                total:
                    type: integer
                    description: Every organization on the platform, disabled ones included.
                    format: int64
                trials_ending_soon:
                    type: integer
                    description: Organizations whose trial_state is ending_soon.
                    format: int64
            description: Platform-wide organization counts surfaced above the admin organizations list.
            required:
                - total
                - created_last_7_days
                - customers
                - customers_created_last_7_days
                - trials_ending_soon
                - disabled
                - disabled_last_7_days
        AdminPaygBillingSummary:
            type: object
            properties:
                estimated_total_usd:
                    type: string
                other_inference_spend_usd:
                    type: string
                period_end:
                    type: string
                    format: date-time
                period_start:
                    type: string
                    format: date-time
                recorded_through:
                    type: string
                    format: date
                tum_cost_usd:
                    type: string
                tum_tokens:
                    type: integer
                    format: int64
                tum_unit_price_usd:
                    type: string
            required:
                - period_start
                - period_end
                - tum_tokens
                - tum_unit_price_usd
                - tum_cost_usd
                - other_inference_spend_usd
                - estimated_total_usd
        AdminPlatformMCPFeedback:
            type: object
            properties:
                category:
                    type: string
                    description: The feedback category.
                created_at:
                    type: string
                    description: When the feedback was sent.
                    format: date-time
                delivery_state:
                    type: string
                    description: The delivery state of the stored row.
                expires_at:
                    type: string
                    description: When the stored row is deleted.
                    format: date-time
                failure_category:
                    type: string
                    description: The optional failure or readiness category.
                id:
                    type: string
                    description: The feedback ID.
                    format: uuid
                note:
                    type: string
                    description: The optional free-form note.
                organization_id:
                    type: string
                    description: The organization ID.
                organization_name:
                    type: string
                    description: The organization name. Absent when the organization no longer exists.
                organization_slug:
                    type: string
                    description: The organization slug. Absent when the organization no longer exists.
                rating:
                    type: integer
                    description: The optional rating from 1 through 5.
                    format: int64
                subject_urn:
                    type: string
                    description: The session subject that sent the feedback.
                success:
                    type: boolean
                    description: The optional success outcome.
                tool_name:
                    type: string
                    description: The optional Platform MCP tool the feedback is about.
                user_email:
                    type: string
                    description: The email of the user who sent the feedback. Absent when the user no longer exists.
            description: One feedback report a user sent through the Platform MCP send_platform_mcp_feedback tool.
            required:
                - id
                - organization_id
                - subject_urn
                - category
                - delivery_state
                - created_at
                - expires_at
        AdminProject:
            type: object
            properties:
                created_at:
                    type: string
                    description: The creation date of the project.
                    format: date-time
                id:
                    type: string
                    description: The ID of the project
                mcp_server_count:
                    type: integer
                    description: Number of MCP servers in the project, counting both toolset-backed servers and mcp_servers rows.
                    format: int64
                name:
                    type: string
                    description: The name of the project
                slug:
                    type: string
                    description: The slug of the project
                updated_at:
                    type: string
                    description: The last update date of the project.
                    format: date-time
            description: Project summary surfaced to admin operators.
            required:
                - id
                - name
                - slug
                - mcp_server_count
                - created_at
                - updated_at
        AdminProjectDetail:
            type: object
            properties:
                active_deployment_id:
                    type: string
                    description: The deployment the project currently serves. Absent when no deployment has completed.
                api_key_count:
                    type: integer
                    description: Number of active API keys in the project.
                    format: int64
                assistant_count:
                    type: integer
                    description: Number of active assistants in the project.
                    format: int64
                created_at:
                    type: string
                    format: date-time
                deployment_count:
                    type: integer
                    description: Total number of deployments in the project.
                    format: int64
                environment_count:
                    type: integer
                    description: Number of active environments in the project.
                    format: int64
                functions_runner_version:
                    type: string
                    description: Functions runner version pin, if set.
                http_tool_count:
                    type: integer
                    description: Number of active HTTP tool definitions in the project.
                    format: int64
                id:
                    type: string
                    description: Project ID.
                logo_asset_id:
                    type: string
                    description: Project logo asset ID, if set.
                name:
                    type: string
                    description: Project name.
                organization_id:
                    type: string
                    description: Owning organization ID.
                slug:
                    type: string
                    description: Project slug.
                toolset_count:
                    type: integer
                    description: Number of active toolsets in the project.
                    format: int64
                updated_at:
                    type: string
                    format: date-time
            description: Full project detail surfaced to admin operators, including aggregated counts of child resources.
            required:
                - id
                - name
                - slug
                - organization_id
                - toolset_count
                - deployment_count
                - http_tool_count
                - environment_count
                - api_key_count
                - assistant_count
                - created_at
                - updated_at
        AdminProjectRedeployPreview:
            type: object
            properties:
                active_deployment_id:
                    type: string
                    description: Deployment a redeploy would clone. Send it back as expected_active_deployment_id.
                external_mcps:
                    type: integer
                    description: External MCP sources the new deployment would drop.
                    format: int64
                function_assets:
                    type: integer
                    description: Function sources whose runners would be deployed again.
                    format: int64
                openapi_assets:
                    type: integer
                    description: OpenAPI sources that would be processed again.
                    format: int64
                organization_id:
                    type: string
                    description: Organization that owns the project.
                packages:
                    type: integer
                    description: Packages carried into the new deployment.
                    format: int64
                project_id:
                    type: string
                    description: Project ID.
                project_name:
                    type: string
                    description: Project name.
            description: What redeploying a project would act on.
            required:
                - organization_id
                - project_id
                - project_name
                - active_deployment_id
                - openapi_assets
                - function_assets
                - packages
                - external_mcps
        AdminProjectRedeployResult:
            type: object
            properties:
                deployment_id:
                    type: string
                    description: New deployment. It becomes active only if processing succeeds.
                project_id:
                    type: string
                    description: Project ID.
                source_deployment_id:
                    type: string
                    description: Deployment that was cloned.
            description: The deployment a redeploy created. Processing continues after this returns.
            required:
                - project_id
                - source_deployment_id
                - deployment_id
        AdminRegistryEntry:
            type: object
            properties:
                created_at:
                    type: string
                data_json:
                    type: string
                    description: Complete lossless registry record JSON
                id:
                    type: string
                issues:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminRegistryIssue'
                published:
                    type: boolean
                updated_at:
                    type: string
                    description: Opaque write precondition; echo unchanged
            required:
                - id
                - data_json
                - published
                - created_at
                - updated_at
                - issues
        AdminRegistryIssue:
            type: object
            properties:
                message:
                    type: string
                path:
                    type: string
            required:
                - path
                - message
        AdminRegistryOktaCandidate:
            type: object
            properties:
                integrator:
                    type: boolean
                    description: Whether the name comes from an integrator listing rather than Okta's public catalog; any integrator account can publish under a vendor-like key, so confirm with care.
                mapped_by:
                    type: string
                    description: Name of the entry that already claims this key, when one does.
                oin_name:
                    type: string
                    description: Okta application name, the OIN key.
                organizations:
                    type: integer
                    description: How many organizations have the application.
                    format: int64
                reason:
                    type: string
                    description: 'domain: the vendor token matches a remote or website host; title: it matches the entry title; label: a tenant''s label equals the entry title.'
                    enum:
                        - domain
                        - title
                        - label
                sign_on_modes:
                    type: array
                    items:
                        type: string
                    description: Sign-on modes seen for the application.
            description: An Okta application name observed across synced tenants that plausibly belongs to a catalog entry. A proposal for staff to confirm, never applied automatically.
            required:
                - oin_name
                - organizations
                - sign_on_modes
                - reason
                - integrator
        AdminRegistryOktaCandidates:
            type: object
            properties:
                candidates:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminRegistryOktaCandidate'
                    description: Strongest reason first, then by organizations.
            required:
                - candidates
        AdminRegistryOktaUnmapped:
            type: object
            properties:
                names:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminRegistryOktaUnmappedName'
                    description: By organizations, most first. Okta's own applications are left out.
            required:
                - names
        AdminRegistryOktaUnmappedName:
            type: object
            properties:
                integrator:
                    type: boolean
                    description: Whether the name comes from an integrator listing rather than Okta's public catalog.
                oin_name:
                    type: string
                organizations:
                    type: integer
                    format: int64
                reason:
                    type: string
                    enum:
                        - domain
                        - title
                        - label
                sign_on_modes:
                    type: array
                    items:
                        type: string
                suggested_entry_id:
                    type: string
                    description: The entry the heuristic would map it to, when one matches.
                suggested_entry_name:
                    type: string
            description: An observed Okta application name no catalog entry claims.
            required:
                - oin_name
                - organizations
                - sign_on_modes
                - integrator
        AdminRegistryPage:
            type: object
            properties:
                entries:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminRegistrySummary'
                next_cursor:
                    type: string
            required:
                - entries
        AdminRegistryPromotionAuthDiscovery:
            type: object
            properties:
                auth_setup:
                    type: string
                    enum:
                        - none
                        - dcr
                        - cimd
                        - manual
                        - unknown
                status:
                    type: string
                    enum:
                        - complete
                        - partial
                        - unavailable
                        - not_required
                supports_cimd:
                    type: boolean
                supports_dcr:
                    type: boolean
            description: Publicly advertised authentication capabilities, not a verified OAuth connection.
            required:
                - supports_dcr
                - supports_cimd
                - auth_setup
                - status
        AdminRegistryPromotionCandidate:
            type: object
            properties:
                auth_discovery:
                    $ref: '#/components/schemas/AdminRegistryPromotionAuthDiscovery'
                can_override_eligibility:
                    type: boolean
                    description: Whether staff may explicitly accept this candidate's health evidence.
                checked_at:
                    type: string
                    format: date-time
                created_at:
                    type: string
                    format: date-time
                curation_revision:
                    type: string
                    format: uuid
                delivery_error:
                    type: string
                docs_attempts:
                    type: integer
                    format: int64
                docs_last_attempt_at:
                    type: string
                    format: date-time
                docs_next_attempt_at:
                    type: string
                    format: date-time
                docs_queued_at:
                    type: string
                    format: date-time
                docs_retry_allowed:
                    type: boolean
                docs_revision:
                    type: string
                docs_status:
                    type: string
                docs_url:
                    type: string
                eligible:
                    type: boolean
                endpoint_guide_slug:
                    type: string
                    description: Slug of the one pinned guide that documents the suggested public endpoint.
                id:
                    type: string
                mcp_server_id:
                    type: string
                observed_days:
                    type: integer
                    format: int64
                observed_failures:
                    type: integer
                    format: int64
                observed_successes:
                    type: integer
                    format: int64
                organization_id:
                    type: string
                project_id:
                    type: string
                promoted_at:
                    type: string
                    format: date-time
                public_title:
                    type: string
                reason:
                    type: string
                registry_entry_id:
                    type: string
                remote_mcp_server_id:
                    type: string
                setup_guides:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminRegistryPromotionSetupGuide'
                    description: Guides in the pinned setup-docs export, for warning when a slug is already taken. Present only with suggested_metadata. Guides merged after the pinned version are missing.
                setup_guides_version:
                    type: string
                    description: Pinned setup-docs export version that setup_guides came from.
                source_name:
                    type: string
                source_revision:
                    type: string
                status:
                    type: string
                suggested_metadata:
                    $ref: '#/components/schemas/AdminRegistryPromotionSuggestions'
            required:
                - created_at
                - curation_revision
                - id
                - organization_id
                - project_id
                - mcp_server_id
                - remote_mcp_server_id
                - source_revision
                - eligible
                - can_override_eligibility
                - reason
                - status
                - observed_successes
                - observed_failures
                - observed_days
                - docs_revision
                - docs_retry_allowed
                - docs_attempts
        AdminRegistryPromotionCandidates:
            type: object
            properties:
                candidates:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminRegistryPromotionCandidate'
                next_cursor:
                    type: string
            required:
                - candidates
        AdminRegistryPromotionSetupGuide:
            type: object
            properties:
                slug:
                    type: string
                title:
                    type: string
            description: A setup guide in the setup-docs export pinned in the server.
            required:
                - slug
                - title
        AdminRegistryPromotionSuggestions:
            type: object
            properties:
                auth_mode:
                    type: string
                    enum:
                        - none
                        - oauth
                docs_slug:
                    type: string
                documentation_url:
                    type: string
                public_description:
                    type: string
                public_name:
                    type: string
                public_title:
                    type: string
                public_url:
                    type: string
            description: Untrusted observed metadata suggestions. Staff must edit and explicitly confirm every value before publication.
        AdminRegistrySummary:
            type: object
            properties:
                id:
                    type: string
                issues:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminRegistryIssue'
                name:
                    type: string
                published:
                    type: boolean
                updated_at:
                    type: string
            required:
                - id
                - name
                - published
                - updated_at
                - issues
        AdminSession:
            type: object
            properties:
                email:
                    type: string
                name:
                    type: string
            required:
                - email
        AdminSignupOffer:
            type: object
            properties:
                created_at:
                    type: string
                    format: date-time
                enabled:
                    type: boolean
                id:
                    type: string
                    format: uuid
                name:
                    type: string
                signup_flow:
                    type: string
                    enum:
                        - tailscale_partner_gateway
                stripe_promotion_code_id:
                    type: string
                updated_at:
                    type: string
                    format: date-time
            required:
                - id
                - name
                - stripe_promotion_code_id
                - signup_flow
                - enabled
                - created_at
                - updated_at
        AdminSpendBreakdownResponse:
            type: object
            properties:
                billing_cycles:
                    type: array
                    items:
                        $ref: '#/components/schemas/MeterUsageWindow'
                    description: Trailing twelve billing-cycle date windows
                currency:
                    type: string
                    enum:
                        - USD
                pricing_basis:
                    type: string
                    enum:
                        - current_payg_list_price
                products:
                    type: array
                    items:
                        $ref: '#/components/schemas/SpendProduct'
                    description: The three metered products in stable display order
                queried_at:
                    type: string
                    description: Retrieval timestamp used to distinguish current and future buckets
                    format: date-time
                total_cost_usd:
                    type: string
                    description: Exact estimated total at current PAYG list prices
                window:
                    $ref: '#/components/schemas/MeterUsageWindow'
            required:
                - window
                - billing_cycles
                - currency
                - pricing_basis
                - queried_at
                - total_cost_usd
                - products
        AdminStripeCustomer:
            type: object
            properties:
                description:
                    type: string
                email:
                    type: string
                id:
                    type: string
                livemode:
                    type: boolean
                name:
                    type: string
            description: Stripe customer details shown to an admin before assignment.
            required:
                - id
                - livemode
        AdminStripeSubscription:
            type: object
            properties:
                cancel_at:
                    type: string
                    format: date-time
                cancel_at_period_end:
                    type: boolean
                canceled_at:
                    type: string
                    format: date-time
                current_period_end:
                    type: string
                    format: date-time
                current_period_start:
                    type: string
                    format: date-time
                payment_failed:
                    type: boolean
                status:
                    type: string
                    enum:
                        - incomplete
                        - incomplete_expired
                        - trialing
                        - active
                        - past_due
                        - canceled
                        - unpaid
                        - paused
                trial_end:
                    type: string
                    format: date-time
                trial_start:
                    type: string
                    format: date-time
            required:
                - status
                - current_period_start
                - current_period_end
                - cancel_at_period_end
                - payment_failed
        AdminStripeSubscriptionCandidate:
            type: object
            properties:
                customer_id:
                    type: string
                    description: Stripe customer that owns the subscription.
                id:
                    type: string
                    description: Stripe subscription ID returned by Stripe.
                status:
                    type: string
                    description: Stripe subscription status.
            description: Live Stripe subscription details shown before recording the subscription on a PAYG organization.
            required:
                - id
                - customer_id
                - status
        AdminUploadImageResult:
            type: object
            properties:
                asset:
                    $ref: '#/components/schemas/Asset'
                url:
                    type: string
                    description: Canonical public URL for the uploaded image
            required:
                - asset
                - url
        AdminUpstreamAuthEnforcement:
            type: object
            properties:
                blockers:
                    type: array
                    items:
                        type: string
                    description: What keeps enforcement from being turned on, empty when ready.
                enabled:
                    type: boolean
                    description: Whether enforcement is on.
                ready:
                    type: boolean
                    description: Whether the coverage enforcement needs is in place, so it can be turned on.
            description: One organization's upstream auth enforcement.
            required:
                - enabled
                - ready
                - blockers
        AdminUpstreamOAuthMigrationAuthClientKind:
            type: object
            properties:
                decided:
                    type: integer
                    description: Configuration and server links decided.
                    format: int64
                kind:
                    type: string
                    description: 'The kind: oauth, header or ema.'
                pending_clients:
                    type: integer
                    description: Auth clients not yet recorded.
                    format: int64
                pending_headers:
                    type: integer
                    description: Header copies and EMA scope sets not yet up to date.
                    format: int64
                pending_links:
                    type: integer
                    description: Server to auth client links not yet recorded.
                    format: int64
                pending_retirements:
                    type: integer
                    description: Backfilled auth clients and server links the configuration no longer yields, not yet retired.
                    format: int64
                unresolved:
                    type: integer
                    description: Configuration that cannot be recorded without a guess.
                    format: int64
            description: Where one kind of configured upstream identity stands.
            required:
                - kind
                - decided
                - pending_clients
                - pending_links
                - pending_headers
                - pending_retirements
                - unresolved
        AdminUpstreamOAuthMigrationAuthClients:
            type: object
            properties:
                associations:
                    type: integer
                    description: Configured identities and server links decided.
                    format: int64
                attachments_waiting:
                    type: integer
                    description: Agent attachments whose grants a run does not write while the organization's upstream selector writes are not allowed. While any wait, complete is false.
                    format: int64
                complete:
                    type: boolean
                    description: Whether every configured identity has its auth client, server links and header copies recorded, no backfilled record is left to retire, and no phase failed.
                failed_phases:
                    type: array
                    items:
                        type: string
                    description: 'Phases whose check failed: oauth, headers, ema, ema_warnings, reconcile, mark, selections or grants. The counts cover the other phases.'
                in_progress:
                    type: boolean
                    description: Whether a run is recording typed auth clients for the organization right now. The other counts are then empty; check again when it finishes.
                kinds:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminUpstreamOAuthMigrationAuthClientKind'
                    description: The same counts for each kind of configured identity.
                pending_clients:
                    type: integer
                    description: Auth clients not yet recorded.
                    format: int64
                pending_grants:
                    type: integer
                    description: Default auth permission grants (mcp:auth) the organization's roles, users, agents and API keys are missing, which a run adds. Enforcement needs them, so existing callers keep their access.
                    format: int64
                pending_headers:
                    type: integer
                    description: Header copies and EMA scope sets not yet up to date.
                    format: int64
                pending_links:
                    type: integer
                    description: Server to auth client links not yet recorded.
                    format: int64
                pending_marked_servers:
                    type: integer
                    description: 'Deprecated: always 0. Whether a server needs upstream authentication follows from the auth clients it offers, so no server is marked.'
                    format: int64
                pending_retirements:
                    type: integer
                    description: Backfilled auth clients and server links the configuration no longer yields, not yet retired.
                    format: int64
                pending_selection_mappings:
                    type: integer
                    description: Live credential choices with exactly one auth client to name, not yet named.
                    format: int64
                selection_classes:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminUpstreamOAuthMigrationSelectionClass'
                    description: Credential choice coverage for each credential class.
                selection_gap_count:
                    type: integer
                    description: Every live credential choice left without a usable auth client, including those beyond selection_gaps.
                    format: int64
                selection_gaps:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminUpstreamOAuthMigrationSelectionGap'
                    description: The first live credential choices left without a usable auth client.
                selections_complete:
                    type: boolean
                    description: Whether every live credential choice names a usable auth client or is an explicit no-auth choice, and the selections check did not fail.
                unresolved:
                    type: integer
                    description: Configured identities that cannot be recorded without a guess and need attention.
                    format: int64
                unresolved_associations:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminUpstreamOAuthMigrationUnresolvedAssociation'
                    description: The configuration counted in unresolved.
                warnings:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminUpstreamOAuthMigrationUnresolvedAssociation'
                    description: Configuration worth a look that needs no action and does not hold back complete, such as a server at an identity chaining upstream's origin that only live discovery could confirm.
            description: Where one organization stands in recording a typed auth client for every upstream identity its servers are configured with (upstream OAuth clients, source credential headers and identity chaining upstreams), and in retiring backfilled records the configuration no longer yields. Nothing reads these records yet.
            required:
                - complete
                - in_progress
                - associations
                - pending_clients
                - pending_links
                - pending_headers
                - pending_retirements
                - pending_marked_servers
                - unresolved
                - unresolved_associations
                - warnings
                - kinds
                - failed_phases
        AdminUpstreamOAuthMigrationExecutionProfileGap:
            type: object
            properties:
                execution_context:
                    type: string
                    description: user_backed for turns run for a user the event identified, userless for turns run as the trigger's workload.
                reason:
                    type: string
                    description: 'Why there is no choice: selection_required (several clients could serve it), personal_requires_user (only a personal client serves it, and the turn has no user), no_client (no live, enabled auth client carries its upstream OAuth client) or setup_incomplete (no auth client was ever linked to it, live or detached, but it has upstream credentials that no auth client records yet).'
                servers:
                    type: integer
                    description: Profile and server pairs with no choice for this reason.
                    format: int64
            description: MCP servers execution-selection profiles hold no choice for, for one execution context and reason.
            required:
                - execution_context
                - reason
                - servers
        AdminUpstreamOAuthMigrationExecutionProfiles:
            type: object
            properties:
                complete:
                    type: boolean
                    description: Whether every profile is recorded and holds a choice for every server its assistant reaches.
                gaps:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminUpstreamOAuthMigrationExecutionProfileGap'
                    description: 'Servers the profiles hold no choice for, by execution context and reason. They are never guessed: configure the server''s auth clients.'
                pending_versions:
                    type: integer
                    description: Profile versions not yet recorded.
                    format: int64
                targets:
                    type: integer
                    description: Assistant and trigger pairs, each with a profile per execution context.
                    format: int64
            description: Where one organization stands in recording, for each assistant, trigger and execution context, the versioned auth client choices its turns use.
            required:
                - complete
                - targets
                - pending_versions
                - gaps
        AdminUpstreamOAuthMigrationOrganization:
            type: object
            properties:
                id:
                    type: string
                    description: The organization ID.
                name:
                    type: string
                    description: The organization name.
                servers:
                    type: integer
                    description: Live MCP servers in the organization signed in through a user session issuer.
                    format: int64
                slug:
                    type: string
                    description: The organization slug.
            description: 'An organization the upstream OAuth migration applies to: it has a live MCP server signed in through a user session issuer.'
            required:
                - id
                - name
                - slug
                - servers
        AdminUpstreamOAuthMigrationOrganizations:
            type: object
            properties:
                organizations:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminUpstreamOAuthMigrationOrganization'
                    description: Every organization the migration applies to, by name.
            required:
                - organizations
        AdminUpstreamOAuthMigrationRun:
            type: object
            properties:
                associations_skipped:
                    type: integer
                    description: Associations not recorded because their configuration changed during the run. Run again to pick them up.
                    format: int64
                associations_written:
                    type: integer
                    description: Server to client associations recorded.
                    format: int64
                auth_client_links_written:
                    type: integer
                    description: Server to auth client links recorded.
                    format: int64
                auth_clients_error:
                    type: string
                    description: Why recording typed auth clients failed, when it did. The upstream OAuth migration itself is unaffected.
                auth_clients_written:
                    type: integer
                    description: Typed auth clients recorded.
                    format: int64
                auth_permission_grants_written:
                    type: integer
                    description: 'Default auth permissions this run granted across the organization: the personal default and shared client grants for every recorded client, and API key policies once every client is recorded. The auth-permission-defaults backfill grants the rest.'
                    format: int64
                execution_profile_versions_written:
                    type: integer
                    description: Execution-selection profile versions this run recorded.
                    format: int64
                selections_mapped:
                    type: integer
                    description: Credential choices this run named a typed auth client on.
                    format: int64
                selections_written:
                    type: integer
                    description: Credential choices recorded.
                    format: int64
                servers_marked_requiring_upstream_auth:
                    type: integer
                    description: 'Deprecated: always omitted. Whether a server needs upstream authentication follows from the auth clients it offers, so no server is marked.'
                    format: int64
                status:
                    $ref: '#/components/schemas/AdminUpstreamOAuthMigrationStatus'
            description: What one migration run wrote, and the organization's status after it.
            required:
                - associations_written
                - associations_skipped
                - selections_written
                - status
        AdminUpstreamOAuthMigrationSelectionClass:
            type: object
            properties:
                ambiguous:
                    type: integer
                    description: 'Choices several auth clients could serve. They are never guessed: configure the server or ask the credential to reconnect.'
                    format: int64
                credential_class:
                    type: string
                    description: 'The class: interactive, id_jag, dashboard_mint, workload or agent.'
                mapped:
                    type: integer
                    description: Choices that already name a usable auth client.
                    format: int64
                no_auth:
                    type: integer
                    description: Explicit no-auth choices on servers with no auth client.
                    format: int64
                no_client:
                    type: integer
                    description: Choices whose upstream OAuth client has no live, enabled auth client linked to the server.
                    format: int64
                pending:
                    type: integer
                    description: Choices with exactly one auth client to name, not yet named.
                    format: int64
                selections:
                    type: integer
                    description: Live credential choices of this class.
                    format: int64
                stale_no_auth:
                    type: integer
                    description: No-auth choices, and choices naming the server's headers, on servers that now offer an OAuth-backed client; the credential reconnects.
                    format: int64
                unusable:
                    type: integer
                    description: Choices naming an auth client that is no longer usable for the server; the credential reconnects.
                    format: int64
            description: How the live credential choices of one credential class map onto typed auth clients.
            required:
                - credential_class
                - selections
                - mapped
                - pending
                - no_auth
                - ambiguous
                - no_client
                - stale_no_auth
                - unusable
        AdminUpstreamOAuthMigrationSelectionGap:
            type: object
            properties:
                credential_class:
                    type: string
                    description: The class of the credential the choice belongs to.
                credential_id:
                    type: string
                    description: The credential.
                    format: uuid
                mcp_server_id:
                    type: string
                    description: The server the choice is for.
                    format: uuid
                outcome:
                    type: string
                    description: 'Why the choice has no usable auth client: ambiguous, no_client, stale_no_auth, unusable or skipped_race.'
                project_id:
                    type: string
                    description: The server's project.
                    format: uuid
                selection_id:
                    type: string
                    description: The choice.
                    format: uuid
            description: One live credential choice left without a usable typed auth client.
            required:
                - selection_id
                - credential_class
                - credential_id
                - mcp_server_id
                - project_id
                - outcome
        AdminUpstreamOAuthMigrationServer:
            type: object
            properties:
                mcp_server_id:
                    type: string
                    description: The MCP server ID.
                    format: uuid
                project_id:
                    type: string
                    description: The server's project ID.
                    format: uuid
            description: An MCP server whose upstream OAuth client the existing configuration does not prove. An administrator must associate its client before the organization is migrated.
            required:
                - mcp_server_id
                - project_id
        AdminUpstreamOAuthMigrationStatus:
            type: object
            properties:
                auth_clients:
                    $ref: '#/components/schemas/AdminUpstreamOAuthMigrationAuthClients'
                credentials:
                    type: integer
                    description: Live user session credentials scanned.
                    format: int64
                enforcement:
                    $ref: '#/components/schemas/AdminUpstreamAuthEnforcement'
                execution_profiles:
                    $ref: '#/components/schemas/AdminUpstreamOAuthMigrationExecutionProfiles'
                migrated:
                    type: boolean
                    description: Whether the organization has nothing left to write and no server needing configuration.
                organization_id:
                    type: string
                    description: The organization ID.
                pending_associations:
                    type: integer
                    description: Server to client associations the configuration proves that are not yet recorded.
                    format: int64
                pending_selections:
                    type: integer
                    description: Credential choices the configuration decides that are not yet recorded.
                    format: int64
                reconnect_credentials:
                    type: integer
                    description: Credentials with at least one server they will be asked to reconnect to, because no single client is decided for them.
                    format: int64
                servers:
                    type: integer
                    description: MCP servers on a user session issuer that the association backfill decided.
                    format: int64
                unresolved_servers:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminUpstreamOAuthMigrationServer'
                    description: Servers whose upstream OAuth client must be associated by an administrator.
            description: 'Where one organization stands in the upstream OAuth migration, read from a dry run of its backfills. The organization is migrated when nothing is left to write and no server needs configuring. Credentials that must reconnect do not block it: they are asked to sign in again once serving reads their choices. Typed auth clients are reported separately in auth_clients and never affect migrated.'
            required:
                - organization_id
                - migrated
                - servers
                - pending_associations
                - unresolved_servers
                - credentials
                - pending_selections
                - reconnect_credentials
        AdminUpstreamOAuthMigrationUnresolvedAssociation:
            type: object
            properties:
                association_id:
                    type: string
                    description: The server to upstream OAuth client association ID, for an oauth association.
                    format: uuid
                auth_client_id:
                    type: string
                    description: The auth client already recorded, if any.
                    format: uuid
                binding_ids:
                    type: array
                    items:
                        type: string
                        format: uuid
                    description: Every identity chaining binding decided together, for ema.
                kind:
                    type: string
                    description: 'What was decided: oauth, header or ema.'
                mcp_server_id:
                    type: string
                    description: The MCP server ID, when one server is concerned.
                    format: uuid
                project_id:
                    type: string
                    description: The project the configuration belongs to.
                    format: uuid
                reason:
                    type: string
                    description: 'Why it cannot be recorded: unknown_owner, type_mismatch, project_mismatch, multiple_authorization_headers, duplicate_header_names, denied_source, mixed_credential_headers, oauth_client_shared_across_sources, ema_client_shared_across_sources, conflicting_scopes, resource_variants, resource_not_matched, issuer_not_allowed or registration_out_of_reach; for a warning, server_not_matched.'
                remote_session_client_id:
                    type: string
                    description: The upstream OAuth client ID, for oauth and ema.
                    format: uuid
                server_ids:
                    type: array
                    items:
                        type: string
                        format: uuid
                    description: The servers concerned, for an upstream OAuth client shared across sources.
                source_ids:
                    type: array
                    items:
                        type: string
                        format: uuid
                    description: The sources concerned, for an upstream OAuth client shared across sources.
                subject_id:
                    type: string
                    description: The association, source, upstream OAuth client or first binding decided.
                    format: uuid
            description: Configuration the typed auth client backfill cannot record without a guess, and why. ID fields that do not apply to its kind are the nil UUID.
            required:
                - kind
                - reason
                - subject_id
                - association_id
                - mcp_server_id
                - project_id
                - remote_session_client_id
                - binding_ids
                - source_ids
                - server_ids
        AdminUser:
            type: object
            properties:
                display_name:
                    type: string
                email:
                    type: string
                id:
                    type: string
                last_login:
                    type: string
                    format: date-time
                organization_count:
                    type: integer
                    format: int64
                organizations:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminUserOrganization'
            required:
                - id
                - display_name
                - email
                - organizations
                - organization_count
        AdminUserOrganization:
            type: object
            properties:
                disabled_at:
                    type: string
                    format: date-time
                id:
                    type: string
                name:
                    type: string
                slug:
                    type: string
            required:
                - id
                - name
                - slug
        AdmitWorkloadSubjectForm:
            type: object
            properties:
                agent_id:
                    type: string
                    description: The agent whose policy the admitted workload inherits.
                    format: uuid
                issuer:
                    type: string
                    description: The issuer identifier of an already-trusted issuer, resolved within the caller's organization. Naming one the caller cannot see is a not-found, not a permission error.
                    format: uri
                match_kind:
                    type: string
                    description: 'How the subject is compared: exact compares the whole value; wildcard requires a trailing * and matches anything beginning with the value before it. Wildcard additionally requires the issuer to permit it. Defaults to exact.'
                    default: exact
                    enum:
                        - exact
                        - wildcard
                name:
                    type: string
                    description: Optional label, for platforms whose subjects are not self-describing.
                    minLength: 1
                project_scoped:
                    type: boolean
                    description: Admit the subject for the selected project alone rather than the whole organization. Requires an explicitly selected project via the Gram-Project header or a project-bound API key. Dashboard sessions require access to that project. Defaults to false.
                    default: false
                subject:
                    type: string
                    description: The sub claim the issuer must assert, stored and compared exactly as supplied.
                tags:
                    type: array
                    items:
                        type: string
                    description: Free-form labels for finding the admitted workload in a long list. Flat strings, not key/value pairs. Trimmed and de-duplicated on write, then limited to 40 tags of at most 64 characters each.
            description: Form for admitting a workload subject and assigning its agent.
            required:
                - issuer
                - subject
                - agent_id
        AgentConnectionBlock:
            type: object
            properties:
                agent_id:
                    type: string
                    description: The blocked agent
                    format: uuid
                created_at:
                    type: string
                    format: date-time
                id:
                    type: string
                    format: uuid
                remote_session_client_id:
                    type: string
                    description: The upstream OAuth client the connection uses; the block covers every auth client sharing it
                    format: uuid
            description: An agent the caller blocked from their own connection through one upstream OAuth client.
            required:
                - id
                - agent_id
                - remote_session_client_id
                - created_at
        AgentConnectionBlockIDForm:
            type: object
            properties:
                block_id:
                    type: string
                    description: Connection block identifier
                    format: uuid
            required:
                - block_id
        AgentCrashBuild:
            type: object
            properties:
                arch:
                    type: string
                    maxLength: 16
                binary:
                    type: string
                    description: speakeasyd or speakeasy-ui.
                    maxLength: 32
                channel:
                    type: string
                    description: Release channel.
                    maxLength: 32
                os:
                    type: string
                    maxLength: 16
                os_version:
                    type: string
                    description: OS release, e.g. 15.4 on macOS or the kernel release on Linux.
                    maxLength: 64
                version:
                    type: string
                    maxLength: 64
            required:
                - binary
                - version
        AgentCrashFrame:
            type: object
            properties:
                file:
                    type: string
                    description: Module-relative source file.
                    maxLength: 512
                function:
                    type: string
                    description: Fully qualified function name.
                    maxLength: 512
                line:
                    type: integer
                    format: int64
                    minimum: 0
                    maximum: 1e+07
            required:
                - function
        AgentCrashReport:
            type: object
            properties:
                build:
                    $ref: '#/components/schemas/AgentCrashBuild'
                component:
                    type: string
                    description: 'Where it happened: ipc, policy_scheduler, update_scheduler, aiscan, sessions, ui or runtime.'
                    maxLength: 32
                count:
                    type: integer
                    description: Times this crash recurred in one process before it was reported.
                    format: int64
                    minimum: 1
                    maximum: 1e+06
                id:
                    type: string
                    description: Random report id; repeats of the same id are one report.
                    minLength: 1
                    maxLength: 64
                kind:
                    type: string
                    description: fatal, recovered or rollback.
                    maxLength: 32
                message:
                    type: string
                    description: Go runtime error text, when the panic was one. Other panics send panic_type instead.
                    maxLength: 512
                occurred_at:
                    type: string
                    description: When it happened, by the device clock.
                    format: date-time
                other_goroutines:
                    type: integer
                    description: Goroutines in a fatal dump besides the crashing one. Their stacks are not sent.
                    format: int64
                    minimum: 0
                    maximum: 1e+06
                panic_type:
                    type: string
                    description: Go type of a non-runtime panic value.
                    maxLength: 256
                rollback:
                    $ref: '#/components/schemas/AgentCrashRollback'
                schema_version:
                    type: integer
                    description: Report schema version.
                    format: int64
                    minimum: 1
                stack:
                    type: array
                    items:
                        $ref: '#/components/schemas/AgentCrashFrame'
                    description: Frames of the crashing goroutine, innermost first.
                    maxItems: 50
            description: 'One device agent crash: a fatal crash, a recovered panic, or a self-rollback.'
            required:
                - schema_version
                - id
                - kind
                - component
                - occurred_at
                - count
                - build
        AgentCrashRollback:
            type: object
            properties:
                from:
                    type: string
                    description: Version that failed to stabilize.
                    maxLength: 64
                to:
                    type: string
                    description: Version restored.
                    maxLength: 64
        AgentDelegatedGrant:
            type: object
            properties:
                scope:
                    type: string
                selector:
                    $ref: '#/components/schemas/AgentPolicySelector'
            required:
                - scope
                - selector
        AgentDelegatedPolicy:
            type: object
            properties:
                effective:
                    type: array
                    items:
                        $ref: '#/components/schemas/AgentDelegatedGrant'
                requested:
                    type: array
                    items:
                        $ref: '#/components/schemas/AgentDelegatedGrant'
            required:
                - requested
                - effective
        AgentExpectedPolicy:
            type: object
            properties:
                scope:
                    type: string
                    description: Scope of the grant originally read
                    minLength: 1
                selector:
                    $ref: '#/components/schemas/AgentPolicySelector'
            required:
                - scope
                - selector
        AgentIDForm:
            type: object
            properties:
                agent_id:
                    type: string
                    description: First-class agent identifier
                    format: uuid
            required:
                - agent_id
        AgentKeyAuthClientChoice:
            type: object
            properties:
                auth_client_id:
                    type: string
                    description: The auth client the key uses there. Omit for a server whose upstream needs no authentication.
                    format: uuid
                mcp_server_id:
                    type: string
                    description: The MCP server.
                    format: uuid
            description: The upstream credential an agent key uses on one MCP server.
            required:
                - mcp_server_id
        AgentMCPServer:
            type: object
            properties:
                audience:
                    type: string
                    description: The exact `aud` the identity assertion must carry for token_endpoint. Present exactly when token_endpoint is.
                name:
                    type: string
                    description: 'Stable key the agent writes the server under in each tool''s MCP configuration: `speakeasy-` followed by the server''s slug, using only lowercase letters, digits and `-`. Unique within the response; a second server with the same name gets a numeric suffix such as `speakeasy-linear-2`.'
                    pattern: ^speakeasy-[a-z0-9-]+$
                resource:
                    type: string
                    description: Resource indicator (RFC 8707) to send with the grant. Present only when token_endpoint mints sessions for this one server; absent when it mints one session for every server of its issuer.
                token_endpoint:
                    type: string
                    description: Token endpoint where a workload exchanges an identity assertion (RFC 7523 JWT bearer grant) for a session that reaches this server. Absent when the server's authorization server offers no workload grant, so the server cannot be reached without a person.
                tools:
                    type: array
                    items:
                        type: string
                    description: Stable IDs of the managed tools this server applies to. Absent or empty means every managed tool.
                url:
                    type: string
                    description: The server's streamable-HTTP URL.
            required:
                - name
                - url
        AgentMarketplace:
            type: object
            properties:
                name:
                    type: string
                    description: Stable identifier for the marketplace, used as its key when the agent registers it with a managed tool. Matches the name written into the published marketplace.json, derived from the organization name (for example, `<org-slug>-gram`), so plugin references resolve deterministically across polls.
                url:
                    type: string
                    description: Git URL for the marketplace, served by the marketplace proxy.
            required:
                - name
                - url
        AgentOwnerAssignmentForm:
            type: object
            properties:
                agent_id:
                    type: string
                    description: First-class agent identifier
                    format: uuid
                owner_user_id:
                    type: string
                    description: Eligible same-organization human replacement owner
            required:
                - agent_id
                - owner_user_id
        AgentOwnerProfile:
            type: object
            properties:
                display_name:
                    type: string
                photo_url:
                    type: string
            required:
                - display_name
        AgentPermissions:
            type: object
            properties:
                authorize:
                    type: boolean
                    description: Whether the current human may manage credentials for this agent
                read:
                    type: boolean
                    description: Whether the current human may read this agent
                transfer:
                    type: boolean
                    description: Whether the current human may transfer or reassign this agent
                write:
                    type: boolean
                    description: Whether the current human may configure or change this agent
            required:
                - read
                - write
                - authorize
                - transfer
        AgentPlugin:
            type: object
            properties:
                description:
                    type: string
                    description: Short description of the plugin, when one is set.
                install_mode:
                    type: string
                    description: 'How the agent installs the plugin. `required`: installed, and the user can''t turn it off. `default`: installed, and the user can turn it off. `available`: not installed until the user turns it on. Agents that predate this field install every listed plugin.'
                    enum:
                        - required
                        - default
                        - available
                marketplace_name:
                    type: string
                    description: Name of the marketplace this plugin lives in. Always equals the `name` of one of the marketplaces in the same response.
                name:
                    type: string
                    description: Display name of the plugin. Absent for the synthesized observability plugin.
                servers:
                    type: array
                    items:
                        $ref: '#/components/schemas/AgentPluginServer'
                    description: 'MCP servers the plugin contains, in display order, possibly none. Display-only: the agent installs the plugin, not these entries. Absent for the synthesized observability plugin, which carries hooks rather than servers.'
                slug:
                    type: string
                    description: Plugin slug. Combined with marketplace_name, this identifies the plugin in the managed tool.
            required:
                - slug
                - marketplace_name
                - install_mode
        AgentPluginServer:
            type: object
            properties:
                dashboard_url:
                    type: string
                    description: Link to the server's page in the Speakeasy dashboard. Present only when the enrolled user holds mcp:read on the server; the agent tells the user that links need that scope when it is absent.
                    format: uri
                id:
                    type: string
                    description: Stable identifier of the server, the same in every plugin that contains it. Matches the id getMyConnections reports the server's sign-in state under. Absent from servers predating the field.
                name:
                    type: string
                    description: Display name of the server within its plugin.
            required:
                - name
        AgentPolicyGrant:
            type: object
            properties:
                created_at:
                    type: string
                    format: date-time
                effect:
                    type: string
                    enum:
                        - allow
                id:
                    type: string
                    format: uuid
                scope:
                    type: string
                selector:
                    $ref: '#/components/schemas/AgentPolicySelector'
                updated_at:
                    type: string
                    format: date-time
            required:
                - id
                - scope
                - effect
                - selector
                - created_at
                - updated_at
        AgentPolicyGrantCheck:
            type: object
            properties:
                allowed:
                    type: boolean
                    description: Whether the grant fits within the caller's and the owner's permissions.
                limited_by:
                    type: string
                    description: Whose permissions the grant exceeds; absent when allowed.
                    enum:
                        - caller
                        - owner
            description: Whether one policy grant could be written, by the same rule agents.create and agents.createPolicyGrant enforce.
            required:
                - allowed
        AgentPolicyGrantForm:
            type: object
            properties:
                effect:
                    type: string
                    description: Grant effect; direct agent policy is allow-only
                    enum:
                        - allow
                scope:
                    type: string
                    description: Agent-runtime-safe scope to grant
                    minLength: 1
                selector:
                    $ref: '#/components/schemas/AgentPolicySelector'
            required:
                - scope
                - effect
                - selector
        AgentPolicyGrantIDForm:
            type: object
            properties:
                agent_id:
                    type: string
                    description: First-class agent identifier
                    format: uuid
                grant_id:
                    type: string
                    description: Direct policy grant identifier
                    format: uuid
            required:
                - grant_id
                - agent_id
        AgentPolicySelector:
            type: object
            properties:
                client_type:
                    type: string
                    description: Auth client type filter (mcp:auth and mcp:blocked_auth scopes only).
                    enum:
                        - remote_session
                        - service_account
                        - static_credential
                        - pass_through
                        - ema
                        - '*'
                connection_owner:
                    type: string
                    description: 'Personal connection owner filter (mcp:auth and mcp:blocked_auth scopes on remote_session clients only): a user ID, ''*'', or ''$represented_user''.'
                disposition:
                    type: string
                    description: Tool disposition filter (MCP scopes only).
                    enum:
                        - read_only
                        - destructive
                        - idempotent
                        - open_world
                project_id:
                    type: string
                    description: Project filter (MCP, environment, assistant, inference, mcp:auth and mcp:blocked_auth scopes).
                resource_id:
                    type: string
                    description: The resource identifier, or '*' for all resources of this kind.
                resource_kind:
                    type: string
                    description: The kind of resource this selector targets.
                    enum:
                        - project
                        - mcp
                        - org
                        - environment
                        - skill
                        - assistant
                        - risk_policy
                        - chat
                        - inference
                        - agent
                        - mcp_auth_client
                        - '*'
                server_identity:
                    type: string
                    description: Server identity filter (risk policy scopes only).
                server_url:
                    type: string
                    description: Server URL filter (risk policy scopes only).
                    format: uri
                tool:
                    type: string
                    description: Specific tool name filter (MCP scopes only).
                upstream_client:
                    type: string
                    description: Upstream OAuth client filter (mcp:auth and mcp:blocked_auth scopes on remote_session clients only). Together with connection_owner it names one person's connection across every auth client sharing that upstream client.
            description: A constraint that narrows which resources an agent grant applies to.
            required:
                - resource_kind
                - resource_id
        AgentPollingPrincipal:
            type: object
            properties:
                display_name:
                    type: string
                    description: Human-readable name of the agent identity.
                urn:
                    type: string
                    description: Principal URN of the agent identity, for example `agent:<uuid>`.
            required:
                - urn
                - display_name
        AgentServerConnection:
            type: object
            properties:
                connect_url:
                    type: string
                    description: Page that signs the user in to this server in the browser. Present when state is not_connected or reauthorization_required.
                    format: uri
                hidden:
                    type: boolean
                    description: True when the user hid this server, from the gateway consent page or the device agent. Absent when not hidden.
                id:
                    type: string
                    description: The server's id, as getPlugins reports it on each plugin server.
                request_access_url:
                    type: string
                    description: Page where the user can ask an administrator for access to this server. Present only when state is no_access and the organization accepts access requests.
                    format: uri
                state:
                    type: string
                    description: '`connected`: the user is signed in. `not_connected`: the user has not signed in. `reauthorization_required`: a sign-in exists but must be renewed. `not_required`: the server needs no sign-in from the user. `setup_required`: an administrator must finish the server''s sign-in setup first. `no_access`: the user lacks permission to connect to the server. `unknown`: the state can''t be determined, for example for a gateway.'
                    enum:
                        - connected
                        - not_connected
                        - reauthorization_required
                        - not_required
                        - setup_required
                        - no_access
                        - unknown
            required:
                - id
                - state
        AgentSession:
            type: object
            properties:
                authorizer_user_id:
                    type: string
                client_name:
                    type: string
                created_at:
                    type: string
                    format: date-time
                expires_at:
                    type: string
                    format: date-time
                id:
                    type: string
                    format: uuid
                issuer_id:
                    type: string
                    format: uuid
                issuer_slug:
                    type: string
                last_used_at:
                    type: string
                    format: date-time
                project_id:
                    type: string
                    format: uuid
                refresh_expires_at:
                    type: string
                    format: date-time
                subject_kind:
                    type: string
                    description: 'Who signed in: the agent itself, or a workload that federation assigns to the agent.'
                    enum:
                        - agent
                        - workload
                workload_subject:
                    type: string
                    description: The workload's subject as its platform issued it. Set only when subject_kind is workload.
            required:
                - id
                - issuer_id
                - issuer_slug
                - created_at
                - expires_at
                - refresh_expires_at
                - subject_kind
        AgentSessionMeta:
            type: object
            properties:
                chat_id:
                    type: string
                    description: Speakeasy chat id for the captured session.
                    format: uuid
                session_id:
                    type: string
                    description: The native harness session identifier this entry resolves, echoed from the request.
                title:
                    type: string
                    description: Generated (or manually set) chat title. Absent when no title has been generated yet.
                updated_at:
                    type: string
                    description: Last activity recorded for the captured session.
                    format: date-time
            required:
                - session_id
                - chat_id
                - updated_at
        AgentStatePolicy:
            type: object
            properties:
                applied_at:
                    type: string
                    description: When the agent first applied this etag. Later reconciles of the same etag keep this time.
                    format: date-time
                applied_etag:
                    type: string
                    description: Etag of the getPlugins snapshot the last reconcile applied. Omitted before the agent has applied one.
                    maxLength: 128
                remote_config_etag:
                    type: string
                    description: Etag of the remote configuration the agent applied.
                    maxLength: 128
                remote_config_failed:
                    type: boolean
                    description: True when the agent could not apply the remote configuration it last received and kept its previous settings.
                withheld_plugins:
                    type: array
                    items:
                        $ref: '#/components/schemas/AgentStateWithheldPlugin'
                    description: Optional plugins the agent left out of the applied set because of a user choice. Required plugins are never withheld.
                    maxItems: 500
            description: The policy the agent's last reconcile applied.
            required:
                - withheld_plugins
        AgentStateRollback:
            type: object
            properties:
                at:
                    type: string
                    description: When the rollback happened.
                    format: date-time
                from:
                    type: string
                    description: Version that failed to stabilize.
                    maxLength: 64
                to:
                    type: string
                    description: Version the daemon reverted to.
                    maxLength: 64
            description: 'A self-rollback: the daemon reverted an update that did not stabilize.'
            required:
                - at
        AgentStateTool:
            type: object
            properties:
                action_required:
                    type: boolean
                    description: True when a problem the user can fix is blocking this tool.
                drift_corrections:
                    type: integer
                    description: Times since drift_counting_since the agent rewrote what it owns in this tool although the applied policy had not changed. Omitted when this tool's syncer does not measure drift.
                    format: int64
                    minimum: 0
                    maximum: 2.147483647e+09
                error_kind:
                    type: string
                    description: 'Class of a reconcile error: permission_denied, not_found, invalid_config, or unknown.'
                    maxLength: 32
                layer:
                    type: string
                    description: 'Resolved enforcement layer: user, managed, or off.'
                    maxLength: 16
                outcome:
                    type: string
                    description: 'Reconcile outcome: armed, pending, skipped (tool not installed), error, or unmanaged.'
                    maxLength: 16
                pending_reason:
                    type: string
                    description: 'Why a pending tool is not yet enforcing: privileged_writer_not_ready or plugin_bundle_not_cloned.'
                    maxLength: 64
                restart_required:
                    type: boolean
                    description: True when the agent wrote configuration the tool loads only after it restarts.
                tool:
                    type: string
                    description: Stable tool id, e.g. claude_code.
                    minLength: 1
                    maxLength: 64
            description: 'One managed tool''s outcome from the agent''s last reconcile. Carries no error text or user-facing message: those can name paths and entries the agent does not own.'
            required:
                - tool
                - layer
                - outcome
        AgentStateUpdate:
            type: object
            properties:
                auto_update:
                    type: string
                    description: 'Auto-update mode: disabled, notify, or automatic.'
                    maxLength: 16
                channel:
                    type: string
                    description: Release channel the agent resolved to.
                    maxLength: 32
                current_blocked:
                    type: boolean
                    description: True when the running build is in blocked_versions.
                last_rollback:
                    $ref: '#/components/schemas/AgentStateRollback'
                pinned_target:
                    type: string
                    description: Version the organization pinned the fleet to, when set.
                    maxLength: 64
            description: The device agent's update posture.
        AgentStateVersions:
            type: object
            properties:
                arch:
                    type: string
                    description: CPU architecture (Go GOARCH), e.g. arm64.
                    maxLength: 32
                os:
                    type: string
                    description: Operating system (Go GOOS), e.g. darwin.
                    maxLength: 32
                speakeasy:
                    type: string
                    description: Version of the speakeasy CLI, when the agent could read it.
                    maxLength: 64
                speakeasy_ui:
                    type: string
                    description: Version of the menu bar app, when the agent could read it.
                    maxLength: 64
                speakeasyd:
                    type: string
                    description: Version of the speakeasyd daemon.
                    maxLength: 64
            description: Versions of the device agent's binaries and the platform they run on.
            required:
                - speakeasyd
        AgentStateWithheldPlugin:
            type: object
            properties:
                marketplace:
                    type: string
                    description: Marketplace the plugin belongs to.
                    maxLength: 128
                reason:
                    type: string
                    description: 'Why it was withheld: user_disabled for a default-on plugin the user turned off, not_opted_in for an opt-in plugin the user has not turned on.'
                    maxLength: 32
                slug:
                    type: string
                    description: The plugin's slug.
                    minLength: 1
                    maxLength: 128
            description: One optional plugin the agent left out of the applied set.
            required:
                - slug
                - reason
        AgentUsage:
            type: object
            properties:
                claude:
                    $ref: '#/components/schemas/ClaudeAgentUsage'
                type:
                    type: string
                    description: The agent usage payload discriminator.
                    enum:
                        - claude
            required:
                - type
        AiScanTarget:
            type: object
            properties:
                access:
                    $ref: '#/components/schemas/AIToolAccessSummary'
                category:
                    type: string
                    description: 'Target category: harness (an AI coding tool), assistant (a general-purpose AI assistant or agent), or local_model (an open model run locally).'
                    enum:
                        - harness
                        - assistant
                        - local_model
                created_at:
                    type: string
                    description: When the organization's row was created; absent for an untouched default.
                    format: date-time
                customized:
                    type: boolean
                    description: For a built-in, whether the organization has recorded an access decision about it. Always false for organization targets.
                display_name:
                    type: string
                    description: Name shown in the dashboard.
                    maxLength: 128
                gateway_client:
                    $ref: '#/components/schemas/AiScanTargetGatewayClient'
                id:
                    type: string
                    description: Stable id agents report and detections key on.
                    pattern: ^[a-z0-9][a-z0-9-]{0,63}$
                origin:
                    type: string
                    description: 'Where the target comes from: default (a Speakeasy built-in, whose definition is read-only) or organization (added by the organization, fully editable). Every target listed here is probed for; a built-in leaves the list by being removed from Speakeasy''s catalog, an organization target by being deleted.'
                    enum:
                        - default
                        - organization
                signatures:
                    $ref: '#/components/schemas/AiScanTargetSignatures'
                updated_at:
                    type: string
                    description: When the organization's row last changed; absent for an untouched default.
                    format: date-time
                version_plist_key:
                    type: string
                    description: Info.plist key the installed version is read from on a bundle match; defaults to CFBundleShortVersionString when omitted.
                    pattern: ^[A-Za-z0-9]{1,64}$
            description: 'One Shadow AI scan target in an organization''s list: a Speakeasy built-in, or a target the organization added.'
            required:
                - id
                - display_name
                - category
                - signatures
                - gateway_client
                - origin
                - customized
        AiScanTargetGatewayClient:
            type: object
            properties:
                cimd_vendor_keys:
                    type: array
                    items:
                        type: string
                        pattern: ^[a-z0-9][a-z0-9-]{0,63}$
                    description: 'Vendor keys from Speakeasy''s CIMD client catalog. Vendor-grained: no two targets may claim the same key, or a block on either would silently cover the other.'
                    maxItems: 16
                client_info_names:
                    type: array
                    items:
                        type: string
                        maxLength: 128
                    description: 'Names an MCP client reports at initialize. Detection only, never authorization: the value is self-reported and any client can claim any name.'
                    maxItems: 16
                oauth_client_ids:
                    type: array
                    items:
                        type: string
                        maxLength: 512
                    description: Client ids matched literally against the caller's verified client_id, or CIMD catalog URLs — including the wildcard patterns — matched against the catalog entry that admitted it. Naming the catalog URL is how a vendor that mints one document per MCP server is still named exactly. No two targets may claim the same entry.
                    maxItems: 16
            description: 'How a target detected on a device is recognized again when the same tool calls Speakeasy''s MCP gateway. A device signature and a registered OAuth client share no natural join key, so the link is declared here. The three lists are not interchangeable: the first two name credentials Speakeasy verified and can be enforced on, the third names what a client said about itself and is used only to attribute traffic.'
            required:
                - cimd_vendor_keys
                - oauth_client_ids
                - client_info_names
        AiScanTargetMutationResult:
            type: object
            properties:
                list_version:
                    type: integer
                    description: Version of the served list after the change.
                    format: int64
                target:
                    $ref: '#/components/schemas/AiScanTarget'
            required:
                - list_version
                - target
        AiScanTargetSignatures:
            type: object
            properties:
                binaries:
                    type: array
                    items:
                        type: string
                        pattern: ^[A-Za-z0-9._-]{1,64}$
                    description: Bare command names resolved on the device PATH; never a path.
                    maxItems: 16
                bundle_ids:
                    type: array
                    items:
                        type: string
                        pattern: ^[A-Za-z0-9._-]{1,128}$
                    description: macOS CFBundleIdentifier values matched against app bundles under /Applications and ~/Applications.
                    maxItems: 16
                config_dirs:
                    type: array
                    items:
                        type: string
                    description: Directories whose existence marks the tool as installed, taken as home-relative unless they start with /. A `*` is a wildcard matching any run of characters within ONE path segment, never crossing a `/`, for tools installed under a version-stamped directory name such as an editor extension.
                    maxItems: 16
                process_names:
                    type: array
                    items:
                        type: string
                        pattern: ^[A-Za-z0-9 ._-]{1,64}$
                    description: Exact process names checked for the running signal.
                    maxItems: 16
            description: On-device signals the scan checks for one target.
            required:
                - bundle_ids
                - binaries
                - config_dirs
                - process_names
        AllowedOrigin:
            type: object
            properties:
                created_at:
                    type: string
                    description: The creation date of the allowed origin.
                    format: date-time
                id:
                    type: string
                    description: The ID of the allowed origin
                origin:
                    type: string
                    description: The origin URL
                project_id:
                    type: string
                    description: The ID of the project
                status:
                    type: string
                    default: pending
                    enum:
                        - pending
                        - approved
                        - rejected
                updated_at:
                    type: string
                    description: The last update date of the allowed origin.
                    format: date-time
            required:
                - id
                - project_id
                - origin
                - status
                - created_at
                - updated_at
        AnalyticsDataset:
            type: object
            properties:
                description:
                    type: string
                fields:
                    type: array
                    items:
                        $ref: '#/components/schemas/AnalyticsField'
                grain:
                    type: string
                    description: What one row represents, as a noun
                    example: tool call
                kind:
                    type: string
                    enum:
                        - event
                        - metric
                name:
                    type: string
                    example: tool_calls
            description: A dataset and the fields it exposes. The builder is generated from this.
            required:
                - name
                - kind
                - grain
                - description
                - fields
        AnalyticsDescribeResult:
            type: object
            properties:
                datasets:
                    type: array
                    items:
                        $ref: '#/components/schemas/AnalyticsDataset'
                    description: The datasets the caller can read
                restricted_datasets:
                    type: array
                    items:
                        type: string
                    description: Names of the datasets the caller cannot read, such as one only organization administrators can read, so a saved widget over one can say why it shows nothing rather than reading as broken
                signal_metrics:
                    $ref: '#/components/schemas/AnalyticsSignalCatalog'
            required:
                - datasets
        AnalyticsDimensionValue:
            type: object
            properties:
                count:
                    type: integer
                    description: Rows at the dataset's grain carrying this value inside the window
                    format: int64
                present:
                    type: boolean
                    description: For signal attributes, false distinguishes absent labels from present empty strings
                value:
                    type: string
                    description: A recorded dimension value. Signal attributes may be empty; present distinguishes an absent label.
            required:
                - value
                - count
        AnalyticsDimensionValuesResult:
            type: object
            properties:
                dataset:
                    type: string
                dimension:
                    type: string
                values:
                    type: array
                    items:
                        $ref: '#/components/schemas/AnalyticsDimensionValue'
            description: The values a dimension actually holds inside the window, most frequent first, after the dataset has collapsed its observations.
            required:
                - dataset
                - dimension
                - values
        AnalyticsField:
            type: object
            properties:
                aggregations:
                    type: array
                    items:
                        type: string
                    description: 'Ops a field admits: aggregations on a measure, count_distinct on a dimension'
                default:
                    type: boolean
                    description: 'Part of the query the dataset opens on: a default dimension is in the opening group-by'
                    example: true
                description:
                    type: string
                    description: What the field is and which producers fill it, when the catalog has something to say beyond the name
                lookup:
                    $ref: '#/components/schemas/AnalyticsLookup'
                name:
                    type: string
                    example: user
                operators:
                    type: array
                    items:
                        type: string
                    description: Filter operators a dimension admits
                role:
                    type: string
                    enum:
                        - dimension
                        - measure
                type:
                    type: string
                    enum:
                        - string
                        - int64
                        - float64
                unit:
                    type: string
                    description: Unit of a measure, when it has one
                    example: ms
            description: One queryable field on a dataset.
            required:
                - name
                - type
                - role
                - default
        AnalyticsFilter:
            type: object
            properties:
                field:
                    type: string
                    description: Dimension to filter on
                    example: surface
                operator:
                    type: string
                    description: Operator the dimension admits, per describe
                    enum:
                        - equals
                        - in
                values:
                    type: array
                    items:
                        type: string
                    description: equals takes exactly one value; in matches any of them.
                    minItems: 1
            description: A filter on a dimension. All filters are ANDed.
            required:
                - field
                - operator
                - values
        AnalyticsLookup:
            type: object
            properties:
                description:
                    type: string
                    description: What the map is and where it is set
                name:
                    type: string
                    example: mcp_server_display_names
            description: 'A per-project map a dimension reads through at query time: a reported value with an entry shows as its target, the rest show as reported.'
            required:
                - name
                - description
        AnalyticsMeasure:
            type: object
            properties:
                alias:
                    type: string
                    description: Result column name. Defaults to the op, or op_field.
                    example: total_ms
                field:
                    type: string
                    description: 'Field the op applies to: a dimension for count_distinct, a measure otherwise. Absent for count.'
                    example: duration_ms
                op:
                    type: string
                    description: Aggregation to apply. count takes no field; count_distinct takes a dimension that admits it; every other op needs a measure field that admits it, per describe.
                    example: sum
                    enum:
                        - count
                        - count_distinct
                        - sum
                        - avg
                        - min
                        - max
                        - p50
                        - p95
                        - p99
            description: 'A composed measure: an op over a field, or count alone.'
            required:
                - op
        AnalyticsOrderBy:
            type: object
            properties:
                direction:
                    type: string
                    default: desc
                    enum:
                        - asc
                        - desc
                measure:
                    type: string
                    description: Alias of a requested measure
                    example: total_ms
            description: Sort a grouped result by one of its measures.
            required:
                - measure
        AnalyticsQueryPayload:
            type: object
            properties:
                dataset:
                    type: string
                    description: Dataset to query, per describe
                    example: tool_calls
                dimensions:
                    type: array
                    items:
                        type: string
                    description: Group-by key when grouped; projected columns when ungrouped. At most 3.
                filters:
                    type: array
                    items:
                        $ref: '#/components/schemas/AnalyticsFilter'
                    description: Filters, ANDed. At most 100 values per filter.
                from:
                    type: string
                    description: Start of the half-open window [from, to), ISO 8601
                    example: "2026-09-01T00:00:00Z"
                    format: date-time
                grain:
                    type: string
                    description: Time interval from the analytics catalog. Composed queries admit none, minute, hour, day, week or month. Signal measurements also admit auto.
                limit:
                    type: integer
                    description: Maximum rows. Defaults to 100; at most 1000 for a grouped result and 200 for ungrouped rows.
                    default: 100
                    format: int64
                    minimum: 1
                    maximum: 1000
                measures:
                    type: array
                    items:
                        $ref: '#/components/schemas/AnalyticsMeasure'
                    description: Composed measures. Required when grouped, forbidden when ungrouped.
                order_by:
                    type: array
                    items:
                        $ref: '#/components/schemas/AnalyticsOrderBy'
                    description: Sort for a grouped result, by measure alias. Ungrouped rows are always newest first.
                signal_query:
                    $ref: '#/components/schemas/AnalyticsSignalQuery'
                to:
                    type: string
                    description: End of the half-open window [from, to), ISO 8601
                    example: "2026-09-08T00:00:00Z"
                    format: date-time
                ungrouped:
                    type: boolean
                    description: Return rows at the dataset's grain instead of aggregating.
                    default: false
            description: A query against one dataset, in catalog vocabulary. Organization comes from the session and project from the project header; neither is a field.
            required:
                - dataset
                - from
                - to
        AnalyticsQueryResult:
            type: object
            properties:
                dataset:
                    type: string
                    description: The dataset queried
                plan:
                    type: string
                    description: A stable diagnostic identifier for how the query was answered. Deliberately not a table name.
                rows:
                    type: array
                    items:
                        type: object
                        additionalProperties: true
                    description: Result rows
                signal_result:
                    $ref: '#/components/schemas/AnalyticsSignalResult'
            description: 'Composed queries return requested dimensions and measure aliases, with time_bucket for grouped intervals or time for ungrouped rows. The signals dataset instead returns fixed time-series rows: time_bucket, bucket_end, series_id, observed, partial, matched_messages, answered, match_share, matched_sessions, evaluated_sessions, session_breadth, and outcome/definition companions. series_id joins each row to signal_result.groups; signal_result.metadata and signal_result.summary describe the scope and whole-window population. Signal rows remain in the top-level rows field.'
            required:
                - dataset
                - plan
                - rows
        AnalyticsSignalCatalog:
            type: object
            properties:
                dataset:
                    type: string
                initial_attributes:
                    type: array
                    items:
                        type: string
                max_groups:
                    type: integer
                    format: int64
                max_points:
                    type: integer
                    format: int64
                max_span_days:
                    type: integer
                    format: int64
                operators:
                    type: array
                    items:
                        type: string
                population:
                    type: string
                sensors:
                    type: array
                    items:
                        $ref: '#/components/schemas/AnalyticsSignalSensor'
                signals:
                    type: array
                    items:
                        $ref: '#/components/schemas/AnalyticsSignalName'
                steps:
                    type: array
                    items:
                        type: string
                system_dimensions:
                    type: array
                    items:
                        type: string
                unit:
                    type: string
            required:
                - dataset
                - unit
                - population
                - steps
                - operators
                - system_dimensions
                - initial_attributes
                - max_span_days
                - max_groups
                - max_points
                - sensors
                - signals
        AnalyticsSignalComparison:
            type: object
            properties:
                comparable:
                    type: boolean
                delta_share:
                    type: number
                    description: Descriptive difference in observed answer shares, never a significance test
                    format: double
                from:
                    type: string
                    format: date-time
                reasons:
                    type: array
                    items:
                        type: string
                    description: Failed comparison gates. Coverage remains unknown even when the observed measurements are comparable.
                summary:
                    type: object
                    additionalProperties: true
                to:
                    type: string
                    format: date-time
            required:
                - from
                - to
                - summary
                - comparable
                - reasons
        AnalyticsSignalDefinition:
            type: object
            properties:
                captured_at:
                    type: string
                    format: date-time
                definition:
                    type: object
                    additionalProperties: true
                definition_hash:
                    type: string
                sensor_id:
                    type: string
            required:
                - sensor_id
                - definition_hash
                - definition
                - captured_at
        AnalyticsSignalDimension:
            type: object
            properties:
                attribute:
                    type: string
                    description: Exact label key, at most 256 UTF-8 bytes; the shared query engine enforces the byte limit.
                    minLength: 1
                field:
                    type: string
                    description: 'System dimension from the analytics catalog: source, role, actor, assistant or definition'
            description: Exactly one system field or arbitrary attribute key.
        AnalyticsSignalFilter:
            type: object
            properties:
                dimension:
                    $ref: '#/components/schemas/AnalyticsSignalDimension'
                operator:
                    type: string
                    description: 'Comparison from the analytics catalog: equals, in, exists or missing'
                values:
                    type: array
                    items:
                        type: string
                    maxItems: 100
            required:
                - dimension
                - operator
        AnalyticsSignalFindings:
            type: object
            properties:
                comparison:
                    $ref: '#/components/schemas/AnalyticsSignalComparison'
                concentration:
                    type: object
                    additionalProperties: true
                cooccurrence:
                    type: array
                    items:
                        type: object
                        additionalProperties: true
                    description: Separate same_message and same_session joint-answer counts and shares
                evidence:
                    type: array
                    items:
                        type: object
                        additionalProperties: true
                    description: Permitted recent conversation references without transcript content
                evidence_scope:
                    type: string
                measurement:
                    $ref: '#/components/schemas/AnalyticsSignalResult'
                peer:
                    $ref: '#/components/schemas/AnalyticsSignalSelection'
                peer_summary:
                    type: object
                    additionalProperties: true
            required:
                - measurement
                - concentration
                - cooccurrence
                - evidence
                - evidence_scope
        AnalyticsSignalMetadata:
            type: object
            properties:
                coverage:
                    type: string
                exact:
                    type: boolean
                filters:
                    type: array
                    items:
                        $ref: '#/components/schemas/AnalyticsSignalFilter'
                from:
                    type: string
                    format: date-time
                group_by:
                    type: array
                    items:
                        $ref: '#/components/schemas/AnalyticsSignalDimension'
                groups_truncated:
                    type: boolean
                physical_resolution:
                    type: string
                point_budget:
                    type: integer
                    format: int64
                population:
                    type: string
                queried_at:
                    type: string
                    format: date-time
                run_id:
                    type: string
                selection:
                    $ref: '#/components/schemas/AnalyticsSignalSelection'
                series_complete:
                    type: boolean
                snapshot:
                    type: string
                    description: Live, not a replayable historical snapshot
                step:
                    type: string
                time_axis:
                    type: string
                to:
                    type: string
                    format: date-time
                trigger:
                    type: string
                unit:
                    type: string
            required:
                - selection
                - trigger
                - step
                - physical_resolution
                - time_axis
                - unit
                - population
                - coverage
                - queried_at
                - from
                - to
                - filters
                - snapshot
                - exact
                - series_complete
                - groups_truncated
                - group_by
                - point_budget
        AnalyticsSignalName:
            type: object
            properties:
                id:
                    type: string
                name:
                    type: string
            required:
                - id
                - name
        AnalyticsSignalQuery:
            type: object
            properties:
                filters:
                    type: array
                    items:
                        $ref: '#/components/schemas/AnalyticsSignalFilter'
                    maxItems: 20
                group_by:
                    type: array
                    items:
                        $ref: '#/components/schemas/AnalyticsSignalDimension'
                    maxItems: 3
                groups:
                    type: integer
                    description: Top groups selected over the whole window
                    default: 5
                    format: int64
                    minimum: 1
                    maximum: 20
                points:
                    type: integer
                    description: Budget across complete selected series
                    default: 2000
                    format: int64
                    minimum: 1
                    maximum: 10000
                run_id:
                    type: string
                    format: uuid
                selection:
                    $ref: '#/components/schemas/AnalyticsSignalSelection'
                trigger:
                    type: string
                    description: 'Evaluation population: stream or manual'
                    default: stream
            required:
                - selection
        AnalyticsSignalResult:
            type: object
            properties:
                groups:
                    type: array
                    items:
                        type: object
                        additionalProperties: true
                    description: Whole-window totals for selected groups; group_values follows metadata.group_by
                metadata:
                    $ref: '#/components/schemas/AnalyticsSignalMetadata'
                summary:
                    type: object
                    description: Exact whole-window measures, including groups outside the selected top groups
                    additionalProperties: true
            required:
                - metadata
                - summary
                - groups
        AnalyticsSignalScope:
            type: object
            properties:
                run_id:
                    type: string
                    description: Required for manual; absent for stream
                    format: uuid
                sensor_id:
                    type: string
                    format: uuid
                trigger:
                    type: string
                    description: 'Evaluation population: stream or manual'
                    default: stream
            required:
                - sensor_id
        AnalyticsSignalSelection:
            type: object
            properties:
                minimum_level:
                    type: integer
                    description: Zero-based ordered level; matches cumulative probability at or above this level
                    format: int64
                    minimum: 0
                    maximum: 9
                sensor_id:
                    type: string
                    format: uuid
                signal_id:
                    type: string
                    description: For multi-label or exclusive results; omit when minimum_level is set
                    format: uuid
                threshold:
                    type: number
                    description: Explicit probability threshold greater than zero. Exclusive results use the selected signal instead.
                    format: double
                    exclusiveMinimum: 0
                    maximum: 1
            required:
                - sensor_id
                - threshold
        AnalyticsSignalSensor:
            type: object
            properties:
                enabled:
                    type: boolean
                id:
                    type: string
                mode:
                    type: string
                name:
                    type: string
                signal_ids:
                    type: array
                    items:
                        type: string
            required:
                - id
                - name
                - mode
                - enabled
                - signal_ids
        AnthropicInferenceConfig:
            type: object
            properties:
                enabled:
                    type: boolean
                has_signing_secret:
                    type: boolean
                id:
                    type: string
                    description: Integration identifier. Omitted before setup.
                    format: uuid
                webhook_path:
                    type: string
                    description: Webhook path on the API server. Omitted before setup.
            description: Organization-owned Anthropic inference hook. Signing secrets are write-only and encrypted at rest.
            required:
                - has_signing_secret
                - enabled
        ApplyDirectoryRoleSetupForm:
            type: object
            properties:
                grant_set:
                    type: array
                    items:
                        $ref: '#/components/schemas/RoleGrant'
                    description: Optional grants given to every role this request creates. Omit to create roles with no grants. Existing roles are never changed.
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/ApplyDirectoryRoleSetupItem'
                    description: The sources to set up. Each source may appear once.
                    minItems: 1
                    maxItems: 500
            required:
                - items
        ApplyDirectoryRoleSetupItem:
            type: object
            properties:
                roles:
                    type: array
                    items:
                        $ref: '#/components/schemas/ApplyDirectoryRoleSetupRole'
                    description: The complete role set for the source. Empty removes every mapping for the source.
                source:
                    $ref: '#/components/schemas/DirectoryRoleSetupSource'
                version:
                    type: string
                    description: The item version from previewDirectoryRoleSetup.
            required:
                - source
                - version
                - roles
        ApplyDirectoryRoleSetupResult:
            type: object
            properties:
                created_roles:
                    type: array
                    items:
                        $ref: '#/components/schemas/Role'
                    description: Roles this request created.
                mappings:
                    type: array
                    items:
                        $ref: '#/components/schemas/DirectoryRoleMapping'
                    description: The resulting mappings of every source in the request.
                side_effects:
                    type: array
                    items:
                        $ref: '#/components/schemas/DirectoryRoleSetupSideEffect'
                    description: Work requested after commit.
            required:
                - created_roles
                - mappings
                - side_effects
        ApplyDirectoryRoleSetupRole:
            type: object
            properties:
                create_name:
                    type: string
                    description: Name of a role to create. Items in the batch that name the same new role share it.
                    minLength: 1
                role_urn:
                    type: string
                    description: Principal URN of an existing role.
            description: 'One role in an item''s role set: an existing role by principal URN, or a new role by name. Set exactly one.'
        ApprovalDecision:
            type: object
            properties:
                decided_at:
                    type: string
                    description: When the decision was made.
                    format: date-time
                decided_by:
                    type: string
                    description: Who decided.
                decision:
                    type: string
                    description: Either approved or denied.
                evidence:
                    description: 'The evidence as it stood when this decision was made. Frozen at decision time: a later re-gather updates the request''s evidence but never this snapshot, so what the reviewer actually saw stays inspectable.'
                evidence_version:
                    type: integer
                    description: Shape version of the frozen evidence payload, copied from the request at decision time.
                    format: int64
                granted_principal_urns:
                    type: array
                    items:
                        type: string
                    description: Principals the approval covers. Empty for a denial.
                id:
                    type: string
                    description: The decision ID.
                rationale:
                    type: string
                    description: Why. Written to be cited when explaining the decision to the requester.
                research_report_id:
                    type: string
                    description: The research report this decision cited, when one informed it.
            description: A recorded approve or deny, with the evidence it rested on.
            required:
                - id
                - decision
                - decided_by
                - granted_principal_urns
                - evidence_version
                - decided_at
        ApprovalRequestDetail:
            type: object
            properties:
                decisions:
                    type: array
                    items:
                        $ref: '#/components/schemas/ApprovalDecision'
                    description: Every decision made on this server, newest first. A repeat request starts from the last rationale rather than from zero.
                evidence:
                    description: The deterministic signals gathered for this server, as they stood when last collected. Every item is a declaration by the server or its registry, never an observation of behaviour.
                evidence_collected_at:
                    type: string
                    description: When the evidence was last gathered.
                    format: date-time
                evidence_diff:
                    $ref: '#/components/schemas/EvidenceDiff'
                evidence_version:
                    type: integer
                    description: Shape version of the evidence payload, so an older snapshot stays interpretable.
                    format: int64
                request:
                    $ref: '#/components/schemas/ApprovalRequestSummary'
                requesters:
                    type: array
                    items:
                        $ref: '#/components/schemas/ApprovalRequester'
                    description: Everyone who asked.
                research_reports:
                    type: array
                    items:
                        $ref: '#/components/schemas/ResearchReport'
                    description: Every research-agent run for this request, newest first.
            description: An approval request with everything needed to decide it.
            required:
                - request
                - requesters
                - decisions
                - research_reports
        ApprovalRequestSummary:
            type: object
            properties:
                artifact_ref:
                    type: string
                    description: The resolved artifact identity. Absent when the server could not be identified, which must surface as unknown rather than as an absence of findings.
                created_at:
                    type: string
                    description: When the request was first raised.
                    format: date-time
                evidence_changed_at:
                    type: string
                    description: When the daily recheck first found the permission-relevant evidence differing from what the latest approval rested on. Absent when nothing has drifted. Cleared only by recording a new decision.
                    format: date-time
                id:
                    type: string
                    description: The approval request ID.
                requester_count:
                    type: integer
                    description: How many people have asked for this server.
                    format: int64
                server_slug:
                    type: string
                    description: The Shadow MCP inventory page slug for a server_url target — the same identifier the inventory derives from the canonical URL, so a request links to the server page it describes. Absent for stdio targets.
                status:
                    type: string
                    description: 'The request''s current status: unreviewed, requested, approved, denied, or superseded (the latest decision was explicitly displaced by a policy URL-list edit; history preserved, no enforcement derives from it until re-decided).'
                target_kind:
                    type: string
                    description: The namespace of the requested reference, such as server_url or stdio_command.
                target_raw:
                    type: string
                    description: The stored display form of the requested reference, with credential-shaped material (URL query strings and userinfo, secret-named flag and environment values in commands) redacted at intake.
                updated_at:
                    type: string
                    description: When the request last changed.
                    format: date-time
                version_pinned:
                    type: boolean
                    description: Whether the reference names an exact version.
            description: One MCP server awaiting a decision.
            required:
                - id
                - target_kind
                - target_raw
                - version_pinned
                - status
                - requester_count
                - created_at
                - updated_at
        ApprovalRequester:
            type: object
            properties:
                note:
                    type: string
                    description: The requester's justification. The one input no automated evidence supplies.
                requested_at:
                    type: string
                    description: When they asked.
                    format: date-time
                user_email:
                    type: string
                    description: The requester's email, when known.
                user_id:
                    type: string
                    description: The requester.
            description: Someone who asked for a server, and why.
            required:
                - user_id
                - requested_at
        ApproveAllSkillSuggestionsRequestBody:
            type: object
            properties:
                suggestion_ids:
                    type: array
                    items:
                        type: string
                        format: uuid
                    description: Optional suggestion IDs to approve. Omitted or empty approves every currently open suggestion.
        ApproveAllSkillSuggestionsResult:
            type: object
            properties:
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/SkillSuggestionApprovalItem'
                    description: The outcomes in snapshot order.
            description: Per-item outcomes for the snapshotted open suggestions.
            required:
                - items
        ApproveSkillSuggestionRequestBody:
            type: object
            properties:
                change_ids:
                    type: array
                    items:
                        type: string
                        format: uuid
                    description: Optional IDs of the proposed changes to take together as one new version. The suggestion stays open carrying whatever is left. Cannot be combined with edited content.
                content:
                    type: string
                    description: Optional edited complete SKILL.md content. Handlers enforce a maximum size of 65,536 UTF-8 bytes.
                id:
                    type: string
                    description: The suggestion ID.
                    format: uuid
            required:
                - id
        ApproveSkillSuggestionResult:
            type: object
            properties:
                outcome:
                    type: string
                    description: Whether the suggestion created a version, created one and stayed open carrying its remaining changes, or was stale.
                    enum:
                        - applied
                        - partially_applied
                        - superseded
                suggestion:
                    $ref: '#/components/schemas/SkillEditSuggestion'
                version:
                    $ref: '#/components/schemas/SkillVersion'
            description: The result of approving one suggestion.
            required:
                - suggestion
                - outcome
        ArchiveSkillRequestBody:
            type: object
            properties:
                id:
                    type: string
                    description: The skill ID.
                    format: uuid
            required:
                - id
        Asset:
            type: object
            properties:
                content_length:
                    type: integer
                    description: The content length of the asset
                    format: int64
                content_type:
                    type: string
                    description: The content type of the asset
                created_at:
                    type: string
                    description: The creation date of the asset.
                    format: date-time
                id:
                    type: string
                    description: The ID of the asset
                kind:
                    type: string
                    enum:
                        - openapiv3
                        - image
                        - functions
                        - chat_attachment
                        - unknown
                sha256:
                    type: string
                    description: The SHA256 hash of the asset
                updated_at:
                    type: string
                    description: The last update date of the asset.
                    format: date-time
            required:
                - id
                - kind
                - sha256
                - content_type
                - content_length
                - created_at
                - updated_at
        AssignOrganizationOnboardingPlaybookRequestBody:
            type: object
            properties:
                organization_id:
                    type: string
                playbook_id:
                    type: string
                    description: Omit to clear the assignment.
            required:
                - organization_id
        Assistant:
            type: object
            properties:
                agent_id:
                    type: string
                    description: The assistant's dedicated agent ID, when it has one.
                    format: uuid
                created_at:
                    type: string
                    description: Creation timestamp.
                    format: date-time
                created_by_user_id:
                    type: string
                    description: The ID of the user who created the assistant, if known.
                id:
                    type: string
                    description: The assistant ID.
                    format: uuid
                identity_state:
                    type: string
                    description: NEVER_CONFIGURED when the assistant has no dedicated agent, ACTIVE when its dedicated agent is usable, and UNAVAILABLE when that agent is suspended, revoked, or deleted. This is configuration state, not permission to execute.
                    enum:
                        - NEVER_CONFIGURED
                        - ACTIVE
                        - UNAVAILABLE
                instructions:
                    type: string
                    description: The system instructions for the assistant.
                max_concurrency:
                    type: integer
                    description: Maximum active warm runtimes for the assistant.
                    format: int64
                mcp_servers:
                    type: array
                    items:
                        $ref: '#/components/schemas/AssistantMCPServerRef'
                    description: MCP servers attached to the assistant that are not hosted (toolset-backed); hosted servers are listed under toolsets.
                model:
                    type: string
                    description: The model identifier used by the assistant.
                name:
                    type: string
                    description: The assistant name.
                project_id:
                    type: string
                    description: The project ID owning the assistant.
                    format: uuid
                runtime_version:
                    type: integer
                    description: 'Desired runtime protocol version: 2 is the default runtime, 3 is Kit. Runtime changes require a settled assistant and available destination.'
                    enum:
                        - 2
                        - 3
                    format: int64
                skills:
                    type: array
                    items:
                        $ref: '#/components/schemas/AssistantSkillRef'
                    description: Skills attached to the assistant.
                status:
                    type: string
                    description: The assistant status.
                    enum:
                        - active
                        - paused
                toolsets:
                    type: array
                    items:
                        $ref: '#/components/schemas/AssistantToolsetRef'
                    description: Hosted (toolset-backed) MCP servers attached to the assistant, by toolset slug.
                updated_at:
                    type: string
                    description: Last update timestamp.
                    format: date-time
                warm_ttl_seconds:
                    type: integer
                    description: Warm runtime TTL in seconds.
                    format: int64
            required:
                - id
                - project_id
                - name
                - model
                - instructions
                - toolsets
                - mcp_servers
                - skills
                - warm_ttl_seconds
                - max_concurrency
                - runtime_version
                - status
                - created_at
                - updated_at
        AssistantExecutionProfile:
            type: object
            properties:
                execution_context:
                    type: string
                    description: Whether the turns act for the user their event identified.
                    enum:
                        - user_backed
                        - userless
                servers:
                    type: array
                    items:
                        $ref: '#/components/schemas/ExecutionProfileServer'
                    description: Each server the turns reach.
                trigger_instance_id:
                    type: string
                    description: The root trigger.
                    format: uuid
                trigger_name:
                    type: string
                    description: The root trigger's name.
                version:
                    type: integer
                    description: The latest version; 0 before the first turn or change.
                    format: int64
            description: The upstream credentials an assistant's turns under one root trigger and execution context use.
            required:
                - trigger_instance_id
                - trigger_name
                - execution_context
                - version
                - servers
        AssistantMCPServerRef:
            type: object
            properties:
                endpoint_slug:
                    type: string
                    description: The slug of the server's Speakeasy-hosted MCP endpoint (/mcp/{endpoint_slug}). Populated on reads; ignored on writes. Absent when the server has no Speakeasy-hosted endpoint.
                environment_slug:
                    type: string
                    description: Optional environment slug used when connecting to the MCP server.
                mcp_server_slug:
                    type: string
                    description: The MCP server slug exposed to the assistant. Covers every backend, including hosted (toolset-backed) servers.
            required:
                - mcp_server_slug
        AssistantMemory:
            type: object
            properties:
                assistant_id:
                    type: string
                    description: The assistant ID owning the memory.
                    format: uuid
                content:
                    type: string
                    description: The memory content.
                created_at:
                    type: string
                    description: Creation timestamp.
                    format: date-time
                deleted_at:
                    type: string
                    description: Timestamp at which the memory was soft-deleted.
                    format: date-time
                id:
                    type: string
                    description: The assistant memory ID.
                    format: uuid
                last_access:
                    type: string
                    description: Timestamp of the most recent access.
                    format: date-time
                superseded_at:
                    type: string
                    description: Timestamp at which the memory was superseded by another memory.
                    format: date-time
                supersedes_id:
                    type: string
                    description: The ID of the memory this one supersedes, if any.
                    format: uuid
                tags:
                    type: array
                    items:
                        type: string
                    description: Tags associated with the memory.
                updated_at:
                    type: string
                    description: Last update timestamp.
                    format: date-time
                valid_at:
                    type: string
                    description: Timestamp at which the memory becomes valid.
                    format: date-time
            required:
                - id
                - assistant_id
                - content
                - tags
                - created_at
                - updated_at
                - last_access
                - valid_at
        AssistantSessionSummary:
            type: object
            properties:
                messages:
                    type: integer
                    description: Number of messages created in the range
                    format: int64
                sessions:
                    type: integer
                    description: Number of sessions with activity in the range
                    format: int64
                total_cost:
                    type: number
                    description: Cost in USD incurred in the range
                    format: double
                total_tokens:
                    type: integer
                    description: Tokens consumed in the range
                    format: int64
            required:
                - sessions
                - messages
                - total_tokens
                - total_cost
        AssistantSkillRef:
            type: object
            properties:
                pinned_version_id:
                    type: string
                    description: The pinned version, absent when tracking latest valid.
                    format: uuid
                resolved_version_id:
                    type: string
                    description: The currently resolved valid version.
                    format: uuid
                skill_id:
                    type: string
                    description: The attached skill ID.
                    format: uuid
            required:
                - skill_id
                - resolved_version_id
        AssistantToolsetRef:
            type: object
            properties:
                environment_slug:
                    type: string
                    description: Optional environment slug used when invoking the toolset.
                toolset_slug:
                    type: string
                    description: The toolset slug exposed to the assistant.
            required:
                - toolset_slug
        AttachAuthClientToMcpServerRequestBody:
            type: object
            properties:
                id:
                    type: string
                    description: The auth client id.
                    format: uuid
                mcp_server_id:
                    type: string
                    description: The MCP server id.
                    format: uuid
            required:
                - id
                - mcp_server_id
        AttachBindingRequestBody:
            type: object
            properties:
                principal_id:
                    type: string
                    format: uuid
                remote_session_id:
                    type: string
                    format: uuid
                user_session_issuer_id:
                    type: string
                    format: uuid
            required:
                - principal_id
                - user_session_issuer_id
                - remote_session_id
        AttachKeySetForm:
            type: object
            properties:
                id:
                    type: string
                    description: The remote_session_client id.
                    format: uuid
                json_web_key_set_id:
                    type: string
                    description: The organization JSON Web Key Set to sign this client's private_key_jwt assertions with. Must belong to the client's organization.
                    format: uuid
            description: Form for attaching an organization JSON Web Key Set to a remote_session_client.
            required:
                - id
                - json_web_key_set_id
        AttachUserSessionIssuerForm:
            type: object
            properties:
                id:
                    type: string
                    description: The remote_session_client id.
                    format: uuid
                user_session_issuer_id:
                    type: string
                    description: The user_session_issuer to attach.
                    format: uuid
            description: Form for attaching a user_session_issuer to a remote_session_client via the join table.
            required:
                - id
                - user_session_issuer_id
        AudienceOption:
            type: object
            properties:
                description:
                    type: string
                    description: 'Secondary line: email, member count, or attribute key.'
                display_name:
                    type: string
                    description: Human-readable name for the principal.
                kind:
                    type: string
                    description: What the principal identifies.
                    enum:
                        - everyone
                        - role
                        - user
                        - agent
                member_count:
                    type: integer
                    description: How many people the principal reaches, when known.
                    format: int64
                principal_urn:
                    type: string
                    description: Canonical principal URN to grant access to.
            required:
                - principal_urn
                - kind
                - display_name
        AuditLog:
            type: object
            properties:
                acting_client_id:
                    type: string
                    description: The registered OAuth client the call authenticated as, when it had one. Absent for calls that carried no OAuth client.
                acting_surface:
                    type: string
                    description: 'How the change was made: ''dashboard'', ''api_key'', ''platform_mcp'', ''project_assistant'', or ''unknown'' when no surface was identifiable. Always present.'
                action:
                    type: string
                actor_display_name:
                    type: string
                actor_id:
                    type: string
                actor_slug:
                    type: string
                actor_type:
                    type: string
                after_snapshot: {}
                before_snapshot: {}
                category:
                    type: string
                    description: 'What kind of event the entry records: ''configuration'' for a change to the platform''s configuration, ''security'' for machine access and other security-relevant activity that is not a configuration decision. Always present in responses; optional in the schema so clients built against it still read responses from servers that predate it.'
                    enum:
                        - configuration
                        - security
                created_at:
                    type: string
                    description: The creation date of the audit log.
                    format: date-time
                id:
                    type: string
                metadata:
                    type: object
                    additionalProperties: true
                project_id:
                    type: string
                project_slug:
                    type: string
                subject_display_name:
                    type: string
                subject_id:
                    type: string
                subject_slug:
                    type: string
                subject_type:
                    type: string
            required:
                - id
                - actor_id
                - actor_type
                - action
                - subject_id
                - subject_type
                - acting_surface
                - created_at
        AuditLogFacetOption:
            type: object
            properties:
                count:
                    type: integer
                    description: The number of audit logs for this facet value
                    format: int64
                display_name:
                    type: string
                    description: The display label shown for the facet value
                value:
                    type: string
                    description: The facet value used for filtering
            required:
                - value
                - display_name
                - count
        AuthClient:
            type: object
            properties:
                client_type:
                    type: string
                    description: How the client authenticates upstream.
                    enum:
                        - remote_session
                        - service_account
                        - static_credential
                        - pass_through
                        - ema
                created_at:
                    type: string
                    description: When the client was created.
                    format: date-time
                enabled:
                    type: boolean
                    description: Whether the client is enabled. Where typed auth client resolution is enforced, a disabled client is never selected or resolved. Disabling revokes no upstream credentials, and elsewhere, including in shadow mode, an MCP server's existing upstream configuration keeps serving.
                headers:
                    type: array
                    items:
                        $ref: '#/components/schemas/AuthClientHeader'
                    description: The headers the client sends upstream.
                id:
                    type: string
                    description: The auth client id.
                    format: uuid
                name:
                    type: string
                    description: The client's name.
                personal:
                    type: boolean
                    description: Whether each caller uses their own connection through the client. A grant on a personal client never lets one user use another user's connection.
                project_id:
                    type: string
                    description: The project the client belongs to. Omitted for a client shared across the organization's projects.
                    format: uuid
                remote_session_client_id:
                    type: string
                    description: The OAuth registration behind remote_session, service_account and ema clients.
                    format: uuid
                servers:
                    type: array
                    items:
                        $ref: '#/components/schemas/AuthClientServer'
                    description: The MCP servers that offer the client. Where typed auth client resolution is enforced, changing or disabling the client changes upstream behavior on every one of them.
                source:
                    enum:
                        - backfill
                        - admin
                    type: string
                    x-speakeasy-name-override: AuthClientSource
                updated_at:
                    type: string
                    description: When the client was last updated.
                    format: date-time
            description: 'A configured way for Speakeasy to authenticate to an upstream MCP server. Who may use it is controlled by mcp:auth grants on the client, never by who configured it. Auth clients are typed auth configuration: they take effect only where typed auth client resolution is enforced, which is being rolled out in stages. Elsewhere, including in shadow mode, an MCP server''s existing upstream configuration keeps serving requests.'
            required:
                - id
                - client_type
                - source
                - name
                - enabled
                - personal
                - headers
                - servers
                - created_at
                - updated_at
        AuthClientAudience:
            type: object
            properties:
                auth_client_id:
                    type: string
                    description: The auth client id.
                    format: uuid
                entries:
                    type: array
                    items:
                        $ref: '#/components/schemas/AuthClientAudienceEntry'
                    description: The rules deciding who may use the client.
                public_servers:
                    type: array
                    items:
                        type: string
                    description: Ids of public servers that offer the client. Anonymous callers on them never acquire these rules.
                version:
                    type: string
                    description: Pass back as expected_version when saving, so an edit made against a stale list is refused.
            description: Who may use an auth client.
            required:
                - auth_client_id
                - entries
                - version
                - public_servers
        AuthClientAudienceEntry:
            type: object
            properties:
                applies_to:
                    type: string
                    description: client when the rule names this client and can be edited here; client_type when it covers every client of this type; all_clients when it covers every client. Rules that do not name this client are shown for context and edited elsewhere.
                    enum:
                        - client
                        - client_type
                        - all_clients
                connection_note:
                    type: string
                    description: 'For personal clients: how the rule relates to other people''s connections. A grant never lets anyone use another user''s connection.'
                level:
                    type: string
                    description: use grants mcp:auth on the client; blocked writes mcp:blocked_auth, which outranks grants.
                    enum:
                        - use
                        - blocked
                principal_urn:
                    type: string
                    description: 'The principal the rule names: user:<id>, user:all, role:<id> or agent:<id>.'
                project_id:
                    type: string
                    description: The project the rule is confined to, when it is.
                    format: uuid
            description: One rule deciding who may use an auth client. The rule applies wherever the client is used, on every server that offers it.
            required:
                - principal_urn
                - level
                - applies_to
        AuthClientAudienceRule:
            type: object
            properties:
                level:
                    type: string
                    description: use or blocked.
                    enum:
                        - use
                        - blocked
                principal_urn:
                    type: string
                    description: user:<id>, user:all, role:<id> or agent:<id>.
            description: A rule to store for an auth client.
            required:
                - principal_urn
                - level
        AuthClientChoice:
            type: object
            properties:
                client_type:
                    type: string
                    description: How the client authenticates upstream. Only shared types are offered.
                    enum:
                        - service_account
                        - static_credential
                        - pass_through
                id:
                    type: string
                    description: The auth client id.
                    format: uuid
                name:
                    type: string
                    description: The client's name.
            description: A shared upstream credential a caller can choose for a credential of their own, such as an agent key.
            required:
                - id
                - name
                - client_type
        AuthClientHeader:
            type: object
            properties:
                description:
                    type: string
                    description: What the header is for.
                has_stored_value:
                    type: boolean
                    description: Whether the client stores a value for this header.
                is_required:
                    type: boolean
                    description: Whether a caller must supply the header when it is copied from the request.
                is_secret:
                    type: boolean
                    description: Whether the stored value is secret.
                name:
                    type: string
                    description: The header name.
                value_from_request_header:
                    type: string
                    description: The request header the value is copied from, for pass-through headers.
            description: A header an auth client sends upstream. Stored values are never returned.
            required:
                - name
                - is_required
                - is_secret
                - has_stored_value
        AuthClientHeaderInput:
            type: object
            properties:
                description:
                    type: string
                    description: What the header is for.
                is_required:
                    type: boolean
                    description: Whether a caller must supply the header when it is copied from the request.
                    default: false
                is_secret:
                    type: boolean
                    description: Whether the value is secret. Secret values are stored encrypted and never returned.
                    default: false
                name:
                    type: string
                    description: The header name.
                    minLength: 1
                value:
                    type: string
                    description: The value to send. Omit it on a header that already stores one, with is_secret unchanged, to keep the stored value.
                value_from_request_header:
                    type: string
                    description: The caller's request header to copy the value from, for pass-through headers.
            description: A header an auth client sends upstream. Exactly one of value and value_from_request_header is set, except that a header already storing a value may omit both to keep it, as long as is_secret is unchanged.
            required:
                - name
        AuthClientServer:
            type: object
            properties:
                id:
                    type: string
                    description: The MCP server id.
                    format: uuid
                name:
                    type: string
                    description: The MCP server's name.
                project_id:
                    type: string
                    description: The MCP server's project.
                    format: uuid
                public:
                    type: boolean
                    description: Whether the MCP server is public.
                slug:
                    type: string
                    description: The MCP server's slug.
            description: An MCP server an auth client is associated with.
            required:
                - id
                - project_id
                - public
        AuthorizeRequestBody:
            type: object
            properties:
                code_challenge:
                    type: string
                    description: 'PKCE code challenge: base64url(sha256(code_verifier)).'
                    minLength: 43
                    maxLength: 128
                code_challenge_method:
                    type: string
                    description: PKCE challenge method. Only S256 is supported.
                    enum:
                        - S256
                key_scope:
                    type: string
                    description: The kind of key redeem mints. agent_user (the default) is the device agent's per-user project-scoped key. producer is the organization-wide key the Speakeasy CLI uses, and requires org:admin, the same as creating one in the dashboard.
                    default: agent_user
                    enum:
                        - agent_user
                        - producer
                project_slug:
                    type: string
                    description: Optional project slug. For agent_user keys it is the project the key is scoped to; for producer keys it is only reported back to the CLI as its default project. Defaults to the org's default (first) project when omitted.
            required:
                - code_challenge
                - code_challenge_method
        AuthorizeResponseBody:
            type: object
            properties:
                code:
                    type: string
                    description: The opaque one-time code. Hand this to the device agent, which redeems it with its code_verifier.
                expires_in:
                    type: integer
                    description: Lifetime of the code in seconds.
                    format: int64
            required:
                - code
                - expires_in
        AuthzChallenge:
            type: object
            properties:
                evaluated_grant_count:
                    type: integer
                    description: Total grants evaluated.
                    format: int64
                id:
                    type: string
                    description: Unique challenge identifier.
                matched_grant_count:
                    type: integer
                    description: Number of grants that matched.
                    format: int64
                operation:
                    type: string
                    enum:
                        - require
                        - require_any
                        - filter
                organization_id:
                    type: string
                    description: Organization the principal was acting in.
                outcome:
                    type: string
                    enum:
                        - allow
                        - deny
                        - error
                photo_url:
                    type: string
                    description: User avatar URL when available.
                principal_type:
                    type: string
                    description: Kind of principal.
                    enum:
                        - user
                        - api_key
                        - assistant
                        - agent
                        - workload
                principal_urn:
                    type: string
                    description: Principal URN e.g. user:<uuid> or api_key:<id>.
                project_id:
                    type: string
                    description: Project scope (empty for org-level checks).
                reason:
                    type: string
                    enum:
                        - grant_matched
                        - no_grants
                        - scope_unsatisfied
                        - deny_grant
                        - invalid_check
                        - rbac_skipped_apikey
                        - dev_override
                resolution_role_slug:
                    type: string
                    description: Role slug assigned (when resolution_type=role_assigned).
                resolution_type:
                    type: string
                    description: How the challenge was resolved.
                    enum:
                        - role_assigned
                        - dismissed
                resolved_at:
                    type: string
                    description: When the challenge was resolved by an admin.
                    format: date-time
                resolved_by:
                    type: string
                    description: URN of the admin who resolved.
                resource_id:
                    type: string
                    description: Resource ID of the check.
                resource_kind:
                    type: string
                    description: Resource kind of the check.
                role_slugs:
                    type: array
                    items:
                        type: string
                    description: Roles the principal had loaded.
                scope:
                    type: string
                    description: Scope that was checked.
                selector:
                    type: object
                    description: Complete selector captured for the check. Omitted for legacy or malformed challenge data.
                    additionalProperties:
                        type: string
                timestamp:
                    type: string
                    description: When the authz decision was made.
                    format: date-time
                user_email:
                    type: string
                    description: Email when available.
            required:
                - id
                - timestamp
                - organization_id
                - principal_urn
                - principal_type
                - operation
                - outcome
                - reason
                - scope
                - role_slugs
                - evaluated_grant_count
                - matched_grant_count
        AwsIamCredential:
            type: object
            properties:
                assume_role_arn:
                    type: string
                    description: The customer IAM role ARN Speakeasy assumes.
                created_at:
                    type: string
                    description: When the credential was created.
                    format: date-time
                external_id:
                    type: string
                    description: The Speakeasy-generated ExternalId the customer must require in their role trust policy. Present when Speakeasy assumes the role with an ExternalId.
                id:
                    type: string
                    description: The ID of the external credential.
                    format: uuid
                name:
                    type: string
                    description: A human-readable name for the credential.
                oidc_audience:
                    type: string
                    description: The OIDC audience. Present when Speakeasy assumes the role with a web identity.
                oidc_subject:
                    type: string
                    description: Optional OIDC subject pin (web-identity approach).
                organization_id:
                    type: string
                    description: The organization that owns the credential.
                provider:
                    type: string
                    description: The cloud provider of the credential.
                    enum:
                        - aws_iam
                        - gcp_iam
                sts_region:
                    type: string
                    description: Optional STS region override.
                updated_at:
                    type: string
                    description: When the credential was last updated.
                    format: date-time
            description: An AWS IAM external credential.
            required:
                - id
                - organization_id
                - provider
                - name
                - created_at
                - updated_at
        AwsKmsKey:
            type: object
            properties:
                algorithm:
                    type: string
                    description: The signing algorithm of the key.
                    enum:
                        - RS256
                        - ES256
                created_at:
                    type: string
                    description: When the key was created.
                    format: date-time
                customer_grant_reference:
                    type: string
                    description: The Speakeasy identity (GCP service-account email or AWS principal ARN) the customer granted on the key for the key-policy / IAM-grant model. Not a secret.
                external_credential_id:
                    type: string
                    description: The external credential Speakeasy uses to authenticate to the key.
                    format: uuid
                id:
                    type: string
                    description: The ID of the external key.
                    format: uuid
                key_arn:
                    type: string
                    description: The ARN of the AWS KMS key.
                name:
                    type: string
                    description: A human-readable name for the key.
                organization_id:
                    type: string
                    description: The organization that owns the key.
                provider:
                    type: string
                    description: The cloud KMS provider of the key.
                    enum:
                        - aws_kms
                        - gcp_kms
                updated_at:
                    type: string
                    description: When the key was last updated.
                    format: date-time
            description: An AWS KMS external key.
            required:
                - key_arn
                - id
                - organization_id
                - external_credential_id
                - provider
                - algorithm
                - name
                - created_at
                - updated_at
        BackfillMcpConnectGrantsRequestBody:
            type: object
            properties:
                created_before:
                    type: string
                    description: Only copy grants created before this time. Set it to when read and write stopped implying connect, so grants written since are left alone.
                    format: date-time
        BaseResourceAttributes:
            type: object
            properties:
                created_at:
                    type: string
                    description: The creation date of the resource.
                    format: date-time
                description:
                    type: string
                    description: Description of the resource
                id:
                    type: string
                    description: The ID of the resource
                mime_type:
                    type: string
                    description: Optional MIME type of the resource
                name:
                    type: string
                    description: The name of the resource
                project_id:
                    type: string
                    description: The ID of the project
                resource_urn:
                    type: string
                    description: The URN of this resource
                title:
                    type: string
                    description: Optional title for the resource
                updated_at:
                    type: string
                    description: The last update date of the resource.
                    format: date-time
                uri:
                    type: string
                    description: The URI of the resource
            description: Common attributes shared by all resource types
            required:
                - id
                - project_id
                - name
                - description
                - uri
                - resource_urn
                - created_at
                - updated_at
        BaseToolAttributes:
            type: object
            properties:
                annotations:
                    $ref: '#/components/schemas/ToolAnnotations'
                canonical:
                    $ref: '#/components/schemas/CanonicalToolAttributes'
                canonical_name:
                    type: string
                    description: The canonical name of the tool. Will be the same as the name if there is no variation.
                confirm:
                    type: string
                    description: Confirmation mode for the tool
                confirm_prompt:
                    type: string
                    description: Prompt for the confirmation
                created_at:
                    type: string
                    description: The creation date of the tool.
                    format: date-time
                description:
                    type: string
                    description: Description of the tool
                id:
                    type: string
                    description: The ID of the tool
                name:
                    type: string
                    description: The name of the tool
                project_id:
                    type: string
                    description: The ID of the project
                schema:
                    type: string
                    description: JSON schema for the request
                schema_version:
                    type: string
                    description: Version of the schema
                summarizer:
                    type: string
                    description: Summarizer for the tool
                tool_urn:
                    type: string
                    description: The URN of this tool
                updated_at:
                    type: string
                    description: The last update date of the tool.
                    format: date-time
                variation:
                    $ref: '#/components/schemas/ToolVariation'
            description: Common attributes shared by all tool types
            required:
                - id
                - project_id
                - name
                - canonical_name
                - description
                - schema
                - tool_urn
                - created_at
                - updated_at
        BeginBindingRefreshRequestBody:
            type: object
            properties:
                binding_id:
                    type: string
                    format: uuid
                principal_id:
                    type: string
                    format: uuid
                user_session_issuer_id:
                    type: string
                    format: uuid
            required:
                - principal_id
                - user_session_issuer_id
                - binding_id
        BeginResponseBody:
            type: object
            properties:
                authorization_url:
                    type: string
                    description: Slack authorization URL bound to the current session.
            required:
                - authorization_url
        BeginSlackDirectoryConnectionRequestBody:
            type: object
            properties:
                connection_id:
                    type: string
                    description: Reconnect this workspace.
                    format: uuid
        BillingEmail:
            type: object
            properties:
                email:
                    type: string
                    description: The configured billing notification email. Omitted when organization administrators receive billing notifications.
                    format: email
        BindingRefreshAttempt:
            type: object
            properties:
                attempt_id:
                    type: string
                    format: uuid
            required:
                - attempt_id
        BindingRefreshResult:
            type: object
            properties:
                binding:
                    $ref: '#/components/schemas/PrincipalRemoteSessionBinding'
                completed:
                    type: boolean
                    description: Whether this popup committed an exact grant and replaced the attachment. False means no matching callback completed; the attempt is consumed without changing the attachment.
            required:
                - completed
        BlockAgentOnConnectionForm:
            type: object
            properties:
                agent_id:
                    type: string
                    description: The agent to block; any agent in the caller's organization
                    format: uuid
                remote_session_client_id:
                    type: string
                    description: The upstream OAuth client of the caller's own connection
                    format: uuid
            required:
                - agent_id
                - remote_session_client_id
        BuiltInCard:
            type: object
            properties:
                dataset:
                    type: string
                    description: The catalog dataset the card asks
                    example: tool_calls
                description:
                    type: string
                    description: What the card shows, when there is more to say
                h:
                    type: integer
                    description: Height in rows
                    format: int64
                name:
                    type: string
                    description: What the card is called
                query:
                    type: object
                    description: 'The question: window, grain, dimensions, measures, filters, order and limit, in the shape a saved widget stores.'
                    additionalProperties: true
                visualization:
                    type: object
                    description: 'How the question is drawn: a chart type and its options.'
                    additionalProperties: true
                w:
                    type: integer
                    description: Width in columns
                    format: int64
                x:
                    type: integer
                    description: Column the card starts at, from 0
                    format: int64
                "y":
                    type: integer
                    description: Row the card starts at, from 0
                    format: int64
            description: 'One card of a Speakeasy-built dashboard: a widget''s question and drawing, as a saved widget stores them, with where it sits on the 12-column grid. It is not a saved widget; duplicating the dashboard makes one of it.'
            required:
                - name
                - dataset
                - query
                - visualization
                - x
                - "y"
                - w
                - h
        BuiltInDashboard:
            type: object
            properties:
                cards:
                    type: array
                    items:
                        $ref: '#/components/schemas/BuiltInCard'
                    description: Its cards, in no particular order; the grid places them by position
                description:
                    type: string
                    description: What the dashboard is for
                name:
                    type: string
                    description: Display name
                slug:
                    type: string
                    description: Names the dashboard in links and when duplicating it
                    example: mcp-tools
            description: 'A dashboard Speakeasy ships with the product: its cards are laid out in code and are the same in every project. It is read only; duplicating it makes a project dashboard, with a saved widget per card, that can be changed.'
            required:
                - slug
                - name
                - description
                - cards
        BuiltinExclusionCategory:
            type: object
            properties:
                entries:
                    type: array
                    items:
                        $ref: '#/components/schemas/BuiltinExclusionEntry'
                    description: The rules in this category.
                label:
                    type: string
                    description: Human category label, e.g. "Test credit cards".
            description: A named group of built-in exclusion rules.
            required:
                - label
                - entries
        BuiltinExclusionEntry:
            type: object
            properties:
                description:
                    type: string
                    description: Human rationale for why these values are known-safe.
                id:
                    type: string
                    description: Stable rule id.
                reason:
                    type: string
                    description: Label surfaced when this rule suppresses a finding.
                samples:
                    type: array
                    items:
                        type: string
                    description: Example values — published test/documentation data, never real secrets.
            description: One rule in the built-in exclusion library. Deliberately omits internal detection-engine identifiers (sources, rule ids) so they are not exposed to end users.
            required:
                - id
                - reason
                - description
        BulkUpdateAccountTypeRequestBody:
            type: object
            properties:
                account_type:
                    type: string
                    description: New gram_account_type for every listed organization.
                    enum:
                        - free
                        - pro
                        - payg
                        - enterprise
                ids:
                    type: array
                    items:
                        type: string
                        minLength: 1
                    description: Organization IDs to update.
                    minItems: 1
                    maxItems: 1000
            required:
                - ids
                - account_type
        BusinessMemory:
            type: object
            properties:
                body:
                    type: string
                    description: Normalized knowledge body.
                content_scope:
                    type: array
                    items:
                        type: string
                    description: Canonical entity and topic labels.
                embedding_model:
                    type: string
                    description: Model used to create the semantic-search vector.
                extracted_at:
                    type: string
                    description: Extraction timestamp.
                    format: date-time
                extraction_model:
                    type: string
                    description: Model used to extract the memory.
                id:
                    type: string
                    description: Memory ID.
                    format: uuid
                lifecycle_state:
                    type: string
                    description: Current lifecycle state.
                memory_type:
                    type: string
                    description: Knowledge type.
                    enum:
                        - glossary
                        - procedure
                        - result
                similarity:
                    type: number
                    description: Cosine similarity for semantic-search results.
                    format: double
                source_author_id:
                    type: string
                    description: Author associated with the source session.
                source_chat_id:
                    type: string
                    description: Chat the memory was extracted from, or unavailable if the source chat was deleted.
                source_turn:
                    type: integer
                    description: One-based transcript turn cited by the extractor.
                    format: int64
                structural_scope:
                    type: string
                    description: Materialized structural scope path.
            description: Knowledge extracted from a completed business session.
            required:
                - id
                - body
                - memory_type
                - structural_scope
                - content_scope
                - embedding_model
                - extraction_model
                - source_chat_id
                - extracted_at
                - lifecycle_state
        BusinessMemoryContentScopeNode:
            type: object
            properties:
                memory_count:
                    type: integer
                    description: Number of distinct memories assigned to this scope.
                    format: int64
                parent_scope:
                    type: string
                    description: Parent namespace. Omitted for namespace nodes.
                scope:
                    type: string
                    description: Namespace or exact content-scope tag.
            description: A content-scope namespace or exact tag and its distinct-memory count.
            required:
                - scope
                - memory_count
        CancelStripeSubscriptionRequestBody:
            type: object
            properties:
                organization_id:
                    type: string
            required:
                - organization_id
        CanonicalToolAttributes:
            type: object
            properties:
                confirm:
                    type: string
                    description: Confirmation mode for the tool
                confirm_prompt:
                    type: string
                    description: Prompt for the confirmation
                description:
                    type: string
                    description: Description of the tool
                name:
                    type: string
                    description: The name of the tool
                summarizer:
                    type: string
                    description: Summarizer for the tool
                variation_id:
                    type: string
                    description: The ID of the variation that was applied to the tool
            description: The original details of a tool
            required:
                - variation_id
                - name
                - description
        CaptureEventPayload:
            type: object
            properties:
                distinct_id:
                    type: string
                    description: Distinct ID for the user or entity (defaults to organization ID if not provided)
                event:
                    type: string
                    description: Event name
                    example: button_clicked
                    minLength: 1
                    maxLength: 255
                properties:
                    type: object
                    description: Event properties as key-value pairs
                    example:
                        button_name: submit
                        page: checkout
                        value: 100
                    additionalProperties: true
            description: Payload for capturing a telemetry event
            required:
                - event
        CaptureEventResult:
            type: object
            properties:
                success:
                    type: boolean
                    description: Whether the event was successfully captured
            description: Result of capturing a telemetry event
            required:
                - success
        ChallengeBucket:
            type: object
            properties:
                challenge_count:
                    type: integer
                    description: Number of individual challenges in this bucket.
                    format: int64
                challenge_ids:
                    type: array
                    items:
                        type: string
                    description: IDs of all challenges in this bucket.
                evaluated_grant_count:
                    type: integer
                    description: Total grants evaluated.
                    format: int64
                first_seen:
                    type: string
                    description: Timestamp of the earliest challenge in the bucket.
                    format: date-time
                id:
                    type: string
                    description: ID of the most recent challenge in the bucket.
                last_seen:
                    type: string
                    description: Timestamp of the most recent challenge in the bucket.
                    format: date-time
                matched_grant_count:
                    type: integer
                    description: Number of grants that matched.
                    format: int64
                operation:
                    type: string
                    enum:
                        - require
                        - require_any
                        - filter
                organization_id:
                    type: string
                    description: Organization the principal was acting in.
                outcome:
                    type: string
                    enum:
                        - allow
                        - deny
                        - error
                photo_url:
                    type: string
                    description: User avatar URL when available.
                principal_type:
                    type: string
                    description: Kind of principal.
                    enum:
                        - user
                        - api_key
                        - assistant
                        - agent
                        - workload
                principal_urn:
                    type: string
                    description: Principal URN e.g. user:<uuid> or api_key:<id>.
                project_id:
                    type: string
                    description: Project scope (empty for org-level checks).
                reason:
                    type: string
                    enum:
                        - grant_matched
                        - no_grants
                        - scope_unsatisfied
                        - deny_grant
                        - invalid_check
                        - rbac_skipped_apikey
                        - dev_override
                resolution_role_slug:
                    type: string
                    description: Role slug assigned (when resolution_type=role_assigned).
                resolution_type:
                    type: string
                    description: How the bucket was resolved.
                    enum:
                        - role_assigned
                        - dismissed
                resolved_at:
                    type: string
                    description: When the bucket was resolved by an admin.
                    format: date-time
                resolved_by:
                    type: string
                    description: URN of the admin who resolved.
                resource_id:
                    type: string
                    description: Resource ID of the check.
                resource_kind:
                    type: string
                    description: Resource kind of the check.
                role_slugs:
                    type: array
                    items:
                        type: string
                    description: Roles the principal had loaded.
                scope:
                    type: string
                    description: Scope that was checked.
                user_email:
                    type: string
                    description: Email when available.
            description: A group of consecutive challenges with the same dimensions that occurred within a 10-minute window.
            required:
                - id
                - last_seen
                - first_seen
                - organization_id
                - principal_urn
                - principal_type
                - operation
                - outcome
                - reason
                - scope
                - role_slugs
                - evaluated_grant_count
                - matched_grant_count
                - challenge_count
                - challenge_ids
        ChallengeResolution:
            type: object
            properties:
                challenge_id:
                    type: string
                    description: ClickHouse challenge ID.
                created_at:
                    type: string
                    format: date-time
                id:
                    type: string
                    description: Resolution record ID.
                organization_id:
                    type: string
                    description: Organization ID.
                principal_urn:
                    type: string
                    description: Denied principal.
                resolution_type:
                    type: string
                    enum:
                        - role_assigned
                        - dismissed
                resolved_by:
                    type: string
                    description: Admin who resolved.
                resource_id:
                    type: string
                    description: Resource ID.
                resource_kind:
                    type: string
                    description: Resource kind.
                role_slug:
                    type: string
                    description: Assigned role slug.
                scope:
                    type: string
                    description: Denied scope.
            required:
                - id
                - organization_id
                - challenge_id
                - principal_urn
                - scope
                - resolution_type
                - resolved_by
                - created_at
        ChangePrescriptionRequestBody:
            type: object
            properties:
                expected_version:
                    type: integer
                    format: int64
                expires_at:
                    type: string
                    format: date-time
                external_note:
                    type: string
                    maxLength: 500
                internal_note:
                    type: string
                    maxLength: 4000
                operation_id:
                    type: string
                    format: uuid
                organization_id:
                    type: string
                prescription_id:
                    type: string
                    format: uuid
                resource_scope:
                    type: string
                    enum:
                        - all
                        - selected
                selected_resource_inputs:
                    type: array
                    items:
                        type: string
                    maxItems: 1000
                start_mode:
                    type: string
                    enum:
                        - now
                        - at
                starts_at:
                    type: string
                    format: date-time
            required:
                - organization_id
                - operation_id
                - resource_scope
                - start_mode
                - internal_note
                - external_note
                - prescription_id
                - expected_version
        ChangeTrialEndDateRequestBody:
            type: object
            properties:
                ends_at:
                    type: string
                    description: New trial end date in UTC.
                    format: date-time
                id:
                    type: string
                    description: Organization ID.
                    minLength: 1
            required:
                - id
                - ends_at
        Chat:
            type: object
            properties:
                account_email:
                    type: string
                    description: Email of the AI account that produced the chat, resolved from the linked AI account. May differ from the employee's work email (e.g. a personal account).
                account_type:
                    type: string
                    description: Account type that produced the chat ('team', 'personal', or empty), resolved from the linked AI account.
                agent_id:
                    type: string
                    description: The ID of the agent that produced this session, recorded from the authenticated actor at capture. Set for sessions an agent drove directly, such as a channel session, which has no assistant record.
                agent_name:
                    type: string
                    description: The current name of the agent that produced this session. Absent when the agent has since been deleted, in which case agent_id is still reported.
                agent_usage:
                    $ref: '#/components/schemas/AgentUsage'
                assistant_agent_id:
                    type: string
                    description: The ID of the agent the assistant acts as, when the assistant has a dedicated agent identity
                assistant_id:
                    type: string
                    description: The ID of the assistant that produced this chat, if any
                assistant_name:
                    type: string
                    description: The name of the assistant that produced this chat, if any
                content_parts:
                    type: array
                    items:
                        $ref: '#/components/schemas/ChatContentPart'
                    description: Non-turn content attached to this chat, such as prompt attachments.
                created_at:
                    type: string
                    description: When the chat was created.
                    format: date-time
                external_user_id:
                    type: string
                    description: The ID of the external user who created the chat
                generation:
                    type: integer
                    description: The generation that this response's messages belong to. A generation is an immutable snapshot of the transcript; a new one is opened on compaction or message edits, while normal turns append to the current one.
                    format: int64
                has_more_after:
                    type: boolean
                    description: Whether newer messages exist after the last message in this page (within the returned generation). Load them with an `after_seq` cursor.
                has_more_before:
                    type: boolean
                    description: Whether older messages exist before the first message in this page (within the returned generation). Load them with a `before_seq` cursor.
                id:
                    type: string
                    description: The ID of the chat
                last_message_timestamp:
                    type: string
                    description: When the last message in the chat was created.
                    format: date-time
                litellm_proxied:
                    type: boolean
                    description: True when the session's traffic was observed by the LiteLLM proxy, including sessions whose transcript is owned by the agent's own hook stream
                match_segments:
                    type: array
                    items:
                        $ref: '#/components/schemas/RiskSegment'
                    description: 'Present only when `query` was requested: contiguous runs of returned messages, each spanning one or more query matches and their surrounding context. Use each segment''s cursors to expand it.'
                max_generation:
                    type: integer
                    description: The highest generation number present for this chat. To load the full history, walk from `max_generation` down to 0, requesting each generation in turn.
                    format: int64
                messages:
                    type: array
                    items:
                        $ref: '#/components/schemas/ChatMessage'
                    description: The list of messages in the chat for the returned generation, ordered oldest to newest by `seq`.
                num_messages:
                    type: integer
                    description: The number of messages in the chat
                    format: int64
                originating_client:
                    type: string
                    description: The supported client that originated a chat routed through the source, when known
                participants:
                    type: array
                    items:
                        $ref: '#/components/schemas/ChatParticipant'
                    description: Distinct observed conversation participants across the session.
                pinned:
                    type: boolean
                    description: True when the chat is pinned
                risk_findings_count:
                    type: integer
                    description: Number of risk findings recorded against messages in this chat (project-scoped, found=true). Only populated by endpoints that join risk data; absent elsewhere.
                    format: int64
                risk_segments:
                    type: array
                    items:
                        $ref: '#/components/schemas/RiskSegment'
                    description: 'Present only when `risk_only` was requested: contiguous runs of returned messages, each spanning a risk finding and its surrounding context. Use each segment''s cursors to expand it.'
                slack_channel_id:
                    type: string
                    description: Observed Slack channel associated with this session.
                slack_channel_name:
                    type: string
                    description: Observed Slack channel name as reported by the captured envelope.
                slack_team_id:
                    type: string
                    description: Observed Slack workspace associated with this session.
                source:
                    type: string
                    description: 'The source of the chat: Elements, Playground, ClaudeCode (inferred from messages)'
                summary:
                    type: string
                    description: Persisted LLM summary of the session transcript, if one has been generated
                summary_generated_at:
                    type: string
                    description: When the session summary was last generated.
                    format: date-time
                title:
                    type: string
                    description: The title of the chat
                total_cost:
                    type: number
                    description: Total cost in USD for this chat
                    format: double
                total_input_tokens:
                    type: integer
                    description: Total input tokens used in this chat
                    format: int64
                total_output_tokens:
                    type: integer
                    description: Total output tokens used in this chat
                    format: int64
                total_tokens:
                    type: integer
                    description: Total tokens (input + output) used in this chat
                    format: int64
                totals:
                    $ref: '#/components/schemas/ChatTotals'
                updated_at:
                    type: string
                    description: When the chat was last updated.
                    format: date-time
                user_id:
                    type: string
                    description: The ID of the user who created the chat
                work_units:
                    type: number
                    description: Work units of value delivered in this chat as judged by the work-units analysis. Absent unless the organization has work-units analysis enabled and this chat has been scored.
                    format: double
                work_units_report:
                    type: string
                    description: Full work-units analysis verdict as JSON (per-task breakdown, rationales, and flags). Present only when `work_units` is present.
            required:
                - messages
                - content_parts
                - generation
                - max_generation
                - has_more_before
                - has_more_after
                - id
                - title
                - num_messages
                - created_at
                - updated_at
                - last_message_timestamp
        ChatAnalysisSettings:
            type: object
            properties:
                business_memory_daily_cap:
                    type: integer
                    description: Maximum business-memory extraction evaluations reserved across the organization each UTC day. 0 disables extraction.
                    format: int64
                    minimum: 0
                    maximum: 10000
                business_memory_enabled:
                    type: boolean
                    description: Whether completed sessions are mined for business memories.
                is_default:
                    type: boolean
                    description: Whether these values are platform defaults rather than stored organization settings.
                organization_id:
                    type: string
                    description: Organization these settings apply to.
                work_units_daily_cap:
                    type: integer
                    description: Maximum work-units evaluations reserved across the organization each UTC day. 0 disables scoring as surely as the switch.
                    format: int64
                    minimum: 0
                    maximum: 10000
                work_units_enabled:
                    type: boolean
                    description: Whether work-units chat analysis is enabled.
            description: Per-organization switches and budgets for chat session analysis judges.
            required:
                - organization_id
                - work_units_enabled
                - work_units_daily_cap
                - business_memory_enabled
                - business_memory_daily_cap
                - is_default
        ChatContentPart:
            type: object
            properties:
                content:
                    type: string
                    description: The text content.
                created_at:
                    type: string
                    description: When the content part was created.
                    format: date-time
                id:
                    type: string
                    description: The ID of the content part.
                is_risk:
                    type: boolean
                    description: Whether this content part has an active risk finding.
                kind:
                    type: string
                    description: The content kind, such as prompt_attachment.
                metadata:
                    description: Sparse metadata for the content kind.
                parent_chat_message_id:
                    type: string
                    description: The chat message this content hangs off, when resolved.
            required:
                - id
                - kind
                - content
                - is_risk
                - created_at
        ChatMessage:
            type: object
            properties:
                content:
                    description: The content of the message — string for plain text, array for multimodal/tool-call content parts, null for assistant messages that only carry tool_calls
                created_at:
                    type: string
                    description: When the message was created.
                    format: date-time
                external_user_id:
                    type: string
                    description: The ID of the external user who created the message
                finish_reason:
                    type: string
                    description: The finish reason of the message
                generation:
                    type: integer
                    description: Conversation generation — bumps on compaction or edit divergence
                    format: int64
                id:
                    type: string
                    description: The ID of the message
                is_risk:
                    type: boolean
                    description: 'Present only in `risk_only` mode: true when this message has an active risk finding, false for the surrounding-context messages padded around it.'
                model:
                    type: string
                    description: The model that generated the message
                participants:
                    type: array
                    items:
                        $ref: '#/components/schemas/ChatParticipant'
                    description: Observed per-message conversation participants, independent of message ownership.
                prompt_id:
                    type: string
                    description: The agent prompt/turn ID associated with this message, when available.
                role:
                    type: string
                    description: The role of the message
                seq:
                    type: integer
                    description: Monotonic sequence number of the message. Strictly increasing within a chat; use it as the keyset cursor for `before_seq`/`after_seq` pagination. Not contiguous (the sequence is shared across chats), so do not infer gaps from arithmetic differences.
                    format: int64
                tool_call_id:
                    type: string
                    description: The tool call ID of the message
                tool_calls:
                    type: string
                    description: The tool calls in the message as a JSON blob
                user_id:
                    type: string
                    description: The ID of the user who created the message
            required:
                - id
                - seq
                - role
                - model
                - created_at
                - generation
        ChatOverview:
            type: object
            properties:
                account_email:
                    type: string
                    description: Email of the AI account that produced the chat, resolved from the linked AI account. May differ from the employee's work email (e.g. a personal account).
                account_type:
                    type: string
                    description: Account type that produced the chat ('team', 'personal', or empty), resolved from the linked AI account.
                agent_id:
                    type: string
                    description: The ID of the agent that produced this session, recorded from the authenticated actor at capture. Set for sessions an agent drove directly, such as a channel session, which has no assistant record.
                agent_name:
                    type: string
                    description: The current name of the agent that produced this session. Absent when the agent has since been deleted, in which case agent_id is still reported.
                assistant_agent_id:
                    type: string
                    description: The ID of the agent the assistant acts as, when the assistant has a dedicated agent identity
                assistant_id:
                    type: string
                    description: The ID of the assistant that produced this chat, if any
                assistant_name:
                    type: string
                    description: The name of the assistant that produced this chat, if any
                created_at:
                    type: string
                    description: When the chat was created.
                    format: date-time
                external_user_id:
                    type: string
                    description: The ID of the external user who created the chat
                id:
                    type: string
                    description: The ID of the chat
                last_message_timestamp:
                    type: string
                    description: When the last message in the chat was created.
                    format: date-time
                litellm_proxied:
                    type: boolean
                    description: True when the session's traffic was observed by the LiteLLM proxy, including sessions whose transcript is owned by the agent's own hook stream
                num_messages:
                    type: integer
                    description: The number of messages in the chat
                    format: int64
                originating_client:
                    type: string
                    description: The supported client that originated a chat routed through the source, when known
                participants:
                    type: array
                    items:
                        $ref: '#/components/schemas/ChatParticipant'
                    description: Distinct observed conversation participants across the session.
                pinned:
                    type: boolean
                    description: True when the chat is pinned
                risk_findings_count:
                    type: integer
                    description: Number of risk findings recorded against messages in this chat (project-scoped, found=true). Only populated by endpoints that join risk data; absent elsewhere.
                    format: int64
                slack_channel_id:
                    type: string
                    description: Observed Slack channel associated with this session.
                slack_channel_name:
                    type: string
                    description: Observed Slack channel name as reported by the captured envelope.
                slack_team_id:
                    type: string
                    description: Observed Slack workspace associated with this session.
                source:
                    type: string
                    description: 'The source of the chat: Elements, Playground, ClaudeCode (inferred from messages)'
                summary:
                    type: string
                    description: Persisted LLM summary of the session transcript, if one has been generated
                summary_generated_at:
                    type: string
                    description: When the session summary was last generated.
                    format: date-time
                title:
                    type: string
                    description: The title of the chat
                total_cost:
                    type: number
                    description: Total cost in USD for this chat
                    format: double
                total_input_tokens:
                    type: integer
                    description: Total input tokens used in this chat
                    format: int64
                total_output_tokens:
                    type: integer
                    description: Total output tokens used in this chat
                    format: int64
                total_tokens:
                    type: integer
                    description: Total tokens (input + output) used in this chat
                    format: int64
                updated_at:
                    type: string
                    description: When the chat was last updated.
                    format: date-time
                user_id:
                    type: string
                    description: The ID of the user who created the chat
                work_units:
                    type: number
                    description: Work units of value delivered in this chat as judged by the work-units analysis. Absent unless the organization has work-units analysis enabled and this chat has been scored.
                    format: double
            required:
                - id
                - title
                - num_messages
                - created_at
                - updated_at
                - last_message_timestamp
        ChatParticipant:
            type: object
            properties:
                display_name:
                    type: string
                    description: Directory display name at capture time.
                provider:
                    type: string
                    description: Directory provider that identifies this conversation participant.
                provider_team_id:
                    type: string
                    description: Workspace resolved from the organization directory, when unambiguous.
                provider_user_id:
                    type: string
                    description: Provider identity observed in the message envelope.
                user_id:
                    type: string
                    description: Explicitly mapped Speakeasy person at capture time; this attribution grants no permissions.
            required:
                - provider
                - provider_user_id
        ChatSessionLink:
            type: object
            properties:
                actor_email:
                    type: string
                    description: Email of the person who initiated the move, when known.
                child_captured:
                    type: boolean
                    description: Whether the continuation exists as a captured chat the caller can read, i.e. whether the child side is navigable.
                child_chat_id:
                    type: string
                    description: Chat id of the child session in this relationship. Absent when its session id was unknowable when the relationship was recorded (e.g. Cursor mints ids server-side) — or when the caller's visibility scope cannot read the child, which is deliberately indistinguishable.
                    format: uuid
                child_title:
                    type: string
                    description: Title of the child chat, when it has been captured and titled and the caller's visibility scope can read it.
                created_at:
                    type: string
                    description: When the move was recorded.
                    format: date-time
                device_hostname:
                    type: string
                    description: Hostname of the machine the move happened on, when known.
                kind:
                    type: string
                    description: 'Link kind: move for continuations, recall for recalled context, or subagent for a helper session.'
                parent_captured:
                    type: boolean
                    description: Whether the parent exists as a captured chat the caller can read, i.e. whether the parent side is navigable.
                parent_chat_id:
                    type: string
                    description: Chat id of the parent session in this relationship. Absent when the caller's visibility scope cannot read the parent — a masked end exposes no identity, matching parent_captured.
                    format: uuid
                parent_title:
                    type: string
                    description: Title of the parent chat, when it has been captured and titled and the caller's visibility scope can read it.
                source_surface:
                    type: string
                    description: Harness the session originated in, when known.
                target_harness:
                    type: string
                    description: Harness the session was moved to (e.g. cursor, codex, claude-code).
            required:
                - parent_captured
                - child_captured
                - kind
                - target_harness
                - created_at
        ChatSummary:
            type: object
            properties:
                duration_seconds:
                    type: number
                    description: Chat session duration in seconds
                    format: double
                end_time_unix_nano:
                    type: string
                    description: Latest log timestamp in Unix nanoseconds (string for JS int64 precision)
                gram_chat_id:
                    type: string
                    description: Chat session ID
                log_count:
                    type: integer
                    description: Total number of logs in this chat session
                    format: int64
                message_count:
                    type: integer
                    description: Number of LLM completion messages in this chat session
                    format: int64
                model:
                    type: string
                    description: LLM model used in this chat session
                start_time_unix_nano:
                    type: string
                    description: Earliest log timestamp in Unix nanoseconds (string for JS int64 precision)
                status:
                    type: string
                    description: Chat session status
                    enum:
                        - success
                        - error
                tool_call_count:
                    type: integer
                    description: Number of tool calls in this chat session
                    format: int64
                total_input_tokens:
                    type: integer
                    description: Total input tokens used
                    format: int64
                total_output_tokens:
                    type: integer
                    description: Total output tokens used
                    format: int64
                total_tokens:
                    type: integer
                    description: Total tokens used (input + output)
                    format: int64
                user_id:
                    type: string
                    description: User ID associated with this chat session
            description: Summary information for a chat session
            required:
                - gram_chat_id
                - start_time_unix_nano
                - end_time_unix_nano
                - log_count
                - tool_call_count
                - message_count
                - duration_seconds
                - status
                - total_input_tokens
                - total_output_tokens
                - total_tokens
        ChatTotals:
            type: object
            properties:
                assistant_messages:
                    type: integer
                    description: Number of assistant messages (without tool calls) in the generation.
                    format: int64
                risk_only:
                    type: integer
                    description: Number of messages with an active (found, non-suppressed) risk finding in the generation.
                    format: int64
                tool_calls:
                    type: integer
                    description: Number of messages carrying tool calls in the generation.
                    format: int64
                tool_results:
                    type: integer
                    description: Number of tool-result messages in the generation.
                    format: int64
                total:
                    type: integer
                    description: Total trace entries in the generation (sum of the four entry-type counts; the `of N entries` denominator).
                    format: int64
                user_messages:
                    type: integer
                    description: Number of user messages in the generation.
                    format: int64
            description: 'Trace-entry counts across the entire returned generation, independent of pagination. Each message maps to exactly one entry: a message carrying tool calls counts as a tool call regardless of role, otherwise the role decides.'
            required:
                - total
                - user_messages
                - assistant_messages
                - tool_calls
                - tool_results
                - risk_only
        ChatUserSessionCount:
            type: object
            properties:
                count:
                    type: integer
                    description: Number of sessions; equals the chat.list total when filtered to this user
                    format: int64
                display_name:
                    type: string
                    description: The user's display name, empty when unknown
                email:
                    type: string
                    description: The user's email, empty when unknown
                user_id:
                    type: string
                    description: Speakeasy user ID. Empty for sessions with no Speakeasy user (external users, agent actors).
            required:
                - user_id
                - email
                - display_name
                - count
        CheckAgentPolicyGrantsForm:
            type: object
            properties:
                agent_id:
                    type: string
                    description: The agent the grants would be written to. Omit for an agent the caller would create.
                    format: uuid
                owner_user_id:
                    type: string
                    description: Owner of the agent the caller would create, as agents.create takes it; defaults to the caller. Not allowed with agent_id, whose owner is its own.
                policy_grants:
                    type: array
                    items:
                        $ref: '#/components/schemas/AgentPolicyGrantForm'
                    description: The grants to check, answered in the same order.
                    minItems: 1
                    maxItems: 100
            required:
                - policy_grants
        CheckAgentPolicyGrantsResult:
            type: object
            properties:
                results:
                    type: array
                    items:
                        $ref: '#/components/schemas/AgentPolicyGrantCheck'
                    description: One answer per requested grant, in request order.
            required:
                - results
        CimdClientPreset:
            type: object
            properties:
                client_id_metadata_uri:
                    type: string
                    description: The https URL this client presents as its client_id. Usually exact; when is_pattern is true this is a wildcard pattern rather than a literal URL.
                display_name:
                    type: string
                    description: Human-readable client name.
                enabled:
                    type: boolean
                    description: Whether presets-mode issuers currently admit this entry. Disabled entries are listed so operators can see that Speakeasy knows about the vendor.
                is_pattern:
                    type: boolean
                    description: True when client_id_metadata_uri contains a `*` wildcard, matching a whole namespace of client_ids rather than one URL. Used for vendors that mint a separate metadata document per connector or install, so their client_ids cannot be enumerated. A `*` stands for exactly one path segment and never widens the host.
                vendor_key:
                    type: string
                    description: Stable identifier for the publishing vendor. Not unique — a vendor may publish several client documents.
            description: An entry in Speakeasy's curated CIMD preset catalog.
            required:
                - vendor_key
                - display_name
                - client_id_metadata_uri
                - is_pattern
                - enabled
        ClaudeAgentUsage:
            type: object
            properties:
                tools:
                    type: array
                    items:
                        $ref: '#/components/schemas/ClaudeToolUsage'
                    description: Per-tool Claude usage keyed by tool_use_id.
                turns:
                    type: array
                    items:
                        $ref: '#/components/schemas/ClaudeTurnUsage'
                    description: Per-prompt Claude usage turns ordered by start time.
            required:
                - turns
                - tools
        ClaudeHookPayload:
            type: object
            properties:
                additional_data:
                    type: object
                    description: Additional hook-specific data
                    additionalProperties: true
                cwd:
                    type: string
                    description: The working directory when the event fired
                error:
                    description: The error from the tool (PostToolUseFailure only)
                hook_event_name:
                    type: string
                    description: The type of hook event
                    enum:
                        - SessionStart
                        - ConfigChange
                        - PreToolUse
                        - PostToolUse
                        - PostToolUseFailure
                        - UserPromptSubmit
                        - Stop
                        - SessionEnd
                        - Notification
                is_interrupt:
                    type: boolean
                    description: Whether the failure was caused by user interruption (PostToolUseFailure only)
                last_assistant_message:
                    type: string
                    description: Claude's final response text (Stop only)
                message:
                    type: string
                    description: Notification message text (Notification only)
                model:
                    type: string
                    description: The model identifier (SessionStart, Stop)
                notification_type:
                    type: string
                    description: 'Type of notification: permission_prompt, idle_prompt, auth_success, elicitation_dialog (Notification only)'
                prompt:
                    type: string
                    description: The user's prompt text (UserPromptSubmit only)
                reason:
                    type: string
                    description: Why the session ended (SessionEnd only)
                session_id:
                    type: string
                    description: The Claude Code session ID
                source:
                    type: string
                    description: 'How the session started: startup, resume, clear, compact (SessionStart only)'
                stop_hook_active:
                    type: boolean
                    description: Whether a stop hook continuation is active (Stop only)
                title:
                    type: string
                    description: Notification title (Notification only)
                tool_input:
                    description: The input to the tool
                tool_name:
                    type: string
                    description: The name of the tool (for tool-related events)
                tool_response:
                    description: The response from the tool (PostToolUse only)
                tool_use_id:
                    type: string
                    description: The unique ID for this tool use
                transcript_path:
                    type: string
                    description: Path to the conversation transcript file
                user_email:
                    type: string
                    description: Email of the authenticated user from the Speakeasy device agent, if available
            description: Unified payload for all Claude Code hook events
            required:
                - hook_event_name
        ClaudeHookResult:
            type: object
            properties:
                continue:
                    type: boolean
                    description: Whether to continue (SessionStart only)
                decision:
                    type: string
                    description: Top-level block decision for UserPromptSubmit / PostToolUse / Stop / SubagentStop. Use 'block' to halt processing.
                hookSpecificOutput:
                    description: Hook-specific output as JSON object
                reason:
                    type: string
                    description: Reason accompanying decision; shown to the user (UserPromptSubmit) or Claude (PostToolUse/Stop).
                stopReason:
                    type: string
                    description: Reason if blocked (SessionStart only)
                suppressOutput:
                    type: boolean
                    description: Whether to suppress the hook's output
                systemMessage:
                    type: string
                    description: Warning message shown to the user in the terminal
            description: Unified result for all Claude Code hook events with proper response structure
        ClaudeToolUsage:
            type: object
            properties:
                input_size_bytes:
                    type: integer
                    description: Serialized tool input size in bytes.
                    format: int64
                prompt_id:
                    type: string
                    description: Claude prompt.id for the turn that used this tool.
                result_size_bytes:
                    type: integer
                    description: Serialized tool result size in bytes.
                    format: int64
                tool_name:
                    type: string
                    description: Tool name reported by Claude Code.
                tool_use_id:
                    type: string
                    description: Claude tool_use_id that correlates the tool call and result.
            required:
                - tool_use_id
                - prompt_id
                - tool_name
                - input_size_bytes
                - result_size_bytes
        ClaudeTurnUsage:
            type: object
            properties:
                cache_creation_tokens:
                    type: integer
                    description: Cache creation tokens used by this turn.
                    format: int64
                cache_read_tokens:
                    type: integer
                    description: Cache read tokens used by this turn.
                    format: int64
                cost_micros:
                    type: integer
                    description: Total cost for this turn in micros of a USD.
                    format: int64
                cost_usd:
                    type: number
                    description: Total USD cost for this turn.
                    format: double
                end_time_unix_nano:
                    type: string
                    description: Latest OTEL log timestamp in this turn, as Unix nanoseconds.
                input_tokens:
                    type: integer
                    description: Input tokens used by this turn.
                    format: int64
                models:
                    type: array
                    items:
                        type: string
                    description: Distinct model names used by this turn.
                output_tokens:
                    type: integer
                    description: Output tokens used by this turn.
                    format: int64
                prompt_id:
                    type: string
                    description: Claude prompt.id that correlates events for one user turn.
                query_sources:
                    type: array
                    items:
                        type: string
                    description: Distinct Claude query sources used by this turn.
                request_count:
                    type: integer
                    description: Number of Claude API request events in this turn.
                    format: int64
                start_time_unix_nano:
                    type: string
                    description: Earliest OTEL log timestamp in this turn, as Unix nanoseconds.
                total_tokens:
                    type: integer
                    description: Total tokens used by this turn.
                    format: int64
            required:
                - prompt_id
                - start_time_unix_nano
                - end_time_unix_nano
                - request_count
                - input_tokens
                - output_tokens
                - cache_read_tokens
                - cache_creation_tokens
                - total_tokens
                - cost_usd
                - cost_micros
                - models
                - query_sources
        CloneEnvironmentForm:
            type: object
            properties:
                copy_values:
                    type: boolean
                    description: If true, copy the encrypted secret values from the source. If false (default), copy only variable names with empty placeholder values.
                new_name:
                    type: string
                    description: The name for the new cloned environment
                slug:
                    type: string
                    description: A short url-friendly label that uniquely identifies a resource.
                    pattern: ^[a-z0-9_-]{1,128}$
                    maxLength: 40
            description: Form for cloning an existing environment into a new one
            required:
                - slug
                - new_name
        CloneEnvironmentRequestBody:
            type: object
            properties:
                copy_values:
                    type: boolean
                    description: If true, copy the encrypted secret values from the source. If false (default), copy only variable names with empty placeholder values.
                new_name:
                    type: string
                    description: The name for the new cloned environment
            required:
                - new_name
        CloneOnboardingPlaybookRequestBody:
            type: object
            properties:
                name:
                    type: string
                    description: Defaults to the source name.
                organization_id:
                    type: string
                playbook_id:
                    type: string
            required:
                - organization_id
                - playbook_id
        CodexHookPayload:
            type: object
            properties:
                additional_data:
                    type: object
                    description: Additional hook-specific data
                    additionalProperties: true
                cwd:
                    type: string
                    description: The working directory when the event fired
                hook_event_name:
                    type: string
                    description: The type of hook event
                    enum:
                        - SessionStart
                        - PreToolUse
                        - PermissionRequest
                        - PostToolUse
                        - UserPromptSubmit
                        - Stop
                last_assistant_message:
                    type: string
                    description: The final assistant message text for the turn (Stop only)
                model:
                    type: string
                    description: The model identifier
                permission_type:
                    type: string
                    description: The type of permission being requested (PermissionRequest only)
                prompt:
                    type: string
                    description: The user's prompt text (UserPromptSubmit only)
                session_id:
                    type: string
                    description: The Codex session ID
                tool_input:
                    description: The input to the tool (PreToolUse only)
                tool_name:
                    type: string
                    description: The name of the tool
                tool_output:
                    description: The output from the tool (PostToolUse only)
                transcript_path:
                    type: string
                    description: Path to the conversation transcript file
                user_email:
                    type: string
                    description: Email of the authenticated Codex user, if available
            description: Payload for Codex hook events
            required:
                - hook_event_name
        CodexHookResult:
            type: object
            properties:
                decision:
                    type: string
                    description: 'Permission decision for blocking events: allow or deny'
                reason:
                    type: string
                    description: Reason for the decision, shown to the user
            description: Result for Codex hook events
        CommitServerIdentityConfigurationForm:
            type: object
            properties:
                client_configuration:
                    $ref: '#/components/schemas/ServerIdentityClientConfiguration'
                client_mode:
                    type: string
                    description: How to provide the OAuth client.
                    enum:
                        - auto
                        - existing
                        - manual
                create_provider:
                    $ref: '#/components/schemas/CreateRemoteSessionIssuerForm'
                existing_client_id:
                    type: string
                    description: 'An existing visible remote-session client to link. Required only for existing mode. Linking shares the client with every server that already uses it: a person holds one upstream grant per client, so signing in through one server replaces the grant another server obtained. To give this server its own client on the same upstream registration, use manual mode with client_configuration.template_client_id instead.'
                    format: uuid
                mcp_server_id:
                    type: string
                    description: The target MCP server. It must be backed directly by a Remote MCP source.
                    format: uuid
                provider_id:
                    type: string
                    description: An existing Remote Identity Provider visible to the target project.
                    format: uuid
                registration_method:
                    type: string
                    description: Auto mode only. cimd (the default) prefers a Client ID Metadata Document when the provider supports one and falls back to dynamic client registration; dcr always uses dynamic client registration.
                    enum:
                        - cimd
                        - dcr
                replace_client:
                    type: boolean
                    description: Replace the selected provider's client already bound to the user session issuer, rather than reuse it or be refused. Everyone signed in through the old client must sign in again, on this server and every other server that uses it. The other servers move to the new client. Refused when a gateway or a server that is not directly Remote MCP-backed shares the issuer, or when a server using the client is in another project.
                replace_client_server_ids:
                    type: array
                    items:
                        type: string
                        format: uuid
                    description: With replace_client, exactly the other MCP servers that use the client being replaced, as getServerIdentityImpact listed them. The commit is refused if they no longer match.
                target_server_only:
                    type: boolean
                    description: Refuse a save if the user session issuer also serves another MCP server. Setup screens must set this to avoid changing shared sign-in bindings. Explicitly assign a dedicated issuer before retrying.
            description: 'A complete plan for configuring identity on one Remote MCP-backed MCP server. Exactly one of provider_id or create_provider is required. client_mode controls which client fields are accepted: existing requires existing_client_id and no client_configuration; auto and manual require client_configuration and no existing_client_id.'
            required:
                - mcp_server_id
                - client_mode
        CommitServerIdentityConfigurationResult:
            type: object
            properties:
                client:
                    $ref: '#/components/schemas/RemoteSessionClient'
                client_path:
                    type: string
                    description: Organization-relative dashboard path to the client detail surface.
                client_tier:
                    type: string
                    description: The client ownership tier.
                    enum:
                        - project-specific
                        - organization-level
                failure:
                    $ref: '#/components/schemas/ServerIdentityRegistrationFailure'
                manual_setup_required:
                    type: boolean
                    description: True only when auto mode found neither usable CIMD nor DCR support. This is not a registration failure and no local state was changed.
                provider:
                    $ref: '#/components/schemas/RemoteSessionIssuer'
                provider_path:
                    type: string
                    description: Organization-relative dashboard path to the Remote Identity Provider detail surface.
                provider_tier:
                    type: string
                    description: The provider ownership tier.
                    enum:
                        - project-specific
                        - organization-level
                        - platform-level
                registration_method:
                    type: string
                    description: How the client was obtained. Present on success and registration failure.
                    enum:
                        - cimd
                        - dcr
                        - manual
                        - existing
                status:
                    type: string
                    description: Successful commit status. Present only after local commit.
                    enum:
                        - registered
                        - linked
            description: The outcome of committing a Remote MCP server user-identity plan. registered and linked are successful local commits. A registration failure is returned in failure. manual_setup_required is a preparation signal, not a registration outcome, and means auto mode found neither usable CIMD nor DCR support; no local state changed.
            required:
                - manual_setup_required
        CompleteBindingRefreshRequestBody:
            type: object
            properties:
                attempt_id:
                    type: string
                    format: uuid
                principal_id:
                    type: string
                    format: uuid
                user_session_issuer_id:
                    type: string
                    format: uuid
            required:
                - principal_id
                - user_session_issuer_id
                - attempt_id
        ConfirmOktaResourceConnectionsRequestBody:
            type: object
            properties:
                connections:
                    type: array
                    items:
                        $ref: '#/components/schemas/OktaResourceConnectionConfirmation'
                    description: Servers to confirm with their configured values.
                    minItems: 1
                    maxItems: 200
            required:
                - connections
        ConfirmOktaResourceConnectionsResult:
            type: object
            properties:
                servers:
                    type: array
                    items:
                        $ref: '#/components/schemas/OktaResourceConnectionServer'
                    description: The confirmed servers with their new state.
            required:
                - servers
        CountChatsByUserResult:
            type: object
            properties:
                total:
                    type: integer
                    description: Total sessions across all users; equals the unfiltered chat.list total for the same range
                    format: int64
                users:
                    type: array
                    items:
                        $ref: '#/components/schemas/ChatUserSessionCount'
                    description: Users ranked by session count, highest first, truncated to the requested limit
            required:
                - users
                - total
        CountRemoteSessionsResult:
            type: object
            properties:
                subjects:
                    type: integer
                    description: Distinct user subjects with a live remote_session through the client.
                    format: int64
            description: Result type for counting the people signed in through a remote_session_client.
            required:
                - subjects
        CreateAgentForm:
            type: object
            properties:
                name:
                    type: string
                    minLength: 1
                    maxLength: 120
                owner_user_id:
                    type: string
                    description: Eligible same-organization human owner; defaults to the caller
                policy_grants:
                    type: array
                    items:
                        $ref: '#/components/schemas/AgentPolicyGrantForm'
                    description: Optional initial allow-only agent policy ceilings, created atomically with the agent. Effective credential permissions remain limited by the live owner and authorizer.
                project_id:
                    type: string
                    description: Optional project binding. Omit or send an empty string for an organization-wide agent; independent of policy grants and the Gram-Project header.
            required:
                - name
        CreateAgentPolicyGrantForm:
            type: object
            properties:
                agent_id:
                    type: string
                    description: First-class agent identifier
                    format: uuid
                effect:
                    type: string
                    description: Grant effect; direct agent policy is allow-only
                    enum:
                        - allow
                scope:
                    type: string
                    description: Agent-runtime-safe scope to grant
                    minLength: 1
                selector:
                    $ref: '#/components/schemas/AgentPolicySelector'
            required:
                - agent_id
                - scope
                - effect
                - selector
        CreateAssistantForm:
            type: object
            properties:
                instructions:
                    type: string
                    description: The system instructions for the assistant.
                max_concurrency:
                    type: integer
                    description: Optional maximum active warm runtimes.
                    format: int64
                mcp_servers:
                    type: array
                    items:
                        $ref: '#/components/schemas/AssistantMCPServerRef'
                    description: MCP servers to attach. When sent, replaces the assistant's servers that are not hosted (toolset-backed). A hosted server listed here is attached if it is not already; attached hosted servers are left unchanged, and toolsets governs them when both are sent.
                model:
                    type: string
                    description: The model identifier used by the assistant.
                name:
                    type: string
                    description: The assistant name.
                status:
                    type: string
                    description: Optional initial status.
                    enum:
                        - active
                        - paused
                toolsets:
                    type: array
                    items:
                        $ref: '#/components/schemas/AssistantToolsetRef'
                    description: Hosted (toolset-backed) MCP servers to attach, by toolset slug. When sent, replaces the assistant's hosted servers.
                warm_ttl_seconds:
                    type: integer
                    description: Optional warm runtime TTL in seconds.
                    format: int64
            required:
                - name
                - model
                - instructions
                - toolsets
        CreateAuthClientRequestBody:
            type: object
            properties:
                client_type:
                    type: string
                    description: How the client authenticates upstream.
                    enum:
                        - remote_session
                        - service_account
                        - static_credential
                        - pass_through
                headers:
                    type: array
                    items:
                        $ref: '#/components/schemas/AuthClientHeaderInput'
                    description: The headers the client sends upstream. Required for static_credential and pass_through clients. Token-generating clients produce their own Authorization header, which cannot be configured.
                mcp_server_ids:
                    type: array
                    items:
                        type: string
                        format: uuid
                    description: MCP servers that should offer the client.
                name:
                    type: string
                    description: The client's name.
                    minLength: 1
                project_id:
                    type: string
                    description: Confine the client to one project. Omit to share it across the organization's projects.
                    format: uuid
                remote_session_client_id:
                    type: string
                    description: The OAuth registration behind a remote_session or service_account client.
                    format: uuid
            required:
                - client_type
                - name
        CreateAwsIamCredentialForm:
            type: object
            properties:
                assume_role_arn:
                    type: string
                    description: The customer IAM role ARN Speakeasy assumes. Omit for a KMS key-policy grant.
                name:
                    type: string
                    description: A human-readable name for the credential.
                oidc_audience:
                    type: string
                    description: The OIDC audience. Provide (with assume_role_arn) to assume the role with a web identity.
                oidc_subject:
                    type: string
                    description: Optional OIDC subject pin; only valid alongside oidc_audience.
                sts_region:
                    type: string
                    description: Optional STS region override.
            required:
                - name
        CreateAwsKmsKeyForm:
            type: object
            properties:
                algorithm:
                    type: string
                    description: The signing algorithm of the key.
                    enum:
                        - RS256
                        - ES256
                customer_grant_reference:
                    type: string
                    description: Optional. The Speakeasy identity (GCP service-account email or AWS principal ARN) the customer granted on the key for the key-policy / IAM-grant model. Not a secret.
                external_credential_id:
                    type: string
                    description: The external credential Speakeasy uses to authenticate to the key. Must belong to the same organization and matching cloud family (an aws_kms key requires an aws_iam credential; a gcp_kms key requires a gcp_iam credential).
                    format: uuid
                key_arn:
                    type: string
                    description: The ARN of the AWS KMS key.
                name:
                    type: string
                    description: A human-readable name for the key.
            required:
                - key_arn
                - external_credential_id
                - algorithm
                - name
        CreateCimdForm:
            type: object
            properties:
                audience:
                    type: string
                    description: Optional upstream OAuth audience to send on the authorize redirect and token exchange.
                    pattern: ^[!-~]+$
                    maxLength: 512
                remote_session_issuer_id:
                    type: string
                    description: The owning remote_session_issuer id. Must advertise client_id_metadata_document_supported.
                    format: uuid
                scope:
                    type: array
                    items:
                        type: string
                        pattern: ^[!#-[\]-~]+$
                        maxLength: 128
                    description: Explicit upstream OAuth scopes the dance should request for this client. Omit to fall back to the issuer's scopes_supported.
                user_session_issuer_ids:
                    type: array
                    items:
                        type: string
                        format: uuid
                    description: The user_session_issuers to attach this client to via the join table. Omit or pass an empty array to create a standalone client with no attachments.
            description: Form for creating a remote_session_client in Client ID Metadata Document (CIMD) mode. Speakeasy generates the client_id (the URL of a hosted client metadata document) and serves the document publicly; the row carries no secret and authenticates with token_endpoint_auth_method=none. The caller supplies no client_id or credentials.
            required:
                - remote_session_issuer_id
        CreateCimdOrganizationRemoteSessionClientForm:
            type: object
            properties:
                audience:
                    type: string
                    description: Optional upstream OAuth audience to send on the authorize redirect and token exchange.
                    pattern: ^[!-~]+$
                    maxLength: 512
                project_id:
                    type: string
                    description: Owning project id for the new client; the project must belong to the caller's organization. Omit to inherit a project-specific issuer's project, or to create an organization-level client (no project, attachable by every project) under an organization-level issuer.
                    format: uuid
                remote_session_issuer_id:
                    type: string
                    description: The owning remote_session_issuer id; must belong to the caller's organization and advertise client_id_metadata_document_supported.
                    format: uuid
                scope:
                    type: array
                    items:
                        type: string
                        pattern: ^[!#-[\]-~]+$
                        maxLength: 128
                    description: Explicit upstream OAuth scopes the dance should request for this client. Omit to fall back to the issuer's scopes_supported.
            description: Form for an org admin to register a standalone remote_session_client in Client ID Metadata Document (CIMD) mode under an existing issuer, with no user_session_issuer attachments. Speakeasy generates the client_id and hosts the metadata document; the issuer must advertise client_id_metadata_document_supported.
            required:
                - remote_session_issuer_id
        CreateCustomDetectionRuleRequestBody:
            type: object
            properties:
                description:
                    type: string
                    description: Description of what the rule detects.
                detection_expr:
                    type: string
                    description: 'CEL detection predicate: a boolean expression over message fields whose true verdict produces a finding.'
                regex:
                    type: string
                    description: Deprecated legacy RE2 regex pattern; superseded by detection_expr. Accepted for backward compatibility.
                rule_id:
                    type: string
                    description: Stable rule identifier, prefixed with `custom.`.
                severity:
                    type: string
                    description: Severity level for findings produced by this rule.
                    default: medium
                    enum:
                        - info
                        - low
                        - medium
                        - high
                        - critical
                title:
                    type: string
                    description: Human-readable title for the rule.
            required:
                - rule_id
                - title
        CreateDashboardRequestBody:
            type: object
            properties:
                description:
                    type: string
                    description: What the dashboard is for, at most 2000 characters
                    maxLength: 2000
                name:
                    type: string
                    description: Display name, at most 200 characters
                    minLength: 1
                    maxLength: 200
            required:
                - name
        CreateDataExportRouteForm:
            type: object
            properties:
                data_source:
                    type: string
                    description: Class of data exported by this route.
                    enum:
                        - product_telemetry
                        - risk_findings
                        - tool_call_logs
                        - mcp_connection_logs
                enabled:
                    type: boolean
                    description: Whether the route is enabled.
                    default: true
                otel_destination_id:
                    type: string
                    description: OTEL destination configured on this route. Required when enabled.
                    format: uuid
            description: Form for creating the selected data source's export route.
            required:
                - data_source
        CreateDeploymentForm:
            type: object
            properties:
                external_id:
                    type: string
                    description: The external ID to refer to the deployment. This can be a git commit hash for example.
                    example: bc5f4a555e933e6861d12edba4c2d87ef6caf8e6
                external_url:
                    type: string
                    description: The upstream URL a deployment can refer to. This can be a github url to a commit hash or pull request.
                functions:
                    type: array
                    items:
                        $ref: '#/components/schemas/AddFunctionsForm'
                github_pr:
                    type: string
                    description: The github pull request that resulted in the deployment.
                    example: "1234"
                github_repo:
                    type: string
                    description: The github repository in the form of "owner/repo".
                    example: speakeasyapi/gram
                github_sha:
                    type: string
                    description: The commit hash that triggered the deployment.
                    example: f33e693e9e12552043bc0ec5c37f1b8a9e076161
                idempotency_key:
                    type: string
                    description: A unique identifier that will mitigate against duplicate deployments.
                    example: 01jqq0ajmb4qh9eppz48dejr2m
                non_blocking:
                    type: boolean
                    description: If true, the deployment will be created in non-blocking mode where the request will return immediately and the deployment will proceed asynchronously.
                    example: false
                openapiv3_assets:
                    type: array
                    items:
                        $ref: '#/components/schemas/AddOpenAPIv3DeploymentAssetForm'
                packages:
                    type: array
                    items:
                        $ref: '#/components/schemas/AddDeploymentPackageForm'
            required:
                - idempotency_key
        CreateDeploymentRequestBody:
            type: object
            properties:
                external_id:
                    type: string
                    description: The external ID to refer to the deployment. This can be a git commit hash for example.
                    example: bc5f4a555e933e6861d12edba4c2d87ef6caf8e6
                external_url:
                    type: string
                    description: The upstream URL a deployment can refer to. This can be a github url to a commit hash or pull request.
                functions:
                    type: array
                    items:
                        $ref: '#/components/schemas/AddFunctionsForm'
                github_pr:
                    type: string
                    description: The github pull request that resulted in the deployment.
                    example: "1234"
                github_repo:
                    type: string
                    description: The github repository in the form of "owner/repo".
                    example: speakeasyapi/gram
                github_sha:
                    type: string
                    description: The commit hash that triggered the deployment.
                    example: f33e693e9e12552043bc0ec5c37f1b8a9e076161
                non_blocking:
                    type: boolean
                    description: If true, the deployment will be created in non-blocking mode where the request will return immediately and the deployment will proceed asynchronously.
                    example: false
                openapiv3_assets:
                    type: array
                    items:
                        $ref: '#/components/schemas/AddOpenAPIv3DeploymentAssetForm'
                packages:
                    type: array
                    items:
                        $ref: '#/components/schemas/AddDeploymentPackageForm'
        CreateDeploymentResult:
            type: object
            properties:
                deployment:
                    $ref: '#/components/schemas/Deployment'
        CreateDestinationForm:
            type: object
            properties:
                destination_type:
                    type: string
                    description: Destination transport type.
                    enum:
                        - otel
                name:
                    type: string
                    description: Human-readable destination name.
                otel:
                    $ref: '#/components/schemas/CreateOtelDestinationInput'
                sensitive_data:
                    type: string
                    description: Sensitive-data policy.
                    default: exclude
                    enum:
                        - exclude
                        - include
            description: Form for creating a data export destination. Supply the transport configuration selected by destination_type.
            required:
                - name
                - destination_type
        CreateDeviceJoinTokenRequestBody:
            type: object
            properties:
                agent_id:
                    type: string
                    description: The agent the enrolled device inherits its policy from.
                    format: uuid
                expires_in_seconds:
                    type: integer
                    description: How long the token stays redeemable. Defaults to one hour.
                    default: 3600
                    format: int64
                    minimum: 60
                    maximum: 86400
            required:
                - agent_id
        CreateDomainRequestBody:
            type: object
            properties:
                domain:
                    type: string
                    description: The custom domain
                ip_allowlist:
                    type: array
                    items:
                        type: string
                    description: IP addresses or CIDR ranges to allow. Leave empty for unrestricted access.
            required:
                - domain
        CreateEnvironmentForm:
            type: object
            properties:
                description:
                    type: string
                    description: Optional description of the environment
                entries:
                    type: array
                    items:
                        $ref: '#/components/schemas/EnvironmentEntryInput'
                    description: List of environment variable entries
                name:
                    type: string
                    description: The name of the environment
                organization_id:
                    type: string
                    description: The organization ID this environment belongs to
            description: Form for creating a new environment
            required:
                - organization_id
                - name
                - entries
        CreateExternalKeyFields:
            type: object
            properties:
                algorithm:
                    type: string
                    description: The signing algorithm of the key.
                    enum:
                        - RS256
                        - ES256
                customer_grant_reference:
                    type: string
                    description: Optional. The Speakeasy identity (GCP service-account email or AWS principal ARN) the customer granted on the key for the key-policy / IAM-grant model. Not a secret.
                external_credential_id:
                    type: string
                    description: The external credential Speakeasy uses to authenticate to the key. Must belong to the same organization and matching cloud family (an aws_kms key requires an aws_iam credential; a gcp_kms key requires a gcp_iam credential).
                    format: uuid
                name:
                    type: string
                    description: A human-readable name for the key.
            required:
                - external_credential_id
                - algorithm
                - name
        CreateGcpIamCredentialForm:
            type: object
            properties:
                impersonate_service_account:
                    type: string
                    description: The service account in your project that Speakeasy impersonates. Grant Speakeasy's own service account roles/iam.serviceAccountTokenCreator on it — see externalCredentials.getGcpSetupInfo.
                name:
                    type: string
                    description: A human-readable name for the credential.
            required:
                - name
                - impersonate_service_account
        CreateGcpKmsKeyForm:
            type: object
            properties:
                algorithm:
                    type: string
                    description: The signing algorithm of the key.
                    enum:
                        - RS256
                        - ES256
                customer_grant_reference:
                    type: string
                    description: Optional. The Speakeasy identity (GCP service-account email or AWS principal ARN) the customer granted on the key for the key-policy / IAM-grant model. Not a secret.
                external_credential_id:
                    type: string
                    description: The external credential Speakeasy uses to authenticate to the key. Must belong to the same organization and matching cloud family (an aws_kms key requires an aws_iam credential; a gcp_kms key requires a gcp_iam credential).
                    format: uuid
                name:
                    type: string
                    description: A human-readable name for the key.
                resource_name:
                    type: string
                    description: The resource name of the GCP KMS key (projects/.../cryptoKeyVersions/...).
            required:
                - resource_name
                - external_credential_id
                - algorithm
                - name
        CreateGlobalRemoteSessionClientForm:
            type: object
            properties:
                audience:
                    type: string
                    description: Optional upstream OAuth audience to send on the authorize redirect and token exchange.
                    pattern: ^[!-~]+$
                    maxLength: 512
                client_id:
                    type: string
                    description: client_id supplied by the caller.
                client_secret:
                    type: string
                    description: client_secret supplied by the caller. Speakeasy encrypts before persisting.
                remote_session_issuer_id:
                    type: string
                    description: The owning global remote_session_issuer id.
                    format: uuid
                scope:
                    type: array
                    items:
                        type: string
                        pattern: ^[!#-[\]-~]+$
                        maxLength: 128
                    description: Explicit upstream OAuth scopes the dance should request for this client. Omit to fall back to the issuer's scopes_supported.
                token_endpoint_auth_method:
                    type: string
                    description: How the client authenticates at the issuer's token endpoint. Omit to default to client_secret_basic.
                    enum:
                        - client_secret_basic
                        - client_secret_post
                        - none
            description: Form for creating a global remote_session_client. Caller supplies client_id (and optional client_secret) obtained out-of-band from the upstream issuer.
            required:
                - remote_session_issuer_id
                - client_id
        CreateIdentityProviderConnectionRequestBody:
            type: object
            properties:
                listing_mode:
                    type: string
                    description: Checklist template. Defaults to custom_app.
                    enum:
                        - custom_app
                        - oin
                org_url:
                    type: string
                    description: Okta org URL, for example https://example.okta.com. Must be https on an Okta-owned domain with no path, except an Admin Console URL with an /admin path, which resolves to its org.
            required:
                - org_url
        CreateIngressRequestBody:
            type: object
            properties:
                hostname:
                    type: string
                    description: Lowercase DNS label
                identity_required:
                    type: boolean
                oauth_client_id:
                    type: string
                oauth_client_secret:
                    type: string
                provider:
                    type: string
                    enum:
                        - tailscale
            required:
                - provider
                - hostname
                - oauth_client_id
                - oauth_client_secret
        CreateInstanceRequestBody:
            type: object
            properties:
                failure_posture:
                    type: string
                    enum:
                        - fail_closed
                        - fail_open
                name:
                    type: string
                    maxLength: 255
            required:
                - name
        CreateIssuerRequestBody:
            type: object
            properties:
                authorization_endpoint:
                    type: string
                    description: Upstream authorization endpoint.
                authorization_grant_profiles_supported:
                    type: array
                    items:
                        type: string
                    description: Advertised grant profiles; metadata evidence is not client authorization or user access.
                authorization_response_iss_parameter_supported:
                    type: boolean
                    description: Whether the issuer includes the RFC 9207 iss parameter in authorization responses. Omitting the field stores null ("not captured").
                backchannel_logout_supported:
                    type: boolean
                    description: Whether the issuer supports OpenID Connect Back-Channel Logout. Omitting the field stores null ("not captured").
                claims_supported:
                    type: array
                    items:
                        type: string
                    description: Claims the issuer can return in ID tokens and from userinfo. Omitting the field stores null ("not captured"), distinct from an empty array ("the issuer advertises none").
                client_id_metadata_document_supported:
                    type: boolean
                    description: When true, the issuer accepts a Client ID Metadata Document URL as client_id (OAuth CIMD draft). Discovered from the issuer metadata document and used to pre-flight outbound CIMD. Default false.
                client_setup_documentation_url:
                    type: string
                    description: URL of OAuth client setup documentation shown when creating clients. Manually set, not RFC 8414; rejected unless an absolute http(s) URL.
                code_challenge_methods_supported:
                    type: array
                    items:
                        type: string
                    description: PKCE code challenge methods advertised by the issuer (RFC 8414 code_challenge_methods_supported). Omitting the field stores null ("not captured"), distinct from an empty array ("the issuer advertises no methods").
                grant_types_supported:
                    type: array
                    items:
                        type: string
                    description: Grant types advertised by the issuer.
                id_token_signing_alg_values_supported:
                    type: array
                    items:
                        type: string
                    description: JWS algorithms the issuer signs ID tokens with. Omitting the field stores null ("not captured"), distinct from an empty array ("the issuer advertises none").
                introspection_endpoint:
                    type: string
                    description: RFC 7662 token introspection endpoint. Discovered from the issuer metadata document; rejected unless an absolute https URL, or http on loopback.
                introspection_endpoint_auth_methods_supported:
                    type: array
                    items:
                        type: string
                    description: Client authentication methods the introspection endpoint accepts. Omitting the field stores null ("not captured"), distinct from an empty array ("the issuer advertises none").
                issuer:
                    type: string
                    description: Issuer URL; matches the iss claim.
                jwks_uri:
                    type: string
                    description: Upstream JWKS URI.
                logo_asset_id:
                    type: string
                    description: Optional logo asset id.
                    format: uuid
                name:
                    type: string
                    description: Optional display name. Stored NULL when empty; clients fall back to the issuer URL/slug.
                oidc:
                    type: boolean
                    description: When true, may unlock OIDC-aware behaviour. Default false.
                omit_scope_fallback:
                    type: boolean
                    description: 'When true, a login that would otherwise request the authorization server''s whole scopes_supported omits the scope parameter so the server applies its default. Omit to leave it unset: such a login requests the provider''s whole scopes_supported.'
                op_policy_uri:
                    type: string
                    description: RFC 8414 op_policy_uri; the issuer's client data-usage policy. Discovered from the issuer metadata document; rejected unless an absolute http(s) URL.
                op_tos_uri:
                    type: string
                    description: RFC 8414 op_tos_uri; the issuer's terms of service. Discovered from the issuer metadata document; rejected unless an absolute http(s) URL.
                passthrough:
                    type: boolean
                    description: When true, the MCP client registers and transacts directly with this issuer. Default false.
                project_id:
                    type: string
                    description: Owning project id; the project must belong to the caller's organization. Omit to create an organization-level issuer.
                    format: uuid
                registration_endpoint:
                    type: string
                    description: Upstream RFC 7591 registration endpoint; absent for issuers without DCR.
                resource_indicator_supported:
                    type: boolean
                    description: 'Whether the issuer accepts the RFC 8707 resource parameter. Omit to leave it unset: the parameter is then sent, and a login or refresh the issuer answers with invalid_target is retried once without it. Set false to never send it.'
                response_types_supported:
                    type: array
                    items:
                        type: string
                    description: Response types advertised by the issuer.
                revocation_endpoint:
                    type: string
                    description: Upstream RFC 7009 revocation endpoint; absent for issuers that advertise none.
                scope_override:
                    type: array
                    items:
                        type: string
                    description: Operator-pinned scope request. When set, it is sent verbatim on the upstream authorize redirect in place of the resolved scope set. Omit or send an empty array to leave it unset.
                scopes_supported:
                    type: array
                    items:
                        type: string
                    description: Scopes advertised by the issuer.
                service_documentation:
                    type: string
                    description: RFC 8414 service_documentation; developer documentation for the issuer. Discovered from the issuer metadata document; rejected unless an absolute http(s) URL.
                slug:
                    type: string
                    description: Project-unique slug.
                token_endpoint:
                    type: string
                    description: Upstream token endpoint.
                token_endpoint_auth_methods_supported:
                    type: array
                    items:
                        type: string
                    description: Token endpoint auth methods advertised by the issuer.
                tunneled_mcp_server_id:
                    type: string
                    description: Route this issuer's OAuth endpoint calls through an MCP tunnel in the same project. Platform admins only.
                    format: uuid
                userinfo_endpoint:
                    type: string
                    description: OpenID Connect userinfo endpoint. Discovered from the issuer metadata document; rejected unless an absolute https URL, or http on loopback.
            required:
                - slug
                - issuer
        CreateJSONWebKeySetForm:
            type: object
            properties:
                external_key_id:
                    type: string
                    description: The external key to back the set with. Must be a live, organization-owned GCP KMS key; AWS KMS keys are not supported yet.
                    format: uuid
                name:
                    type: string
                    description: A human-readable name for the key set. Names may repeat within an organization.
            required:
                - name
                - external_key_id
        CreateKeyForm:
            type: object
            properties:
                agent_id:
                    type: string
                    description: First-class agent subject. Omit for an ordinary API key.
                    format: uuid
                auth_client_choices:
                    type: array
                    items:
                        $ref: '#/components/schemas/AgentKeyAuthClientChoice'
                    description: 'For an agent key: the upstream credential the key uses on each MCP server it names. Where typed upstream authentication is enforced, the key is served on a server with the credential chosen here, checked again on every request. Shared credentials only: an agent reaches a person''s own connection when it acts for them.'
                    maxItems: 100
                delegated_grants_version:
                    type: integer
                    description: Delegated policy format version. Required for agent keys.
                    format: int64
                    minimum: 1
                expires_at:
                    type: string
                    description: Agent credential expiry; defaults to 90 days and cannot exceed one year
                    format: date-time
                name:
                    type: string
                    description: The name of the key
                    maxLength: 255
                policy_grants:
                    type: array
                    items:
                        $ref: '#/components/schemas/APIKeyPolicyGrant'
                    description: 'Optional policy for an ordinary key: mcp:connect and mcp:auth grants, and mcp:blocked_connect and mcp:blocked_auth blocks, that its server and auth client access is evaluated against. Not yet enforced. Requires org admin.'
                    maxItems: 100
                project_id:
                    type: string
                    description: Optional project binding. Omit for an organization-wide key; independent of permission scopes and the Gram-Project header.
                    format: uuid
                requested_grants:
                    type: array
                    items:
                        $ref: '#/components/schemas/AgentPolicyGrantForm'
                    description: Exact allow grants approved for an agent credential
                scopes:
                    type: array
                    items:
                        type: string
                    description: Legacy transport scopes. Omitted or empty defaults to consumer for ordinary keys; agent keys require no scopes.
            required:
                - name
        CreateMcpEndpointForm:
            type: object
            properties:
                custom_domain_id:
                    type: string
                    description: The ID of the custom domain to register the endpoint slug under. Omit for a platform-domain endpoint.
                    format: uuid
                mcp_server_id:
                    type: string
                    description: The ID of the MCP server this endpoint addresses. Mutually exclusive with meta_mcp_server_id.
                    format: uuid
                meta_mcp_server_id:
                    type: string
                    description: The ID of the meta MCP server this endpoint addresses. Mutually exclusive with mcp_server_id.
                    format: uuid
                slug:
                    type: string
                    description: A url-friendly label (up to 128 characters) that addresses an MCP server through a slug-based URL. Platform-domain slugs (no custom domain) must be prefixed with the organization slug.
                    pattern: ^[a-z0-9_-]{1,128}$
                    maxLength: 128
            description: Form for creating a new MCP endpoint. Provide exactly one of mcp_server_id or meta_mcp_server_id. Platform-domain endpoint slugs (no custom_domain_id) must be prefixed with the organization slug.
            required:
                - slug
        CreateMcpServerForm:
            type: object
            properties:
                environment_id:
                    type: string
                    description: The ID of the environment to associate with the server
                    format: uuid
                name:
                    type: string
                    description: A human-readable display name for the server
                network_access_mode:
                    type: string
                    description: The network surfaces through which a Speakeasy-hosted MCP server may be reached.
                    enum:
                        - public_only
                        - dual
                        - private_only
                remote_mcp_server_id:
                    type: string
                    description: The ID of the remote MCP server to use as the backend
                    format: uuid
                tool_variations_group_id:
                    type: string
                    description: The ID of the tool variations group enabling MCP tool filtering for this server. Omit to leave filtering disabled.
                    format: uuid
                toolset_id:
                    type: string
                    description: The ID of the toolset to use as the backend
                    format: uuid
                tunneled_mcp_server_id:
                    type: string
                    description: The ID of the tunneled MCP server to use as the backend
                    format: uuid
                unproxied_mcp_server_id:
                    type: string
                    description: The ID of the unproxied MCP server to use as the backend
                    format: uuid
                user_session_issuer_id:
                    type: string
                    description: The ID of an existing project- or organization-owned user session issuer to attach. Omit to preserve the legacy create behavior, which mints an issuer for remote and tunneled backends.
                    format: uuid
                visibility:
                    type: string
                    description: The visibility of an MCP server
                    enum:
                        - disabled
                        - private
                        - public
            description: Form for creating a new MCP server. Exactly one of remote_mcp_server_id, tunneled_mcp_server_id, toolset_id, or unproxied_mcp_server_id must be provided.
            required:
                - name
                - visibility
        CreateMetaMcpServerForm:
            type: object
            properties:
                name:
                    type: string
                    description: The display name of the meta MCP server
                    minLength: 1
                    maxLength: 100
                network_access_mode:
                    type: string
                    description: The network surfaces through which a Speakeasy-hosted MCP server may be reached.
                    enum:
                        - public_only
                        - dual
                        - private_only
                user_session_issuer_id:
                    type: string
                    description: The ID of the user session issuer used to authenticate callers. Omit for no issuer.
                    format: uuid
                visibility:
                    type: string
                    description: The visibility of a meta MCP server. Disabled refuses traffic; private requires a user session.
                    enum:
                        - disabled
                        - private
            description: Form for creating a new meta MCP server. URL addressability is managed separately through MCP endpoints.
            required:
                - name
        CreateOnboardingPlaybookRequestBody:
            type: object
            properties:
                description:
                    type: string
                is_default:
                    type: boolean
                name:
                    type: string
                organization_id:
                    type: string
                    description: The one organization a custom playbook belongs to.
                step_slugs:
                    type: array
                    items:
                        type: string
                    description: Top-level step slugs in walking order.
                use_case_id:
                    type: string
                    description: The use case a shared playbook belongs to.
            required:
                - name
                - step_slugs
        CreateOnboardingUseCaseRequestBody:
            type: object
            properties:
                description:
                    type: string
                name:
                    type: string
                slug:
                    type: string
                    description: Lowercase letters, digits and dashes.
            required:
                - slug
                - name
        CreateOrgEncryptionGcpKeyForm:
            type: object
            properties:
                customer_grant_reference:
                    type: string
                    description: Optional. The Speakeasy principal, as reported by externalCredentials.getGcpSetupInfo, that the customer granted roles/iam.serviceAccountTokenCreator on the credential's service account. That service account, in the customer's project, is what holds roles/cloudkms.cryptoKeyEncrypterDecrypter on the key; Speakeasy is never granted on the key directly. Not a secret.
                external_credential_id:
                    type: string
                    description: The organization's gcp_iam external credential Speakeasy reaches the key with.
                    format: uuid
                name:
                    type: string
                    description: A human-readable name for the key.
                resource_name:
                    type: string
                    description: 'The GCP KMS crypto key resource name, without a version: projects/<p>/locations/<l>/keyRings/<r>/cryptoKeys/<k>. The key must have purpose ENCRYPT_DECRYPT.'
            required:
                - external_credential_id
                - name
                - resource_name
        CreateOrganizationRemoteSessionClientForm:
            type: object
            properties:
                audience:
                    type: string
                    description: Optional upstream OAuth audience to send on the authorize redirect and token exchange.
                    pattern: ^[!-~]+$
                    maxLength: 512
                client_id:
                    type: string
                    description: client_id supplied by the caller, e.g. from Dynamic Client Registration.
                client_id_issued_at:
                    type: string
                    description: When the issuer reported issuing the client_id (RFC 7591 client_id_issued_at). Omit to record the time of this call.
                    format: date-time
                client_secret:
                    type: string
                    description: Optional client_secret supplied by the caller. Speakeasy encrypts before persisting; the plaintext is never returned.
                client_secret_expires_at:
                    type: string
                    description: When the issuer reported the client secret expires (RFC 7591 client_secret_expires_at). Omit when the issuer reported no expiry.
                    format: date-time
                credential_owner:
                    type: string
                    description: Who the upstream access credential belongs to, fixed at creation. subject (the default) means each caller connects their own upstream account through the client. self means the client obtains a credential for itself with the client_credentials grant and every caller shares it; it requires token_endpoint_auth_method client_secret_basic, client_secret_post (both with client_secret) or private_key_jwt (with json_web_key_set_id), and an issuer with a token_endpoint.
                    default: subject
                    enum:
                        - subject
                        - self
                json_web_key_set_id:
                    type: string
                    description: Organization JSON Web Key Set to sign private_key_jwt assertions with. Required when token_endpoint_auth_method is private_key_jwt and optional otherwise, as with attachKeySet. Must belong to the caller's organization, which needs the customer-managed encryption keys entitlement.
                    format: uuid
                project_id:
                    type: string
                    description: Owning project id for the new client; the project must belong to the caller's organization. Omit to inherit a project-specific issuer's project, or to create an organization-level client (no project, attachable by every project) under an organization-level issuer.
                    format: uuid
                remote_session_issuer_id:
                    type: string
                    description: The owning remote_session_issuer id; must belong to the caller's organization.
                    format: uuid
                scope:
                    type: array
                    items:
                        type: string
                        pattern: ^[!#-[\]-~]+$
                        maxLength: 128
                    description: Explicit upstream OAuth scopes the dance should request for this client. Omit to fall back to the issuer's scopes_supported.
                token_endpoint_auth_audience_format:
                    type: string
                    description: Identifier used as the aud claim in private_key_jwt assertions. Omit to use the issuer identifier; token_endpoint is available for providers that require the token endpoint URL.
                    enum:
                        - issuer
                        - token_endpoint
                token_endpoint_auth_method:
                    type: string
                    description: How the client authenticates at the issuer's token endpoint. Omit to default to client_secret_basic.
                    enum:
                        - client_secret_basic
                        - client_secret_post
                        - none
                        - private_key_jwt
            description: Form for an org admin to register a standalone remote_session_client under an existing issuer, with no user_session_issuer attachments.
            required:
                - remote_session_issuer_id
                - client_id
        CreateOrganizationRequestBody:
            type: object
            properties:
                name:
                    type: string
                    description: Organization display name. When omitted, a name is derived from the registrable company domain.
                    minLength: 1
                    maxLength: 100
                ownership_confirmed:
                    type: boolean
                    description: The operator confirms that domain ownership was established outside this form.
                slug:
                    type: string
                    description: Preferred organization URL slug. When omitted, a unique slug is derived from the organization name. Explicit slugs use lowercase letters, numbers, and hyphens.
                    pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
                    minLength: 2
                    maxLength: 100
                url:
                    type: string
                    description: Company HTTP(S) URL or bare hostname. The exact normalized hostname becomes the verified email domain.
                    minLength: 1
            required:
                - url
                - ownership_confirmed
        CreateOrganizationUserSessionIssuerForm:
            type: object
            properties:
                authn_challenge_mode:
                    type: string
                    description: 'How multi-remote authn challenges are presented: chain | interactive.'
                    enum:
                        - chain
                        - interactive
                session_duration_hours:
                    type: integer
                    description: Maximum issued user session lifetime, in hours.
                    format: int64
                    minimum: 1
                    maximum: 2.562047e+06
                slug:
                    type: string
                    description: Issuer slug. Unique for project-owned issuers; organization-owned issuer slugs may repeat.
                trusted_remote_session_client_id:
                    type: string
                    description: Organization-level remote_session_client Speakeasy uses with the trusted issuer. Must be supplied together with trusted_remote_session_issuer_id.
                    format: uuid
                trusted_remote_session_issuer_id:
                    type: string
                    description: Organization-level or global remote_session_issuer whose assertions this issuer trusts. Omit to leave enterprise-managed authorization disabled.
                    format: uuid
            description: Form for creating an organization-owned user_session_issuer.
            required:
                - slug
                - authn_challenge_mode
                - session_duration_hours
        CreateOtelDestinationHeaderInput:
            type: object
            properties:
                name:
                    type: string
                    description: Header name.
                value:
                    type: string
                    description: Write-only header value.
            description: An HTTP header supplied when creating an OTEL destination.
            required:
                - name
                - value
        CreateOtelDestinationInput:
            type: object
            properties:
                endpoint_url:
                    type: string
                    description: OTEL collector endpoint URL.
                    format: uri
                headers:
                    type: array
                    items:
                        $ref: '#/components/schemas/CreateOtelDestinationHeaderInput'
                    description: Write-only HTTP headers.
            description: OTEL-specific configuration supplied when creating a destination.
            required:
                - endpoint_url
                - headers
        CreatePackageForm:
            type: object
            properties:
                description:
                    type: string
                    description: The description of the package. Limited markdown syntax is supported.
                    maxLength: 10000
                image_asset_id:
                    type: string
                    description: The asset ID of the image to show for this package
                    maxLength: 50
                keywords:
                    type: array
                    items:
                        type: string
                    description: The keywords of the package
                    maxItems: 5
                name:
                    type: string
                    description: The name of the package
                    pattern: ^[a-z0-9_-]{1,128}$
                    maxLength: 100
                summary:
                    type: string
                    description: The summary of the package
                    maxLength: 80
                title:
                    type: string
                    description: The title of the package
                    maxLength: 100
                url:
                    type: string
                    description: External URL for the package owner
                    maxLength: 100
            required:
                - name
                - title
                - summary
        CreatePackageResult:
            type: object
            properties:
                package:
                    $ref: '#/components/schemas/Package'
            required:
                - package
        CreatePlatformGcpIamCredentialForm:
            type: object
            properties:
                impersonate_service_account:
                    type: string
                    description: The service account Speakeasy impersonates. Set alone for direct impersonation, or as the hop alongside the wif_* fields.
                name:
                    type: string
                    description: A human-readable name for the credential.
                wif_pool_id:
                    type: string
                    description: Workload Identity Federation pool ID. Set together with the other wif_* fields.
                wif_project_number:
                    type: string
                    description: GCP project number backing the WIF pool. Set together with the other wif_* fields.
                wif_provider_id:
                    type: string
                    description: Workload Identity Federation provider ID. Set together with the other wif_* fields.
            required:
                - name
        CreatePluginForm:
            type: object
            properties:
                auto_sync_enabled:
                    type: boolean
                    description: Whether changes to this plugin publish to the marketplace automatically. Defaults to true. When false, the plugin stays out of the marketplace until someone syncs it by hand.
                description:
                    type: string
                    description: Optional description.
                name:
                    type: string
                    description: Display name for the plugin.
                slug:
                    type: string
                    description: Optional URL-safe identifier. Auto-generated from name if omitted.
            required:
                - name
        CreatePortalSessionResult:
            type: object
            properties:
                token:
                    type: string
                    description: Front-end token for the webhook portal session.
                url:
                    type: string
                    description: URL for the webhook portal session.
            required:
                - url
                - token
        CreateProjectForm:
            type: object
            properties:
                apikey_token:
                    type: string
                name:
                    type: string
                    description: The name of the project
                    maxLength: 40
                organization_id:
                    type: string
                    description: The ID of the organization to create the project in
                session_token:
                    type: string
            required:
                - organization_id
                - name
        CreateProjectRequestBody:
            type: object
            properties:
                name:
                    type: string
                    description: The name of the project
                    maxLength: 40
                organization_id:
                    type: string
                    description: The ID of the organization to create the project in
            required:
                - organization_id
                - name
        CreateProjectResult:
            type: object
            properties:
                project:
                    $ref: '#/components/schemas/Project'
            required:
                - project
        CreatePromptTemplateForm:
            type: object
            properties:
                arguments:
                    type: string
                    description: The JSON Schema defining the placeholders found in the prompt template
                    format: json
                description:
                    type: string
                    description: The description of the prompt template
                engine:
                    type: string
                    description: The template engine
                    enum:
                        - mustache
                kind:
                    type: string
                    description: The kind of prompt the template is used for
                    enum:
                        - prompt
                name:
                    type: string
                    description: A short url-friendly label that uniquely identifies a resource.
                    pattern: ^[a-z0-9_-]{1,128}$
                    maxLength: 40
                prompt:
                    type: string
                    description: The template content
                tool_urns_hint:
                    type: array
                    items:
                        type: string
                    description: The suggested tool URNS associated with the prompt template
                    maxItems: 20
                tools_hint:
                    type: array
                    items:
                        type: string
                    description: The suggested tool names associated with the prompt template
                    maxItems: 20
            required:
                - name
                - prompt
                - engine
                - kind
        CreatePromptTemplateResult:
            type: object
            properties:
                template:
                    $ref: '#/components/schemas/PromptTemplate'
            required:
                - template
        CreateRegistryEntryRequestBody:
            type: object
            properties:
                data_json:
                    type: string
                    description: Complete registry record JSON; at most 8388608 UTF-8 bytes (8 MiB), enforced by the server on incoming writes. Stored records remain readable for repair.
            required:
                - data_json
        CreateRemoteSessionClientForm:
            type: object
            properties:
                audience:
                    type: string
                    description: Optional upstream OAuth audience to send on the authorize redirect and token exchange.
                    pattern: ^[!-~]+$
                    maxLength: 512
                client_id:
                    type: string
                    description: client_id supplied by the caller.
                client_id_issued_at:
                    type: string
                    description: When the issuer reported issuing the client_id (RFC 7591 client_id_issued_at). Omit to record the time of this call.
                    format: date-time
                client_secret:
                    type: string
                    description: client_secret supplied by the caller. Speakeasy encrypts before persisting.
                client_secret_expires_at:
                    type: string
                    description: When the issuer reported the client secret expires (RFC 7591 client_secret_expires_at). Omit when the issuer reported no expiry.
                    format: date-time
                credential_owner:
                    type: string
                    description: Who the upstream access credential belongs to, fixed at creation. subject (the default) means each caller connects their own upstream account through the client. self means the client obtains a credential for itself with the client_credentials grant and every caller shares it; it requires token_endpoint_auth_method client_secret_basic, client_secret_post (both with client_secret) or private_key_jwt (with json_web_key_set_id), and an issuer with a token_endpoint.
                    default: subject
                    enum:
                        - subject
                        - self
                json_web_key_set_id:
                    type: string
                    description: Organization JSON Web Key Set to sign private_key_jwt assertions with. Required when token_endpoint_auth_method is private_key_jwt and optional otherwise, as with attachKeySet. Must belong to the caller's organization, which needs the customer-managed encryption keys entitlement.
                    format: uuid
                remote_session_issuer_id:
                    type: string
                    description: The owning remote_session_issuer id.
                    format: uuid
                scope:
                    type: array
                    items:
                        type: string
                        pattern: ^[!#-[\]-~]+$
                        maxLength: 128
                    description: Explicit upstream OAuth scopes the dance should request for this client. Omit to fall back to the issuer's scopes_supported.
                template_client_id:
                    type: string
                    description: 'An existing remote_session_client of the same issuer, visible to the project, whose upstream registration the new client reuses. The new client is an independent record with its own id: it copies the template''s stored client_secret, unless client_secret is supplied, and the callback the template''s registration lists. client_id must equal the template''s. Sessions, grants, user_session_issuer attachments and MCP server associations are not copied, and the template is unchanged. Refused for a client metadata document client, a private_key_jwt client, a credential_owner self client, a client managed by an identity provider connection, a client the issuer has rejected, and a template whose stored secret has expired unless client_secret is supplied.'
                    format: uuid
                token_endpoint_auth_audience_format:
                    type: string
                    description: Identifier used as the aud claim in private_key_jwt assertions. Omit to use the issuer identifier; token_endpoint is available for providers that require the token endpoint URL.
                    enum:
                        - issuer
                        - token_endpoint
                token_endpoint_auth_method:
                    type: string
                    description: How the client authenticates at the issuer's token endpoint. Omit to default to client_secret_basic.
                    enum:
                        - client_secret_basic
                        - client_secret_post
                        - none
                        - private_key_jwt
                user_session_issuer_ids:
                    type: array
                    items:
                        type: string
                        format: uuid
                    description: The user_session_issuers to attach this client to via the join table. Omit or pass an empty array to create a standalone client with no attachments.
            description: Form for creating a remote_session_client. Caller supplies client_id (and optional client_secret) obtained out-of-band from the upstream issuer, or names a stored client in template_client_id whose secret and callback the server copies without returning them.
            required:
                - remote_session_issuer_id
                - client_id
        CreateRemoteSessionIssuerForm:
            type: object
            properties:
                authorization_endpoint:
                    type: string
                    description: Upstream authorization endpoint.
                authorization_grant_profiles_supported:
                    type: array
                    items:
                        type: string
                    description: Advertised grant profiles; metadata evidence is not client authorization or user access.
                authorization_response_iss_parameter_supported:
                    type: boolean
                    description: Whether the issuer includes the RFC 9207 iss parameter in authorization responses. Omitting the field stores null ("not captured").
                backchannel_logout_supported:
                    type: boolean
                    description: Whether the issuer supports OpenID Connect Back-Channel Logout. Omitting the field stores null ("not captured").
                claims_supported:
                    type: array
                    items:
                        type: string
                    description: Claims the issuer can return in ID tokens and from userinfo. Omitting the field stores null ("not captured"), distinct from an empty array ("the issuer advertises none").
                client_id_metadata_document_supported:
                    type: boolean
                    description: When true, the issuer accepts a Client ID Metadata Document URL as client_id (OAuth CIMD draft). Discovered from the issuer metadata document and used to pre-flight outbound CIMD. Default false.
                client_setup_documentation_url:
                    type: string
                    description: URL of OAuth client setup documentation shown when creating clients. Manually set, not RFC 8414; rejected unless an absolute http(s) URL.
                code_challenge_methods_supported:
                    type: array
                    items:
                        type: string
                    description: PKCE code challenge methods advertised by the issuer (RFC 8414 code_challenge_methods_supported). Omitting the field stores null ("not captured"), distinct from an empty array ("the issuer advertises no methods").
                grant_types_supported:
                    type: array
                    items:
                        type: string
                    description: Grant types advertised by the issuer.
                id_token_signing_alg_values_supported:
                    type: array
                    items:
                        type: string
                    description: JWS algorithms the issuer signs ID tokens with. Omitting the field stores null ("not captured"), distinct from an empty array ("the issuer advertises none").
                introspection_endpoint:
                    type: string
                    description: RFC 7662 token introspection endpoint. Discovered from the issuer metadata document; rejected unless an absolute https URL, or http on loopback.
                introspection_endpoint_auth_methods_supported:
                    type: array
                    items:
                        type: string
                    description: Client authentication methods the introspection endpoint accepts. Omitting the field stores null ("not captured"), distinct from an empty array ("the issuer advertises none").
                issuer:
                    type: string
                    description: Issuer URL; matches the iss claim.
                jwks_uri:
                    type: string
                    description: Upstream JWKS URI.
                logo_asset_id:
                    type: string
                    description: Optional logo asset id.
                    format: uuid
                name:
                    type: string
                    description: Optional display name. Stored NULL when empty; clients fall back to the issuer URL/slug.
                oidc:
                    type: boolean
                    description: When true, may unlock OIDC-aware behaviour. Default false.
                omit_scope_fallback:
                    type: boolean
                    description: 'When true, a login that would otherwise request the authorization server''s whole scopes_supported omits the scope parameter so the server applies its default. Omit to leave it unset: such a login requests the provider''s whole scopes_supported.'
                op_policy_uri:
                    type: string
                    description: RFC 8414 op_policy_uri; the issuer's client data-usage policy. Discovered from the issuer metadata document; rejected unless an absolute http(s) URL.
                op_tos_uri:
                    type: string
                    description: RFC 8414 op_tos_uri; the issuer's terms of service. Discovered from the issuer metadata document; rejected unless an absolute http(s) URL.
                passthrough:
                    type: boolean
                    description: When true, the MCP client registers and transacts directly with this issuer. Default false.
                registration_endpoint:
                    type: string
                    description: Upstream RFC 7591 registration endpoint; absent for issuers without DCR.
                resource_indicator_supported:
                    type: boolean
                    description: 'Whether the issuer accepts the RFC 8707 resource parameter. Omit to leave it unset: the parameter is then sent, and a login or refresh the issuer answers with invalid_target is retried once without it. Set false to never send it.'
                response_types_supported:
                    type: array
                    items:
                        type: string
                    description: Response types advertised by the issuer.
                revocation_endpoint:
                    type: string
                    description: Upstream RFC 7009 revocation endpoint; absent for issuers that advertise none.
                scope_override:
                    type: array
                    items:
                        type: string
                    description: Operator-pinned scope request. When set, it is sent verbatim on the upstream authorize redirect in place of the resolved scope set. Omit or send an empty array to leave it unset.
                scopes_supported:
                    type: array
                    items:
                        type: string
                    description: Scopes advertised by the issuer.
                service_documentation:
                    type: string
                    description: RFC 8414 service_documentation; developer documentation for the issuer. Discovered from the issuer metadata document; rejected unless an absolute http(s) URL.
                slug:
                    type: string
                    description: Project-unique slug.
                token_endpoint:
                    type: string
                    description: Upstream token endpoint.
                token_endpoint_auth_methods_supported:
                    type: array
                    items:
                        type: string
                    description: Token endpoint auth methods advertised by the issuer.
                tunneled_mcp_server_id:
                    type: string
                    description: Route this issuer's OAuth endpoint calls through an MCP tunnel in the same project. Platform admins only.
                    format: uuid
                userinfo_endpoint:
                    type: string
                    description: OpenID Connect userinfo endpoint. Discovered from the issuer metadata document; rejected unless an absolute https URL, or http on loopback.
            description: Form for creating a remote_session_issuer.
            required:
                - slug
                - issuer
        CreateRequestBody:
            type: object
            properties:
                embed_origin:
                    type: string
                    description: The origin from which the token will be used
                expires_after:
                    type: integer
                    description: Token expiration in seconds (max / default 3600)
                    default: 3600
                    format: int64
                    minimum: 1
                    maximum: 3600
                user_identifier:
                    type: string
                    description: Optional free-form user identifier
            required:
                - embed_origin
        CreateRequestRequestBody:
            type: object
            properties:
                note:
                    type: string
                    description: The requester's justification for wanting access to this server. Must not be blank.
                    maxLength: 4000
                target:
                    type: string
                    description: 'The server reference: a URL, or the stdio command that launches it.'
                    maxLength: 2048
                target_kind:
                    type: string
                    description: The namespace of the reference.
                    enum:
                        - server_url
                        - stdio_command
            required:
                - target_kind
                - target
                - note
        CreateResponseBody:
            type: object
            properties:
                client_token:
                    type: string
                    description: JWT token for chat session
                embed_origin:
                    type: string
                    description: The origin from which the token will be used
                expires_after:
                    type: integer
                    description: Token expiration in seconds
                    format: int64
                status:
                    type: string
                    description: Session status
                user_identifier:
                    type: string
                    description: User identifier if provided
            required:
                - embed_origin
                - client_token
                - expires_after
                - status
        CreateRiskExclusionRequestBody:
            type: object
            properties:
                enabled:
                    type: boolean
                    description: Whether the exclusion is active.
                    default: true
                match_type:
                    type: string
                    description: How match_value is interpreted.
                    enum:
                        - exact
                        - regex
                        - rule_id
                        - source
                        - entity_type
                match_value:
                    type: string
                    description: The value matched against findings, interpreted per match_type.
                risk_policy_id:
                    type: string
                    description: Bind the exclusion to a single policy. Omit for a global (project-wide) exclusion.
                    format: uuid
                rule_id_filter:
                    type: string
                    description: 'Optional: only apply within this rule_id. Empty means any.'
                    default: ""
                source_filter:
                    type: string
                    description: 'Optional: only apply within this source. Empty means any.'
                    default: ""
            required:
                - match_type
                - match_value
        CreateRiskPolicyBypassRequestRequestBody:
            type: object
            properties:
                note:
                    type: string
                    description: 'The requester''s own justification for needing this, shown to whoever decides. Optional: an older client that sends none falls back to the policy''s block reason.'
                    maxLength: 4000
                request_token:
                    type: string
                    description: Signed request token generated when a risk policy blocks an action.
            required:
                - request_token
        CreateRiskPolicyRequestBody:
            type: object
            properties:
                action:
                    type: string
                    description: 'Policy action: flag, warn (challenge), block, quarantine (deny and freeze the hook session), or require_approval (hold the call until a listed approver approves it). MCP-scoped policies support flag, block and require_approval.'
                    default: flag
                    enum:
                        - flag
                        - warn
                        - block
                        - quarantine
                        - require_approval
                approval_config:
                    $ref: '#/components/schemas/RiskPolicyApprovalConfig'
                approved_email_domains:
                    type: array
                    items:
                        type: string
                    description: 'For the account_identity source: corporate email domains considered approved. Sessions whose AI-account email domain is not listed are flagged. Empty/omitted leaves the domain rule inert.'
                audience_principal_urns:
                    type: array
                    items:
                        type: string
                    description: Principal URNs this policy applies to. For audience_type=everyone, the server stores user:all.
                audience_type:
                    type: string
                    description: 'Policy audience type: everyone or targeted.'
                    default: everyone
                    enum:
                        - everyone
                        - targeted
                auto_name:
                    type: boolean
                    description: Whether the policy name should be auto-generated.
                custom_rule_ids:
                    type: array
                    items:
                        type: string
                    description: 'Custom detection rule ids to attach as detectors: a match produces a finding.'
                detection_scopes:
                    type: array
                    items:
                        $ref: '#/components/schemas/RiskDetectionScope'
                    description: Per-category detection scopes. Each specified category replaces its centrally recommended scope; a scope with both predicates empty scans every message surface. Empty/omitted = all recommendations apply unchanged.
                disabled_rules:
                    type: array
                    items:
                        type: string
                    description: Canonical rule_ids the user has unchecked within otherwise-enabled categories. Matching findings are dropped at scan time.
                enabled:
                    type: boolean
                    description: Whether the policy is active.
                mcp_scope:
                    $ref: '#/components/schemas/RiskMCPScope'
                model_config:
                    $ref: '#/components/schemas/RiskPolicyModelConfig'
                name:
                    type: string
                    description: The policy name. If omitted, a name will be auto-generated.
                policy_type:
                    type: string
                    description: 'Policy type: standard (regex/presidio/custom detection) or prompt_based (LLM-judge). Defaults to standard.'
                    default: standard
                    enum:
                        - standard
                        - prompt_based
                presidio_entities:
                    type: array
                    items:
                        type: string
                    description: Presidio entity types to detect.
                presidio_score_threshold:
                    type: number
                    description: Minimum Presidio confidence (0.0-1.0) a PII match must clear to surface. Omit/null applies the default (0.5).
                    example: 0.75
                    format: double
                    minimum: 0
                    maximum: 1
                prompt:
                    type: string
                    description: 'For prompt_based policies: the guardrail prompt the LLM judge evaluates each in-scope message against. Required when policy_type is prompt_based.'
                prompt_injection_rules:
                    type: array
                    items:
                        type: string
                    description: Prompt-injection detection rule ids to enable in addition to the heuristic baseline.
                score:
                    type: number
                    description: CVSS-style severity (0.1-10) assigned to findings this policy produces. Omit to apply the default (5).
                    default: 5
                    example: 5
                    format: double
                    minimum: 0.1
                    maximum: 10
                shadow_mcp_allowed_urls:
                    type: array
                    items:
                        type: string
                    description: Complete desired canonical URL allow set for this policy. Omit or send empty to create no URL-specific allow decisions.
                shadow_mcp_blocked_urls:
                    type: array
                    items:
                        type: string
                    description: 'For allow_all policies: complete desired canonical URL block set. Omit or send empty to block nothing. Only valid when shadow_mcp_disposition is allow_all.'
                shadow_mcp_disposition:
                    type: string
                    description: 'Default disposition for shadow MCP blocking policies: block_all (default) blocks every non-Speakeasy-hosted server unless allowed, allow_all permits every server unless blocked. Only valid with the shadow_mcp source and block action. Immutable after create — switching requires delete + recreate.'
                    enum:
                        - block_all
                        - allow_all
                sources:
                    type: array
                    items:
                        type: string
                    description: Detection sources to enable.
                user_message:
                    type: string
                    description: Optional message shown to end users when this policy blocks an action or surfaces a flagged finding.
        CreateRoleForm:
            type: object
            properties:
                agent_ids:
                    type: array
                    items:
                        type: string
                        format: uuid
                    description: Optional agent IDs to assign to this role on creation. Scopes an agent cannot hold at runtime are simply not granted to it.
                description:
                    type: string
                    description: Optional description of what this role can do.
                grants:
                    type: array
                    items:
                        $ref: '#/components/schemas/RoleGrant'
                    description: Scope grants to assign.
                member_ids:
                    type: array
                    items:
                        type: string
                    description: Optional member IDs to additionally assign to this role on creation.
                name:
                    type: string
                    description: Display name for the role.
            required:
                - name
                - grants
        CreateServerAndMcpServerResult:
            type: object
            properties:
                mcp_server:
                    $ref: '#/components/schemas/McpServer'
                remote_mcp_server:
                    $ref: '#/components/schemas/RemoteMcpServer'
            description: The atomically created remote MCP source and its linked disabled MCP server.
            required:
                - remote_mcp_server
                - mcp_server
        CreateServerForm:
            type: object
            properties:
                name:
                    type: string
                    description: Optional human-readable name for the remote MCP server. Empty values are stored as null.
                transport_type:
                    type: string
                    description: The transport type for the remote MCP server (e.g. streamable-http)
                url:
                    type: string
                    description: The URL of the remote MCP server
                    format: uri
                user_session_issuer_id:
                    type: string
                    description: For createServerAndMcpServer, the ID of an existing project- or organization-owned user session issuer to attach to the linked MCP server. Omit to mint a project issuer. The source-only createServer method rejects this field.
                    format: uuid
            description: Form for creating a new remote MCP server
            required:
                - url
                - transport_type
        CreateServerHeaderForm:
            type: object
            properties:
                description:
                    type: string
                    description: Description of the header
                is_required:
                    type: boolean
                    description: Whether the header is required. Defaults to false.
                is_secret:
                    type: boolean
                    description: Whether the header value is a secret. Defaults to false. Incompatible with value_from_request_header.
                name:
                    type: string
                    description: The header name
                remote_mcp_server_id:
                    type: string
                    description: The ID of the remote MCP server to add the header to
                    format: uuid
                value:
                    type: string
                    description: Static header value (mutually exclusive with value_from_request_header)
                value_from_request_header:
                    type: string
                    description: Name of the inbound request header to pass through (mutually exclusive with value)
            description: Form for creating a header on a remote MCP server. Exactly one of value or value_from_request_header must be provided.
            required:
                - remote_mcp_server_id
                - name
        CreateSessionHandoffRequestBody:
            type: object
            properties:
                content:
                    type: string
                    description: The rendered handoff document (markdown). Size-capped; the daemon renders deterministically from the local transcript.
                    maxLength: 262144
                session_id:
                    type: string
                    description: Native harness session identifier the handoff was rendered from. Speakeasy derives its chat id from this the same way hook ingest does; a not-yet-captured session can still mint a link.
                    maxLength: 256
                source_surface:
                    type: string
                    description: Harness the session originated in, as detected by the agent (e.g. claude-code, codex).
                    maxLength: 64
                ttl_seconds:
                    type: integer
                    description: Requested link lifetime in seconds. Clamped to [60, 3600]; defaults to 900 when omitted.
                    example: 900
                    format: int64
            required:
                - session_id
                - content
        CreateSessionHandoffResult:
            type: object
            properties:
                expires_at:
                    type: string
                    description: When the link stops being served regardless of reads.
                    format: date-time
                url:
                    type: string
                    description: Capability URL serving the uploaded handoff markdown. Unauthenticated by design — the unguessable token is the credential — and dead after the first read or expiry.
            required:
                - url
                - expires_at
        CreateSigintSensorForm:
            type: object
            properties:
                description:
                    type: string
                    description: Optional description; empty stores no value
                enabled:
                    type: boolean
                    description: Whether to enable evaluation; omission defaults to true
                input_strategy:
                    type: string
                    description: Message context used for classification. Sliding windows classify the current message with preceding messages ordered by timestamp.
                    enum:
                        - single_message
                        - sliding_window
                instructions:
                    type: string
                    description: Optional classification instructions; empty stores no value
                match_expression:
                    type: string
                    description: Boolean CEL predicate, at most 4096 UTF-8 bytes; omission defaults to message.role == "user"
                mode:
                    type: string
                    description: 'How a sensor interprets its ordered signals: independently applicable labels, an exclusive choice, or ordered score levels.'
                    enum:
                        - multi_label
                        - exclusive
                        - ordered_score
                name:
                    type: string
                    description: Display name; trimmed before enforcing the 1 to 200 character limit
                signal_ids:
                    type: array
                    items:
                        type: string
                        format: uuid
                    description: Initial ordered signal IDs. Omitted and [] both create an empty sensor.
                slug:
                    type: string
                    description: A short url-friendly label that uniquely identifies a resource.
                    pattern: ^[a-z0-9_-]{1,128}$
                    maxLength: 40
                window_size:
                    type: integer
                    description: Total sliding window messages including the target; omission defaults to 5
                    format: int64
                    minimum: 2
                    maximum: 10
            required:
                - name
                - mode
        CreateSigintSignalForm:
            type: object
            properties:
                classifier_criteria:
                    type: string
                    description: Optional classifier criteria; empty stores no value
                description:
                    type: string
                    description: Optional description; empty stores no value
                name:
                    type: string
                    description: Display name; trimmed before enforcing the 1 to 200 character limit
                slug:
                    type: string
                    description: A short url-friendly label that uniquely identifies a resource.
                    pattern: ^[a-z0-9_-]{1,128}$
                    maxLength: 40
            required:
                - name
        CreateSignedChatAttachmentURLForm:
            type: object
            properties:
                apikey_token:
                    type: string
                chat_sessions_token:
                    type: string
                id:
                    type: string
                    description: The ID of the chat attachment
                project_id:
                    type: string
                    description: The project ID that the attachment belongs to
                project_slug_input:
                    type: string
                session_token:
                    type: string
                ttl_seconds:
                    type: integer
                    description: 'Time-to-live in seconds (default: 600, max: 3600)'
                    format: int64
            required:
                - id
                - project_id
        CreateSignedChatAttachmentURLForm2:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the chat attachment
                project_id:
                    type: string
                    description: The project ID that the attachment belongs to
                ttl_seconds:
                    type: integer
                    description: 'Time-to-live in seconds (default: 600, max: 3600)'
                    format: int64
            required:
                - id
                - project_id
        CreateSignedChatAttachmentURLResult:
            type: object
            properties:
                expires_at:
                    type: string
                    description: When the signed URL expires
                    format: date-time
                url:
                    type: string
                    description: The signed URL to access the chat attachment
            required:
                - url
                - expires_at
        CreateSignupOfferRequestBody:
            type: object
            properties:
                name:
                    type: string
                    minLength: 1
                    maxLength: 200
                signup_flow:
                    type: string
                    enum:
                        - tailscale_partner_gateway
                stripe_promotion_code_id:
                    type: string
                    pattern: ^promo_[A-Za-z0-9_]+$
                    maxLength: 255
            required:
                - name
                - stripe_promotion_code_id
                - signup_flow
        CreateSkillRequestBody:
            type: object
            properties:
                content:
                    type: string
                    description: The complete uploaded SKILL.md content. Handlers enforce a maximum size of 65,536 UTF-8 bytes.
            required:
                - content
        CreateSpendRuleRequestBody:
            type: object
            properties:
                action:
                    type: string
                    description: 'Rule action: flag or block.'
                    default: flag
                    enum:
                        - flag
                        - block
                description:
                    type: string
                    description: Optional description of what the rule covers.
                    default: ""
                enabled:
                    type: boolean
                    description: Whether the rule is active.
                    default: true
                limit_usd:
                    type: number
                    description: Per-person budget in USD for one window.
                    format: double
                    minimum: 0
                name:
                    type: string
                    description: The rule name.
                target:
                    $ref: '#/components/schemas/SpendRuleTargetCondition'
                warn_at_pct:
                    type: integer
                    description: Percentage of the limit at which a warning event is emitted.
                    default: 80
                    format: int64
                    minimum: 1
                    maximum: 100
                window_kind:
                    type: string
                    description: UTC calendar window the budget covers.
                    enum:
                        - daily
                        - weekly
                        - monthly
            required:
                - name
                - target
                - limit_usd
                - window_kind
        CreateTemporaryGrantForm:
            type: object
            properties:
                expires_at:
                    type: string
                    description: When the grant stops authorizing new requests. At least five minutes and at most 24 hours from now.
                    format: date-time
                principal_urn:
                    type: string
                    description: 'The principal receiving the access: an organization member (user:<id>), everyone (user:all), a role (role:organization:<id> or role:global:<id>) or an active agent (agent:<id>).'
                reason:
                    type: string
                    description: Why the access is needed, recorded in the audit log.
                    maxLength: 1000
                scope:
                    type: string
                    description: The scope to give, e.g. chat:read or log:read. Only scopes that grant access to read, use or manage resources can be given temporarily; org:admin, blocklist, auth client, risk policy and machine scopes cannot.
                selector:
                    $ref: '#/components/schemas/Selector'
            required:
                - principal_urn
                - scope
                - expires_at
        CreateToolsetForm:
            type: object
            properties:
                default_environment_slug:
                    type: string
                    description: A short url-friendly label that uniquely identifies a resource.
                    pattern: ^[a-z0-9_-]{1,128}$
                    maxLength: 40
                description:
                    type: string
                    description: Description of the toolset
                name:
                    type: string
                    description: The name of the toolset
                origin:
                    $ref: '#/components/schemas/ToolsetOrigin'
                project_slug_input:
                    type: string
                resource_urns:
                    type: array
                    items:
                        type: string
                    description: List of resource URNs to include in the toolset
                tool_urns:
                    type: array
                    items:
                        type: string
                    description: List of tool URNs to include in the toolset
            required:
                - name
        CreateToolsetRequestBody:
            type: object
            properties:
                default_environment_slug:
                    type: string
                    description: The slug of the environment to use as the default for the toolset
                    pattern: ^[a-z0-9_-]{1,128}$
                    maxLength: 40
                description:
                    type: string
                    description: Description of the toolset
                name:
                    type: string
                    description: The name of the toolset
                origin:
                    $ref: '#/components/schemas/ToolsetOrigin'
                resource_urns:
                    type: array
                    items:
                        type: string
                    description: List of resource URNs to include in the toolset
                tool_urns:
                    type: array
                    items:
                        type: string
                    description: List of tool URNs to include in the toolset
            required:
                - name
        CreateTriggerInstanceForm:
            type: object
            properties:
                config:
                    type: object
                    description: The trigger config payload.
                    additionalProperties: true
                definition_slug:
                    type: string
                    description: The trigger definition slug.
                environment_id:
                    type: string
                    description: The linked environment ID.
                    format: uuid
                name:
                    type: string
                    description: The trigger instance name.
                status:
                    type: string
                    description: Optional initial status.
                    enum:
                        - active
                        - paused
                target_display:
                    type: string
                    description: The user-facing target display value.
                target_kind:
                    type: string
                    description: The trigger target kind.
                    enum:
                        - assistant
                        - noop
                target_ref:
                    type: string
                    description: The opaque target reference.
            required:
                - definition_slug
                - name
                - target_kind
                - target_ref
                - target_display
                - config
        CreateTunneledMcpServerForm:
            type: object
            properties:
                name:
                    type: string
                    description: Human-readable display name for the tunneled MCP server
                resource_identifier:
                    type: string
                    description: RFC 9728 protected resource identifier of the tunneled server, used for credential routing and as the signed caller assertion audience; never dialed by Speakeasy. The exact identifier is preserved, including trailing slashes. When unset, caller assertions use tunneled-mcp-server:<ID>. Omit unless the identifier is already known; it is usually recorded later, once the tunnel is up.
            description: Form for creating a new tunneled MCP server source
            required:
                - name
        CreateTunneledMcpServerResult:
            type: object
            properties:
                server:
                    $ref: '#/components/schemas/TunneledMcpServer'
                tunnel_key:
                    type: string
                    description: Plaintext tunnel key. Only returned at creation time.
            description: Created tunneled MCP server plus the one-time tunnel key
            required:
                - server
                - tunnel_key
        CreateUnproxiedMcpServerForm:
            type: object
            properties:
                description:
                    type: string
                    description: Optional description shown alongside the server.
                name:
                    type: string
                    description: Optional human-readable name for the unproxied MCP server. Empty values are stored as null.
                url:
                    type: string
                    description: The URL of the vendor's MCP server. Speakeasy never proxies tool calls through it; the only outbound requests Speakeasy ever makes to it are fetching a favicon and, on request, a live tool listing.
                    format: uri
            description: Form for creating a new unproxied MCP server
            required:
                - url
        CreateUserSessionIssuerCimdClientForm:
            type: object
            properties:
                client_id_metadata_uri:
                    type: string
                    description: The exact https URL the client presents as its client_id. Matched byte for byte at authorization time — the spec forbids normalization, so this must be the vendor's published URL exactly.
                user_session_issuer_id:
                    type: string
                    description: The user_session_issuer the URL is allowed on.
                    format: uuid
            description: Form for allowing an additional CIMD document URL on a user_session_issuer.
            required:
                - user_session_issuer_id
                - client_id_metadata_uri
        CreateUserSessionIssuerCimdClientResult:
            type: object
            properties:
                client:
                    $ref: '#/components/schemas/UserSessionIssuerCimdClient'
            description: Result of allowing a CIMD document URL. Reachability is not reported here — call verifyURL for that.
            required:
                - client
        CreateUserSessionIssuerForm:
            type: object
            properties:
                authn_challenge_mode:
                    type: string
                    description: 'How multi-remote authn challenges are presented: chain | interactive.'
                    enum:
                        - chain
                        - interactive
                authorization_server_mode:
                    type: string
                    description: Authorization-server topology. Shared mode supports standalone workload token exchange without an MCP server.
                    default: endpoint
                    enum:
                        - endpoint
                        - shared
                session_duration_hours:
                    type: integer
                    description: Maximum issued user session lifetime, in hours.
                    format: int64
                    minimum: 1
                    maximum: 2.562047e+06
                slug:
                    type: string
                    description: Issuer slug. Unique for project-owned issuers; organization-owned issuer slugs may repeat.
            description: Form for creating a user_session_issuer.
            required:
                - slug
                - authn_challenge_mode
                - session_duration_hours
        CreateWidgetRequestBody:
            type: object
            properties:
                dataset:
                    type: string
                    description: Catalog dataset the widget asks
                    minLength: 1
                description:
                    type: string
                    description: What the widget is for, at most 2000 characters
                    maxLength: 2000
                name:
                    type: string
                    description: Display name, at most 200 characters
                    minLength: 1
                    maxLength: 200
                query:
                    type: object
                    description: The question. Validated against the catalog on save.
                    additionalProperties: true
                visualization:
                    type: object
                    description: How the question is drawn. Checked against the question on save.
                    additionalProperties: true
            required:
                - name
                - dataset
                - query
                - visualization
        CreditUsageResponseBody:
            type: object
            properties:
                credits_used:
                    type: number
                    description: The number of credits remaining
                    format: double
                monthly_credits:
                    type: integer
                    description: The number of monthly credits
                    format: int64
            required:
                - credits_used
                - monthly_credits
        CurateRegistryPromotionCandidateRequestBody:
            type: object
            properties:
                action:
                    type: string
                    enum:
                        - reject
                        - archive
                        - restore
                curation_revision:
                    type: string
                    format: uuid
                organization_id:
                    type: string
                promotion_id:
                    type: string
                    format: uuid
                retry_key:
                    type: string
            required:
                - organization_id
                - promotion_id
                - curation_revision
                - action
                - retry_key
        CursorHookPayload:
            type: object
            properties:
                additional_data:
                    type: object
                    description: Additional hook-specific data
                    additionalProperties: true
                cache_read_tokens:
                    type: integer
                    description: Tokens read from cache (stop, afterAgentResponse)
                    format: int64
                cache_write_tokens:
                    type: integer
                    description: Tokens written to cache (stop, afterAgentResponse)
                    format: int64
                command:
                    type: string
                    description: Command string for command-based MCP servers (beforeMCPExecution / afterMCPExecution only)
                composer_mode:
                    type: string
                    description: The composer mode, e.g. agent (beforeSubmitPrompt only)
                conversation_id:
                    type: string
                    description: The Cursor conversation ID
                cursor_version:
                    type: string
                    description: The Cursor IDE version
                duration:
                    type: number
                    description: Execution duration in milliseconds, excluding approval wait time (afterMCPExecution only)
                    format: double
                duration_ms:
                    type: integer
                    description: Duration in milliseconds for the thinking block (afterAgentThought only)
                    format: int64
                error:
                    description: The error from the tool (postToolUseFailure only)
                generation_id:
                    type: string
                    description: The Cursor generation ID
                hook_event_name:
                    type: string
                    description: The type of hook event (e.g. beforeSubmitPrompt, stop, afterAgentResponse, afterAgentThought, preToolUse, postToolUse, postToolUseFailure, beforeMCPExecution, afterMCPExecution)
                input_tokens:
                    type: integer
                    description: Total input tokens used (stop, afterAgentResponse)
                    format: int64
                is_interrupt:
                    type: boolean
                    description: Whether the failure was caused by user interruption
                loop_count:
                    type: integer
                    description: Number of agentic loops executed (stop only)
                    format: int64
                model:
                    type: string
                    description: The model being used
                output_tokens:
                    type: integer
                    description: Total output tokens used (stop, afterAgentResponse)
                    format: int64
                prompt:
                    type: string
                    description: The user's prompt text (beforeSubmitPrompt only)
                result_json:
                    type: string
                    description: JSON-encoded string of the MCP tool response (afterMCPExecution only)
                session_id:
                    type: string
                    description: The session ID from Cursor
                status:
                    type: string
                    description: Completion status, e.g. completed (stop only)
                text:
                    type: string
                    description: The assistant's response text (afterAgentResponse) or thinking text (afterAgentThought)
                tool_input:
                    description: The input to the tool
                tool_name:
                    type: string
                    description: The name of the tool
                tool_response:
                    description: The response from the tool (postToolUse only)
                tool_use_id:
                    type: string
                    description: The unique ID for this tool use
                transcript_path:
                    type: string
                    description: Path to the conversation transcript JSONL file
                url:
                    type: string
                    description: URL of the MCP server (beforeMCPExecution / afterMCPExecution, URL-based servers only)
                user_email:
                    type: string
                    description: Email of the authenticated Cursor user, if available
            description: Payload for Cursor hook events
            required:
                - hook_event_name
        CursorHookResult:
            type: object
            properties:
                additional_context:
                    type: string
                    description: Additional context to inject into the conversation
                agent_message:
                    type: string
                    description: Message sent back to the agent (beforeMCPExecution only)
                permission:
                    type: string
                    description: 'Permission decision for preToolUse / beforeMCPExecution: allow, deny, or ask'
                user_message:
                    type: string
                    description: Message to display to the user
            description: Result for Cursor hook events
        CustomDomain:
            type: object
            properties:
                activated:
                    type: boolean
                    description: Whether the domain is activated in ingress
                certificate_expires_at:
                    type: string
                    description: When the currently observed TLS certificate expires.
                    format: date-time
                consecutive_failures:
                    type: integer
                    description: The number of consecutive failed health checks
                    format: int32
                created_at:
                    type: string
                    description: When the custom domain was created.
                    format: date-time
                dns_checked_at:
                    type: string
                    description: When DNS configuration was observed. Infrastructure health belongs to the same observation only when this matches health_checked_at.
                    format: date-time
                dns_configuration_status:
                    type: string
                    description: 'Advisory public DNS configuration: matched, wrong_target, unconfirmed, not_found, check_failed, or not_configured. Does not establish ownership or public availability.'
                dns_routing_method:
                    type: string
                    description: 'How the latest health check observed this domain''s DNS routing traffic to Speakeasy. One of: per_domain_cname, shared_cname, a_record (also covers flattened CNAME, ALIAS and ANAME records, which resolve to addresses), unknown. Absent until the first health check.'
                dns_target:
                    type: string
                    description: The designated CNAME target for this domain (<dns_target_token>.<suffix>). Pointing the domain here lets Speakeasy move it without DNS changes. Absent when per-domain targets are not configured or the token is not yet assigned.
                dns_target_token:
                    type: string
                    description: The random DNS label identifying this domain's designated CNAME target. Assigned when the domain is registered and unchanged for its lifetime. Absent until assigned.
                domain:
                    type: string
                    description: The custom domain name
                health_checked_at:
                    type: string
                    description: When the domain health was last checked.
                    format: date-time
                health_issue:
                    type: string
                    description: 'The reason the domain was last observed as unhealthy. One of: dns_not_found, dns_target_mismatch, resource_missing, certificate_missing, certificate_not_ready, certificate_expired, certificate_invalid, check_failed.'
                health_status:
                    type: string
                    description: 'The latest observed domain health status. One of: unknown, healthy, unhealthy.'
                id:
                    type: string
                    description: The ID of the custom domain
                ip_allowlist:
                    type: array
                    items:
                        type: string
                    description: IP addresses or CIDR ranges allowed to access this domain. Empty list means unrestricted.
                is_updating:
                    type: boolean
                    description: The custom domain is actively being registered
                openai_apps_challenge_token:
                    type: string
                    description: The token served for OpenAI app-submission domain verification, if configured
                organization_id:
                    type: string
                    description: The ID of the organization this domain belongs to
                root_mcp_endpoint_id:
                    type: string
                    description: The MCP endpoint currently mapped to the domain root, if any
                    format: uuid
                suggested_record_type:
                    type: string
                    description: The suggested DNS record type for this domain. A suggestion only — delegated subzones can make an apex-looking domain CNAME-capable.
                    enum:
                        - cname
                        - a
                unhealthy_since:
                    type: string
                    description: When the current unhealthy period began.
                    format: date-time
                updated_at:
                    type: string
                    description: When the custom domain was last updated.
                    format: date-time
                verified:
                    type: boolean
                    description: Whether the domain is verified
            required:
                - id
                - organization_id
                - domain
                - verified
                - activated
                - created_at
                - updated_at
                - is_updating
                - ip_allowlist
                - suggested_record_type
        CustomDomainMcpEndpoint:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the MCP endpoint
                    format: uuid
                is_domain_root:
                    type: boolean
                    description: Whether this endpoint is mapped to the custom-domain root
                mcp_server_id:
                    type: string
                    description: The ID of the parent MCP server. Null for meta-MCP-backed endpoints.
                    format: uuid
                mcp_server_name:
                    type: string
                    description: The display name of the parent server. May be empty if the parent has no configured name.
                mcp_server_slug:
                    type: string
                    description: The url-friendly slug of the parent MCP server. May be empty if the parent has no configured slug or is a meta MCP server.
                meta_mcp_server_id:
                    type: string
                    description: The ID of the parent meta MCP server. Null for MCP-server-backed endpoints.
                    format: uuid
                project_id:
                    type: string
                    description: The ID of the project the endpoint belongs to
                    format: uuid
                project_name:
                    type: string
                    description: The display name of the project the endpoint belongs to
                project_slug:
                    type: string
                    description: The url-friendly slug of the project the endpoint belongs to
                slug:
                    type: string
                    description: The endpoint slug
            description: An MCP endpoint registered under a custom domain, with its parent MCP server and project denormalised for display in the dashboard's delete-impact preview.
            required:
                - id
                - slug
                - project_id
                - project_name
                - project_slug
                - is_domain_root
        Dashboard:
            type: object
            properties:
                created_at:
                    type: string
                    format: date-time
                created_by_user_id:
                    type: string
                    description: Who made it, when known
                description:
                    type: string
                    description: What the dashboard is for, when its creator said
                filters:
                    $ref: '#/components/schemas/DashboardFilters'
                id:
                    type: string
                    format: uuid
                name:
                    type: string
                    description: Display name. Not unique.
                organization_id:
                    type: string
                project_id:
                    type: string
                    format: uuid
                updated_at:
                    type: string
                    format: date-time
                widgets:
                    type: array
                    items:
                        $ref: '#/components/schemas/DashboardPlacement'
                    description: Its cards, in no particular order; the grid places them by position
            description: 'A project''s layout of saved widgets on a 12-column grid, under one date range and filter bar. Belongs to a project and is visible to everyone in it. Widgets are linked, not copied: editing one changes it on every dashboard it is on.'
            required:
                - id
                - project_id
                - organization_id
                - name
                - filters
                - widgets
                - created_at
                - updated_at
        DashboardFilters:
            type: object
            properties:
                range:
                    $ref: '#/components/schemas/DashboardRange'
                values:
                    type: object
                    description: Values picked per catalog dimension, by field name
                    additionalProperties:
                        type: array
                        items:
                            type: string
            description: 'What a dashboard opens on: its date range and the values picked for each catalog dimension its filter bar offers. Changes in the bar are a personal view until they are saved here.'
            required:
                - values
        DashboardPlacement:
            type: object
            properties:
                h:
                    type: integer
                    description: Height in rows
                    format: int64
                id:
                    type: string
                    description: Stable across layout edits, so the grid keeps the card's identity
                    format: uuid
                w:
                    type: integer
                    description: Width in columns
                    format: int64
                widget_id:
                    type: string
                    format: uuid
                x:
                    type: integer
                    description: Column the card starts at, from 0
                    format: int64
                "y":
                    type: integer
                    description: Row the card starts at, from 0
                    format: int64
            description: 'One card on a dashboard: the saved widget it links to and where it sits on the 12-column grid. The same widget may be placed more than once.'
            required:
                - id
                - widget_id
                - x
                - "y"
                - w
                - h
        DashboardRange:
            type: object
            properties:
                from:
                    type: string
                    description: Start of an absolute range
                    format: date-time
                label:
                    type: string
                    description: How the date picker named the absolute range
                    example: Last Tuesday
                preset:
                    type: string
                    description: A relative window, one a widget may be saved with
                    example: 7d
                to:
                    type: string
                    description: End of an absolute range
                    format: date-time
            description: 'The date range a dashboard opens on: a relative window, or an absolute range with the label the date picker gave it.'
        DataExportRoute:
            type: object
            properties:
                created_at:
                    type: string
                    description: Creation timestamp.
                    format: date-time
                data_source:
                    type: string
                    description: Class of data exported by this route.
                    enum:
                        - product_telemetry
                        - risk_findings
                        - tool_call_logs
                        - mcp_connection_logs
                enabled:
                    type: boolean
                    description: Whether the route is enabled.
                id:
                    type: string
                    description: Route ID.
                    format: uuid
                otel_destination_id:
                    type: string
                    description: OTEL destination configured on this route. Omitted when no OTEL destination is selected.
                    format: uuid
                project_id:
                    type: string
                    description: Project that owns the route.
                    format: uuid
                updated_at:
                    type: string
                    description: Last update timestamp.
                    format: date-time
            description: The export configuration for one class of project data. A route may contain one destination of each supported type.
            required:
                - id
                - project_id
                - data_source
                - enabled
                - created_at
                - updated_at
        DeactivatePrescriptionRequestBody:
            type: object
            properties:
                expected_version:
                    type: integer
                    format: int64
                operation_id:
                    type: string
                    format: uuid
                organization_id:
                    type: string
                prescription_id:
                    type: string
                    format: uuid
            required:
                - organization_id
                - operation_id
                - prescription_id
                - expected_version
        DeclineRiskPolicyChallengeResponseBody:
            type: object
            properties:
                declined:
                    type: boolean
                    description: Whether the challenge is now declined.
            required:
                - declined
        DelegationStatusCount:
            type: object
            properties:
                count:
                    type: integer
                    description: Number of humans with this latest outcome.
                    format: int64
                    minimum: 0
                last_credential_obtained_at:
                    type: string
                    description: Most recent credential acquisition, distinct from renewal.
                    format: date-time
                last_observed_at:
                    type: string
                    description: Most recent matching observation.
                    format: date-time
                last_refresh_succeeded_at:
                    type: string
                    description: Most recent successful assertion renewal.
                    format: date-time
                status:
                    type: string
                    description: Observed per-human delegation outcome, present only when the top-level status is observed. A configuration_failure count records past per-human failures for the current configuration; it is distinct from top-level configuration_failure, which reports a currently invalid configuration and returns no observations.
                    enum:
                        - durable_credential_present
                        - assertion_only
                        - offline_unsupported
                        - offline_not_requested
                        - refused
                        - reauthentication_required
                        - temporary_failure
                        - configuration_failure
            description: Sanitized count of the latest observation per human, not a history of token requests.
            required:
                - status
                - count
        DeleteAgentPolicyGrantForm:
            type: object
            properties:
                agent_id:
                    type: string
                    description: First-class agent identifier
                    format: uuid
                expected_policy:
                    $ref: '#/components/schemas/AgentExpectedPolicy'
                grant_id:
                    type: string
                    description: Direct policy grant identifier
                    format: uuid
            required:
                - grant_id
                - agent_id
        DeleteAiScanTargetRequestBody:
            type: object
            properties:
                id:
                    type: string
                    description: Id of the target to remove.
                    pattern: ^[a-z0-9][a-z0-9-]{0,63}$
            required:
                - id
        DeleteAiScanTargetResult:
            type: object
            properties:
                list_version:
                    type: integer
                    description: Version of the served list after the change.
                    format: int64
            required:
                - list_version
        DeleteConfigRequestBody:
            type: object
            properties:
                provider:
                    type: string
                    description: AI provider identifier. Supported values include cursor, anthropic_compliance, codex_compliance, and chatgpt_compliance.
            required:
                - provider
        DeleteGlobalToolVariationForm:
            type: object
            properties:
                variation_id:
                    type: string
                    description: The ID of the variation to delete
            required:
                - variation_id
        DeleteGlobalToolVariationResult:
            type: object
            properties:
                variation_id:
                    type: string
                    description: The ID of the variation that was deleted
            required:
                - variation_id
        DeleteIssuanceProfileRequestBody:
            type: object
            properties:
                id:
                    type: string
                    description: The profile id.
                    format: uuid
            required:
                - id
        DeleteOnboardingPlaybookRequestBody:
            type: object
            properties:
                playbook_id:
                    type: string
            required:
                - playbook_id
        DeleteOnboardingUseCaseRequestBody:
            type: object
            properties:
                use_case_id:
                    type: string
            required:
                - use_case_id
        DeleteRequestBody:
            type: object
            properties:
                override_id:
                    type: string
                    description: Override ID to delete
            required:
                - override_id
        Deployment:
            type: object
            properties:
                cloned_from:
                    type: string
                    description: The ID of the deployment that this deployment was cloned from.
                    example: bc5f4a555e933e6861d12edba4c2d87ef6caf8e6
                created_at:
                    type: string
                    description: The creation date of the deployment.
                    format: date-time
                external_id:
                    type: string
                    description: The external ID to refer to the deployment. This can be a git commit hash for example.
                    example: bc5f4a555e933e6861d12edba4c2d87ef6caf8e6
                external_mcp_tool_count:
                    type: integer
                    description: The number of tools in the deployment generated from external MCP servers.
                    format: int64
                external_mcps:
                    type: array
                    items:
                        $ref: '#/components/schemas/DeploymentExternalMCP'
                    description: The external MCP servers that were deployed.
                external_url:
                    type: string
                    description: The upstream URL a deployment can refer to. This can be a github url to a commit hash or pull request.
                functions_assets:
                    type: array
                    items:
                        $ref: '#/components/schemas/DeploymentFunctions'
                    description: The IDs, as returned from the assets upload service, to uploaded OpenAPI 3.x documents whose operations will become tool definitions.
                functions_tool_count:
                    type: integer
                    description: The number of tools in the deployment generated from Functions.
                    format: int64
                github_pr:
                    type: string
                    description: The github pull request that resulted in the deployment.
                    example: "1234"
                github_repo:
                    type: string
                    description: The github repository in the form of "owner/repo".
                    example: speakeasyapi/gram
                github_sha:
                    type: string
                    description: The commit hash that triggered the deployment.
                    example: f33e693e9e12552043bc0ec5c37f1b8a9e076161
                id:
                    type: string
                    description: The ID to of the deployment.
                    example: bc5f4a555e933e6861d12edba4c2d87ef6caf8e6
                idempotency_key:
                    type: string
                    description: A unique identifier that will mitigate against duplicate deployments.
                    example: 01jqq0ajmb4qh9eppz48dejr2m
                openapiv3_assets:
                    type: array
                    items:
                        $ref: '#/components/schemas/OpenAPIv3DeploymentAsset'
                    description: The IDs, as returned from the assets upload service, to uploaded OpenAPI 3.x documents whose operations will become tool definitions.
                openapiv3_tool_count:
                    type: integer
                    description: The number of tools in the deployment generated from OpenAPI documents.
                    format: int64
                organization_id:
                    type: string
                    description: The ID of the organization that the deployment belongs to.
                packages:
                    type: array
                    items:
                        $ref: '#/components/schemas/DeploymentPackage'
                    description: The packages that were deployed.
                project_id:
                    type: string
                    description: The ID of the project that the deployment belongs to.
                status:
                    type: string
                    description: The status of the deployment.
                user_id:
                    type: string
                    description: The ID of the user that created the deployment.
            required:
                - id
                - created_at
                - organization_id
                - project_id
                - user_id
                - openapiv3_assets
                - status
                - packages
                - openapiv3_tool_count
                - functions_tool_count
                - external_mcp_tool_count
        DeploymentExternalMCP:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the deployment external MCP record.
                name:
                    type: string
                    description: The display name for the external MCP server.
                registry_id:
                    type: string
                    description: The ID of the external MCP registry the server is from.
                registry_server_specifier:
                    type: string
                    description: The canonical server name used to look up the server in the registry.
                slug:
                    type: string
                    description: A short url-friendly label that uniquely identifies a resource.
                    pattern: ^[a-z0-9_-]{1,128}$
                    maxLength: 40
            required:
                - id
                - name
                - slug
                - registry_server_specifier
        DeploymentFunctions:
            type: object
            properties:
                asset_id:
                    type: string
                    description: The ID of the uploaded asset.
                id:
                    type: string
                    description: The ID of the deployment asset.
                memory_mib:
                    type: integer
                    description: The memory limit in MiB of function runner machines.
                    format: int32
                name:
                    type: string
                    description: The name to give the document as it will be displayed in UIs.
                runtime:
                    type: string
                    description: The runtime to use when executing functions.
                scale:
                    type: integer
                    description: The number of instances to run for the function.
                    format: int32
                slug:
                    type: string
                    description: A short url-friendly label that uniquely identifies a resource.
                    pattern: ^[a-z0-9_-]{1,128}$
                    maxLength: 40
            required:
                - id
                - asset_id
                - name
                - slug
                - runtime
        DeploymentLogEvent:
            type: object
            properties:
                attachment_id:
                    type: string
                    description: The ID of the asset tied to the log event
                attachment_type:
                    type: string
                    description: The type of the asset tied to the log event
                created_at:
                    type: string
                    description: The creation date of the log event
                event:
                    type: string
                    description: The type of event that occurred
                id:
                    type: string
                    description: The ID of the log event
                message:
                    type: string
                    description: The message of the log event
            required:
                - id
                - created_at
                - event
                - message
        DeploymentPackage:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the deployment package.
                name:
                    type: string
                    description: The name of the package.
                version:
                    type: string
                    description: The version of the package.
            required:
                - id
                - name
                - version
        DeploymentSummary:
            type: object
            properties:
                created_at:
                    type: string
                    description: The creation date of the deployment.
                    format: date-time
                external_mcp_asset_count:
                    type: integer
                    description: The number of external MCP server assets.
                    format: int64
                external_mcp_tool_count:
                    type: integer
                    description: The number of tools in the deployment generated from external MCP servers.
                    format: int64
                functions_asset_count:
                    type: integer
                    description: The number of Functions assets.
                    format: int64
                functions_tool_count:
                    type: integer
                    description: The number of tools in the deployment generated from Functions.
                    format: int64
                id:
                    type: string
                    description: The ID to of the deployment.
                    example: bc5f4a555e933e6861d12edba4c2d87ef6caf8e6
                openapiv3_asset_count:
                    type: integer
                    description: The number of upstream OpenAPI assets.
                    format: int64
                openapiv3_tool_count:
                    type: integer
                    description: The number of tools in the deployment generated from OpenAPI documents.
                    format: int64
                status:
                    type: string
                    description: The status of the deployment.
                user_id:
                    type: string
                    description: The ID of the user that created the deployment.
            required:
                - id
                - created_at
                - user_id
                - status
                - openapiv3_asset_count
                - openapiv3_tool_count
                - functions_asset_count
                - functions_tool_count
                - external_mcp_asset_count
                - external_mcp_tool_count
        Destination:
            type: object
            properties:
                created_at:
                    type: string
                    description: Creation timestamp.
                    format: date-time
                destination_type:
                    type: string
                    description: Destination transport type.
                    enum:
                        - otel
                id:
                    type: string
                    description: Destination ID.
                    format: uuid
                name:
                    type: string
                    description: Human-readable destination name.
                otel:
                    $ref: '#/components/schemas/OtelDestination'
                project_id:
                    type: string
                    description: Project that owns the destination.
                    format: uuid
                sensitive_data:
                    type: string
                    description: Whether sensitive data is included in payloads sent to this destination.
                    enum:
                        - exclude
                        - include
                updated_at:
                    type: string
                    description: Last update timestamp.
                    format: date-time
            description: A reusable project-scoped data export destination. The destination_type discriminator identifies the populated transport configuration.
            required:
                - id
                - project_id
                - name
                - destination_type
                - sensitive_data
                - created_at
                - updated_at
        DetachAuthClientFromMcpServerRequestBody:
            type: object
            properties:
                id:
                    type: string
                    description: The auth client id.
                    format: uuid
                mcp_server_id:
                    type: string
                    description: The MCP server id.
                    format: uuid
            required:
                - id
                - mcp_server_id
        DetachBindingRequestBody:
            type: object
            properties:
                id:
                    type: string
                    format: uuid
                principal_id:
                    type: string
                    format: uuid
                user_session_issuer_id:
                    type: string
                    format: uuid
            required:
                - principal_id
                - user_session_issuer_id
                - id
        DetachServerClientAssociationRequestBody:
            type: object
            properties:
                mcp_server_id:
                    type: string
                    description: The MCP server.
                    format: uuid
                remote_session_client_id:
                    type: string
                    description: The associated remote session client.
                    format: uuid
            required:
                - mcp_server_id
                - remote_session_client_id
        DetachUserSessionIssuerForm:
            type: object
            properties:
                id:
                    type: string
                    description: The remote_session_client id.
                    format: uuid
                user_session_issuer_id:
                    type: string
                    description: The user_session_issuer to detach.
                    format: uuid
            description: Form for detaching a user_session_issuer from a remote_session_client via the join table.
            required:
                - id
                - user_session_issuer_id
        DeviceAgentConfiguration:
            type: object
            properties:
                config:
                    type: object
                    description: Forward-compatible non-secret settings document. Platform values use false, user, or managed enforcement layers.
                    additionalProperties: true
                etag:
                    type: string
                    description: Opaque revision identifier for this configuration.
                is_configured:
                    type: boolean
                    description: Whether an administrator has saved a remote configuration. False means agents should not add a remote resolver layer.
                schema_version:
                    type: integer
                    description: Schema version for this remote configuration envelope.
                    format: int64
                    minimum: 1
                updated_at:
                    type: string
                    description: When this remote configuration was last saved. Absent when is_configured is false.
                    format: date-time
            description: Versioned organization-wide settings delivered to enrolled device agents. Agents must ignore unknown config keys. Remote settings override the shareable local/MDM settings after a successful fetch; per-device identity and secrets always remain local.
            required:
                - schema_version
                - config
                - is_configured
                - etag
        DeviceIntegrationConfig:
            type: object
            properties:
                created_at:
                    type: string
                    description: ISO 8601 timestamp when the config was created. Omitted when no config is set.
                    format: date-time
                enabled:
                    type: boolean
                    description: Whether the provider integration is active.
                has_credentials:
                    type: boolean
                    description: Whether secret credentials are currently stored. The values themselves are never returned.
                id:
                    type: string
                    description: Config ID. Omitted when no config is set for the provider.
                organization_id:
                    type: string
                    description: Organization the config belongs to.
                provider:
                    type: string
                    description: Provider identifier (e.g. jamf, kandji, drata, vanta).
                settings:
                    type: object
                    description: Non-secret provider settings (e.g. instance URL), keyed by field key.
                    additionalProperties:
                        type: string
                updated_at:
                    type: string
                    description: ISO 8601 timestamp of the most recent change. Omitted when no config is set.
                    format: date-time
            description: Per-organization device integration config for one provider. Secret credentials are write-only; reads only expose whether credentials are configured.
            required:
                - organization_id
                - provider
                - enabled
                - has_credentials
                - settings
        DeviceIntegrationCoverage:
            type: object
            properties:
                active_window_minutes:
                    type: integer
                    description: 'Freshness window: an agent counts as active when its heartbeat is within this many minutes.'
                    format: int64
                agent_active:
                    type: integer
                    description: Devices with an agent heartbeat or state report within the window. What that attests depends on the matching mode and, per device, on whether the match was by serial or by email — compare against agent_active_device_attested.
                    format: int64
                agent_active_device_attested:
                    type: integer
                    description: How many of agent_active are backed by that machine's OWN heartbeat or state report (serial match). Under user-level matching this is 0; under device-level matching a value below agent_active means some devices fell back to the assigned-user email, which is the weaker claim.
                    format: int64
                agent_other_device:
                    type: integer
                    description: 'Device-level matching only: devices whose assigned user runs the agent, but not on this machine. Always 0 under user-level matching, which cannot distinguish this from agent_active.'
                    format: int64
                agent_stale:
                    type: integer
                    description: Devices with a known agent that went quiet — the drift/disable case.
                    format: int64
                attestation:
                    type: string
                    description: 'The strongest claim that holds for EVERY active device in this response — not merely the org''s matching mode. "device": every active device was matched on its own hardware serial, so each one ran the agent. "user": at least one active device was matched only on its assigned-user email, so the set as a whole supports only the weaker claim that assigned users ran the agent somewhere.'
                    enum:
                        - device
                        - user
                enforcement_halted:
                    type: integer
                    description: agent_active devices whose latest state report says the kill switch halted enforcement, because the reporting agent's build was blocked when it reported.
                    format: int64
                missing:
                    type: integer
                    description: Devices absent from the latest completed MDM snapshot.
                    format: int64
                no_agent:
                    type: integer
                    description: Devices whose assigned email resolves to an org member with no agent at all.
                    format: int64
                no_email:
                    type: integer
                    description: Devices the MDM reports with no assigned-user email.
                    format: int64
                organization_id:
                    type: string
                    description: Organization the coverage describes.
                policy_attested:
                    type: integer
                    description: agent_active devices whose latest report applies the policy last served to the reporting user.
                    format: int64
                policy_outdated:
                    type: integer
                    description: agent_active devices that report a different policy, or none.
                    format: int64
                policy_unreported:
                    type: integer
                    description: agent_active devices with no state report within the window, typically an agent that predates reporting.
                    format: int64
                total_devices:
                    type: integer
                    description: All synced devices, including missing ones.
                    format: int64
                unmanaged_agent_users:
                    type: integer
                    description: Agent users with no matching device in any connected MDM inventory — shadow devices or fleets outside MDM.
                    format: int64
                unresolved_email:
                    type: integer
                    description: Devices whose assigned email matches neither an agent user nor an org member.
                    format: int64
            description: 'Agent-coverage summary across the org''s connected MDM inventories. What a bucket attests depends on the org''s matching mode: under device-level matching (hardware serial) agent_active means THIS machine reported in, while under user-level matching it means only that the device''s assigned user has a fresh heartbeat somewhere.'
            required:
                - organization_id
                - active_window_minutes
                - attestation
                - agent_active
                - agent_active_device_attested
                - agent_stale
                - agent_other_device
                - no_agent
                - no_email
                - unresolved_email
                - missing
                - total_devices
                - unmanaged_agent_users
                - policy_attested
                - policy_outdated
                - policy_unreported
                - enforcement_halted
        DeviceIntegrationProvider:
            type: object
            properties:
                capabilities:
                    type: array
                    items:
                        type: string
                    description: 'Integration directions the provider supports: inventory_source (pull the managed-device fleet) and/or evidence_sink (push agent-coverage evidence).'
                display_name:
                    type: string
                    description: Human-readable vendor name.
                fields:
                    type: array
                    items:
                        $ref: '#/components/schemas/DeviceIntegrationProviderField'
                    description: Credential and settings inputs the provider needs, in render order.
                id:
                    type: string
                    description: Provider identifier (e.g. jamf, kandji, drata, vanta).
                schedules:
                    type: array
                    items:
                        $ref: '#/components/schemas/DeviceIntegrationProviderSchedule'
                    description: Sync pipelines the provider runs.
            description: A vendor the device integrations framework can connect to.
            required:
                - id
                - display_name
                - capabilities
                - fields
                - schedules
        DeviceIntegrationProviderField:
            type: object
            properties:
                key:
                    type: string
                    description: Field identifier in the credentials or settings document.
                kind:
                    type: string
                    description: Input kind hint.
                    enum:
                        - text
                        - url
                label:
                    type: string
                    description: Human-readable name to render for the field.
                required:
                    type: boolean
                    description: Whether the field must be supplied to connect the provider.
                secret:
                    type: boolean
                    description: 'Whether the value is secret: stored encrypted, write-only, and masked in the UI.'
            description: One credential or settings input a provider needs to connect. Secret fields are stored encrypted and are write-only; non-secret fields are readable settings.
            required:
                - key
                - label
                - kind
                - secret
                - required
        DeviceIntegrationProviderSchedule:
            type: object
            properties:
                interval_minutes:
                    type: integer
                    description: Target minutes between successful runs. Declared in code by the provider, not configurable per org.
                    format: int64
                schedule:
                    type: string
                    description: Schedule identifier (e.g. jamf_inventory).
            description: One sync pipeline a provider runs on a cadence.
            required:
                - schedule
                - interval_minutes
        DeviceIntegrationScheduleState:
            type: object
            properties:
                auto_paused_at:
                    type: string
                    description: ISO 8601 timestamp when the scheduler auto-paused the schedule after repeated provider rejections. Omitted unless auto-paused.
                    format: date-time
                consecutive_failures:
                    type: integer
                    description: Number of consecutive failed syncs. Resets to zero on success or retry.
                    format: int64
                enabled:
                    type: boolean
                    description: Whether the user has this schedule enabled. Disabled schedules are skipped by the scheduler until re-enabled.
                last_sync_error:
                    type: string
                    description: Stored error from the schedule's latest failed sync. Omitted unless the latest sync failed.
                last_sync_failed_at:
                    type: string
                    description: ISO 8601 timestamp for the schedule's latest failed sync. Omitted unless a sync has failed.
                    format: date-time
                last_sync_success_at:
                    type: string
                    description: ISO 8601 timestamp for the schedule's last successful sync. Omitted until a sync succeeds.
                    format: date-time
                next_sync_after:
                    type: string
                    description: ISO 8601 timestamp for the schedule's next scheduled sync.
                    format: date-time
                schedule:
                    type: string
                    description: Schedule identifier (e.g. jamf_inventory).
                status:
                    type: string
                    description: Derived status for the schedule's latest sync state.
                    enum:
                        - pending
                        - success
                        - failed
                        - auto_paused
                        - disabled
            description: 'State of one sync schedule of a provider integration: the user''s intent (enabled) plus the scheduler''s execution state.'
            required:
                - schedule
                - enabled
                - status
                - consecutive_failures
        DeviceIntegrationTestConnectionResult:
            type: object
            properties:
                message:
                    type: string
                    description: Human-readable failure detail. Omitted on success.
                ok:
                    type: boolean
                    description: Whether the provider accepted the stored credentials.
            description: Outcome of probing the provider with the stored credentials.
            required:
                - ok
        DimensionValuesRequestBody:
            type: object
            properties:
                attribute:
                    type: string
                    description: With dimension=attribute, the exact signal attribute key. dimension=attribute_keys discovers keys.
                    minLength: 1
                    maxLength: 256
                dataset:
                    type: string
                    description: Dataset to look in
                    example: tool_calls
                dimension:
                    type: string
                    description: Dimension to list values of
                    example: tool_name
                from:
                    type: string
                    description: Start of the half-open window [from, to), ISO 8601
                    format: date-time
                limit:
                    type: integer
                    description: Maximum values. Defaults to 50, at most 200.
                    default: 50
                    format: int64
                    minimum: 1
                    maximum: 200
                signal_scope:
                    $ref: '#/components/schemas/AnalyticsSignalScope'
                to:
                    type: string
                    description: End of the half-open window [from, to), ISO 8601
                    format: date-time
            required:
                - dataset
                - dimension
                - from
                - to
        DirectoryAttributeOption:
            type: object
            properties:
                key:
                    type: string
                    description: Directory attribute key, e.g. department_name.
                member_count:
                    type: integer
                    description: Number of directory users with this value.
                    format: int64
                value:
                    type: string
                    description: Directory attribute value.
            required:
                - key
                - value
                - member_count
        DirectoryGroupOption:
            type: object
            properties:
                id:
                    type: string
                    description: Directory group identifier.
                    format: uuid
                member_count:
                    type: integer
                    description: Number of directory users in the group.
                    format: int64
                name:
                    type: string
                    description: Directory group name.
            required:
                - id
                - name
                - member_count
        DirectoryPeopleStateCounts:
            type: object
            properties:
                account_not_member:
                    type: integer
                    description: Profiles in the account_not_member state.
                    format: int64
                ambiguous_email:
                    type: integer
                    description: Profiles in the ambiguous_email state.
                    format: int64
                member:
                    type: integer
                    description: Profiles in the member state.
                    format: int64
                not_signed_in:
                    type: integer
                    description: Profiles in the not_signed_in state.
                    format: int64
            required:
                - member
                - account_not_member
                - not_signed_in
                - ambiguous_email
        DirectoryPerson:
            type: object
            properties:
                email:
                    type: string
                    description: Email the directory reports for the profile. Empty when the directory reports none.
                first_name:
                    type: string
                    description: First name the directory reports, when it reports one.
                groups:
                    type: array
                    items:
                        $ref: '#/components/schemas/DirectoryPersonGroup'
                    description: Live directory groups the profile belongs to.
                id:
                    type: string
                    description: Directory profile ID.
                    format: uuid
                last_name:
                    type: string
                    description: Last name the directory reports, when it reports one.
                state:
                    type: string
                    description: 'How the profile relates to Speakeasy accounts. member: linked to, or the only email match of, a member of this organization. account_not_member: an account exists but is not a member here. not_signed_in: no matching account. ambiguous_email: the email matches more than one profile or account, so it is never matched.'
                    enum:
                        - member
                        - account_not_member
                        - not_signed_in
                        - ambiguous_email
                user_id:
                    type: string
                    description: The matched Speakeasy user ID. Present only for member and account_not_member.
            required:
                - id
                - email
                - state
                - groups
        DirectoryPersonGroup:
            type: object
            properties:
                id:
                    type: string
                    description: Directory group ID.
                    format: uuid
                name:
                    type: string
                    description: Directory group name.
            required:
                - id
                - name
        DirectoryReviewItem:
            type: object
            properties:
                created_at:
                    type: string
                    description: When the item was raised.
                    format: date-time
                id:
                    type: string
                    description: The review item.
                    format: uuid
                item:
                    $ref: '#/components/schemas/DirectoryRoleSetupPreviewItem'
                kind:
                    type: string
                    description: 'new_group: an unmapped group first seen after review started. new_attribute_value: a new value of an attribute key that has mappings. source_missing: a mapped group or attribute value that has gone.'
                    enum:
                        - new_group
                        - new_attribute_value
                        - source_missing
                occurrence:
                    type: integer
                    description: 1 the first time a source is raised for this kind, then one more each time it recurs.
                    format: int32
            required:
                - id
                - kind
                - occurrence
                - created_at
                - item
        DirectoryReviewSettings:
            type: object
            properties:
                emails_enabled:
                    type: boolean
                    description: Whether organization admins are emailed when directory changes are waiting for a decision. On by default.
            required:
                - emails_enabled
        DirectoryRoleMapping:
            type: object
            properties:
                attribute_key:
                    type: string
                    description: The directory attribute key. Set when source_kind is attribute.
                attribute_value:
                    type: string
                    description: The directory attribute value. Set when source_kind is attribute.
                created_at:
                    type: string
                    format: date-time
                directory_group_id:
                    type: string
                    description: The mapped directory group. Set when source_kind is group.
                    format: uuid
                directory_group_name:
                    type: string
                    description: Display name of the mapped directory group.
                id:
                    type: string
                    description: Unique mapping identifier.
                    format: uuid
                role_urn:
                    type: string
                    description: Principal URN of the role granted to matching members.
                source_kind:
                    type: string
                    description: 'What the mapping matches: a directory group or an attribute value.'
                    enum:
                        - group
                        - attribute
                source_status:
                    type: string
                    description: Whether the mapped source still exists. missing means the group was deleted from the directory, or no live directory user has the attribute value. A missing source matches nobody, so the mapping grants nothing until the source returns.
                    enum:
                        - active
                        - missing
                updated_at:
                    type: string
                    format: date-time
            required:
                - id
                - source_kind
                - source_status
                - role_urn
                - created_at
                - updated_at
        DirectoryRoleSetupHiddenAttributeKey:
            type: object
            properties:
                key:
                    type: string
                    description: Directory attribute key with too many distinct values to offer in bulk setup.
                value_count:
                    type: integer
                    description: Number of distinct values the key has on live directory profiles.
                    format: int64
            required:
                - key
                - value_count
        DirectoryRoleSetupPreviewItem:
            type: object
            properties:
                directory_people:
                    type: integer
                    description: People with a live directory profile that matches the source, counted once per email address, so someone with profiles in two directories counts once and a profile with no email is not counted. These are directory people, not organization members or role members.
                    format: int64
                existing_role_urns:
                    type: array
                    items:
                        type: string
                    description: Roles the source already maps to. Empty for an unmapped source.
                proposed_roles:
                    type: array
                    items:
                        $ref: '#/components/schemas/DirectoryRoleSetupProposedRole'
                    description: The suggested role set. For a mapped source this is its current set; for an unmapped source, one reused or new role.
                source:
                    $ref: '#/components/schemas/DirectoryRoleSetupSource'
                source_name:
                    type: string
                    description: The group name, or key=value for an attribute value.
                version:
                    type: string
                    description: Opaque version of the source and its current mappings. Send it back with applyDirectoryRoleSetup.
            required:
                - source
                - source_name
                - directory_people
                - existing_role_urns
                - proposed_roles
                - version
        DirectoryRoleSetupPreviewResult:
            type: object
            properties:
                hidden_attribute_keys:
                    type: array
                    items:
                        $ref: '#/components/schemas/DirectoryRoleSetupHiddenAttributeKey'
                    description: Attribute keys left out of items because they have more than max_values_per_attribute_key distinct values. Their values can still be mapped one at a time with setDirectoryRoleMappings.
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/DirectoryRoleSetupPreviewItem'
                    description: One item per live directory group and mappable attribute value.
                max_values_per_attribute_key:
                    type: integer
                    description: The limit on distinct values above which an attribute key is left out.
                    format: int64
            required:
                - items
                - hidden_attribute_keys
                - max_values_per_attribute_key
        DirectoryRoleSetupProposedRole:
            type: object
            properties:
                current_grants:
                    type: array
                    items:
                        $ref: '#/components/schemas/RoleGrant'
                    description: Grants the existing role already has. Applying the proposal approves them for the source's members. Empty for a new role.
                role_action:
                    type: string
                    description: reuse an existing role, or create a new one.
                    enum:
                        - reuse
                        - create
                role_id:
                    type: string
                    description: The existing role. Set when role_action is reuse.
                role_name:
                    type: string
                    description: The existing role's name, or the name a new role would get.
                role_urn:
                    type: string
                    description: Principal URN of the existing role. Set when role_action is reuse.
            required:
                - role_action
                - role_name
                - current_grants
        DirectoryRoleSetupSideEffect:
            type: object
            properties:
                kind:
                    type: string
                    description: What was requested.
                    enum:
                        - workos_role_sync
                request_status:
                    type: string
                    description: Requested work runs after the response and is never reported as done.
                    enum:
                        - requested
                role_id:
                    type: string
                    description: The role the request is for.
            required:
                - kind
                - role_id
                - request_status
        DirectoryRoleSetupSource:
            type: object
            properties:
                attribute_key:
                    type: string
                    description: The directory attribute key. Set when source_kind is attribute.
                    minLength: 1
                attribute_value:
                    type: string
                    description: The directory attribute value. Set when source_kind is attribute.
                    minLength: 1
                directory_group_id:
                    type: string
                    description: The directory group. Set when source_kind is group.
                    format: uuid
                source_kind:
                    type: string
                    description: 'What the source is: a directory group or an attribute value.'
                    enum:
                        - group
                        - attribute
            required:
                - source_kind
        DisableOpenRouterKeyRequestBody:
            type: object
            properties:
                key_type:
                    type: string
                    description: Key type to disable.
                    enum:
                        - chat
                        - internal
                organization_id:
                    type: string
                    description: Organization that owns the key.
            required:
                - organization_id
                - key_type
        DisableOrganizationRequestBody:
            type: object
            properties:
                id:
                    type: string
                    description: Organization ID.
                    minLength: 1
            required:
                - id
        DisableUpstreamAuthEnforcementRequestBody:
            type: object
            properties:
                organization_id:
                    type: string
                    description: The organization ID.
            required:
                - organization_id
        DisconnectSlackDirectoryConnectionRequestBody:
            type: object
            properties:
                generation:
                    type: string
                    description: Generation last read by the administrator.
                    format: uuid
                id:
                    type: string
                    description: Durable organization workspace connection ID.
                    format: uuid
            required:
                - id
                - generation
        DiscoverProtectedResourceMetadataRequestBody:
            type: object
            properties:
                remote_mcp_server_id:
                    type: string
                    description: The ID of the remote MCP server to probe.
                    format: uuid
            required:
                - remote_mcp_server_id
        DismissOktaServerSuggestionRequestBody:
            type: object
            properties:
                registry_entry_id:
                    type: string
                    description: Catalog entry of the suggestion to dismiss.
                    format: uuid
            required:
                - registry_entry_id
        DismissSkillSuggestionRequestBody:
            type: object
            properties:
                id:
                    type: string
                    description: The suggestion ID.
                    format: uuid
            required:
                - id
        DistributeOnboardingCandidateRequestBody:
            type: object
            properties:
                expected_version:
                    type: string
                    description: Opaque current distribution version token from getOnboarding.
                project_slug:
                    type: string
                    description: Exact workflow-selected project slug.
            required:
                - project_slug
                - expected_version
        DistributeSkillRequestBody:
            type: object
            properties:
                assistant_id:
                    type: string
                    description: The assistant that carries the skill.
                    format: uuid
                id:
                    type: string
                    description: The skill ID.
                    format: uuid
                pinned_version_id:
                    type: string
                    description: An optional valid version to pin instead of tracking the latest valid version.
                    format: uuid
                plugin_id:
                    type: string
                    description: The plugin that carries the skill.
                    format: uuid
            example:
                id: 550e8400-e29b-41d4-a716-446655440000
                plugin_id: 550e8400-e29b-41d4-a716-446655440001
            required:
                - id
        DistributionPlugin:
            type: object
            properties:
                auto_created:
                    type: boolean
                    description: Whether automatic role distribution created this plugin. Read-only; preserved after edits and reuse.
                description:
                    type: string
                id:
                    type: string
                    format: uuid
                is_default:
                    type: boolean
                name:
                    type: string
            description: Minimal plugin metadata for distributing an authorized skill. Does not expose configuration or assignments.
            required:
                - id
                - name
                - is_default
                - auto_created
        DomainDNSConfig:
            type: object
            properties:
                a_records:
                    type: array
                    items:
                        type: string
                    description: The static IP addresses apex custom domains should point A records at
                cname_target:
                    type: string
                    description: The CNAME target subdomain custom domains should point at, if configured
            required:
                - a_records
        DuplicateBuiltInDashboardRequestBody:
            type: object
            properties:
                slug:
                    type: string
                    description: The built-in dashboard to copy
                    example: mcp-tools
            required:
                - slug
        DuplicateDashboardRequestBody:
            type: object
            properties:
                id:
                    type: string
                    description: The dashboard to copy
                    format: uuid
            required:
                - id
        DuplicateOrganizationRemoteSessionClientForm:
            type: object
            properties:
                client_id:
                    type: string
                    description: client_id of a fresh upstream registration, e.g. from /oauth/proxy-register. Omit to copy the source's client_id and secret.
                client_id_issued_at:
                    type: string
                    description: When the issuer reported issuing the client_id (RFC 7591 client_id_issued_at). Omit to record the time of this call.
                    format: date-time
                client_secret:
                    type: string
                    description: client_secret of the fresh registration. Only with client_id. Speakeasy encrypts before persisting; the plaintext is never returned.
                client_secret_expires_at:
                    type: string
                    description: When the issuer reported the client secret expires (RFC 7591 client_secret_expires_at). Omit when the issuer reported no expiry.
                    format: date-time
                id:
                    type: string
                    description: The remote_session_client id to duplicate.
                    format: uuid
                token_endpoint_auth_method:
                    type: string
                    description: How the fresh registration authenticates at the issuer's token endpoint. Only with client_id; omit to keep the source's method.
                    enum:
                        - client_secret_basic
                        - client_secret_post
                        - none
            description: Form for an org admin to duplicate a remote_session_client. Omit client_id to copy the source's client_id and stored secret; supply it, with the rest of a Dynamic Client Registration response, to give the copy its own upstream registration.
            required:
                - id
        DuplicateWidgetRequestBody:
            type: object
            properties:
                id:
                    type: string
                    description: The widget to copy
                    format: uuid
            required:
                - id
        EMAProvider:
            type: object
            properties:
                internal_session_issuer_id:
                    type: string
                    description: The organization's internal session issuer, for speakeasy.
                    format: uuid
                kind:
                    type: string
                    description: external or speakeasy.
                    enum:
                        - external
                        - speakeasy
                last_accepted_at:
                    type: string
                    description: When the vendor last accepted an assertion from this provider anywhere in the organization, so the vendor already trusts it, from cached credentials that still hold an access token. Attributed to the exact issuer that vouched; the organization-wide default's external entry takes the newest acceptance of any external issuer. Set on every response that returns an order; omitted when the vendor has never accepted it, when acceptance could not be read, or on readEMA when the caller lacks org:read.
                    format: date-time
                remote_session_issuer_id:
                    type: string
                    description: The external provider's remote session issuer. Omitted for speakeasy, and in the organization-wide default order, where an external entry stands for each endpoint's own trusted issuer.
                    format: uuid
                unavailable_reason:
                    type: string
                    description: 'Why the provider cannot serve now; omitted when it can. Identity chaining skips it and tries the next provider. not_trusted_by_endpoint means the endpoint''s sign-in doesn''t go through this provider, so it can''t vouch for people there: an external issuer other than the sign-in''s trusted issuer, or Speakeasy on a sign-in federated through an external issuer. readiness_unknown means the Speakeasy issuer''s state could not be read just now; retry the read.'
                    enum:
                        - deleted
                        - disabled
                        - not_trusted_by_endpoint
                        - signing_unavailable
                        - not_rolled_out
                        - verified_domain_required
                        - setup_required
                        - keyless
                        - signing_paused
                        - sign_in_enforcement_required
                        - readiness_unknown
            description: One EMA provider a vendor accepts.
            required:
                - kind
        EMAProviderInput:
            type: object
            properties:
                kind:
                    type: string
                    description: external is an organization-level remote session issuer that exchanges the user's identity for an ID-JAG, such as an Okta authorization server; speakeasy is the organization's internal session issuer.
                    enum:
                        - external
                        - speakeasy
                remote_session_issuer_id:
                    type: string
                    description: 'Required for external, omitted for speakeasy: an organization-level issuer that an organization user session issuer trusts.'
                    format: uuid
            description: One EMA provider allowed to issue ID-JAGs for a vendor.
            required:
                - kind
        EMAProviderOrder:
            type: object
            properties:
                is_default:
                    type: boolean
                    description: Nothing is saved, so every provider is accepted. An endpoint whose sign-in trusts an external issuer uses that issuer alone; one that trusts none uses the organization's Speakeasy issuer when it has one.
                providers:
                    type: array
                    items:
                        $ref: '#/components/schemas/EMAProvider'
                    description: The saved providers in their stored order, or the derived default described by is_default.
                vendor_issuer:
                    type: string
                    description: The vendor authorization server issuer, canonicalized.
            description: The EMA providers one vendor authorization server accepts, saved or default. They are stored as an ordered list that identity chaining tries in turn, but each endpoint can use only the provider its sign-in goes through, so the list acts as the set of accepted providers.
            required:
                - vendor_issuer
                - is_default
                - providers
        EMAService:
            type: object
            properties:
                ema_providers:
                    $ref: '#/components/schemas/EMAProviderOrder'
                hidden_server_count:
                    type: integer
                    description: Counted servers the caller cannot read; they are not named.
                    format: int64
                name:
                    type: string
                    description: The vendor's display name, from an issuer record that names it. Empty when none has one.
                ready_server_count:
                    type: integer
                    description: Of those, how many have a ready binding, including servers the caller cannot read.
                    format: int64
                remote_session_issuer_id:
                    type: string
                    description: An issuer record the organization can name for this vendor, organization-level first, to pass to setEMAProviders. Omitted only when no issuer record names the vendor any more.
                    format: uuid
                server_count:
                    type: integer
                    description: Distinct live MCP servers whose identity chaining binding for this vendor has been turned on, in any state after setup, including servers the caller cannot read.
                    format: int64
                servers:
                    type: array
                    items:
                        $ref: '#/components/schemas/EMAServiceServer'
                    description: The counted servers the caller can read (mcp:read), ordered by project and name.
                vendor_issuer:
                    type: string
                    description: The vendor authorization server issuer, canonicalized.
            description: 'One service identity chaining reaches in the organization: a vendor authorization server, the identity providers that can vouch for people to it with whether the vendor has accepted each, and the MCP servers that chain through it.'
            required:
                - vendor_issuer
                - name
                - ema_providers
                - server_count
                - ready_server_count
                - servers
                - hidden_server_count
        EMAServiceServer:
            type: object
            properties:
                id:
                    type: string
                    description: The MCP server id.
                    format: uuid
                last_accepted_at:
                    type: string
                    description: When the vendor last accepted an assertion for this server from a provider that can vouch now. Omitted when never.
                    format: date-time
                name:
                    type: string
                    description: The MCP server name. Empty when it has none.
                project_id:
                    type: string
                    description: The owning project.
                    format: uuid
                project_name:
                    type: string
                    description: The owning project's name.
                project_slug:
                    type: string
                    description: The owning project's slug.
                sign_in_issuer_id:
                    type: string
                    description: 'The remote session issuer the server''s sign-in trusts, such as an Okta authorization server: only that issuer can vouch for people on the server. Omitted when the server uses Speakeasy''s own sign-in, where only Speakeasy can vouch.'
                    format: uuid
                sign_in_issuer_name:
                    type: string
                    description: The display name of sign_in_issuer_id. Omitted with it, or when the issuer has no name.
                slug:
                    type: string
                    description: The MCP server slug. Empty when it has none.
                status:
                    type: string
                    description: 'working: on, and the vendor accepted an assertion for this server from a provider that can vouch now. not_proven: on, with no such acceptance yet. needs_attention: on but blocked, or no provider can vouch for it right now.'
                    enum:
                        - working
                        - not_proven
                        - needs_attention
            description: One live MCP server whose identity chaining binding for the service has been turned on.
            required:
                - id
                - name
                - slug
                - project_id
                - project_slug
                - project_name
                - status
        EmployeeDataFlowEdge:
            type: object
            properties:
                call_count:
                    type: integer
                    description: Total calls represented by this edge
                    format: int64
                failure_count:
                    type: integer
                    description: Failed or blocked calls represented by this edge
                    format: int64
                id:
                    type: string
                    description: Stable edge ID
                source:
                    type: string
                    description: Source node ID
                success_count:
                    type: integer
                    description: Successful calls represented by this edge
                    format: int64
                target:
                    type: string
                    description: Target node ID
            description: A weighted edge in the employee data flow graph
            required:
                - id
                - source
                - target
                - call_count
                - success_count
                - failure_count
        EmployeeDataFlowNode:
            type: object
            properties:
                id:
                    type: string
                    description: Stable node ID
                label:
                    type: string
                    description: Display label
                server_class:
                    type: string
                    description: Server classification, present for MCP server nodes
                    enum:
                        - gram
                        - external
                        - local
                tier:
                    type: string
                    description: Graph tier. Origin nodes identify the hostname or client context that started the call, not the MCP server URL.
                    enum:
                        - origin
                        - client
                        - server
                        - tool
                total_calls:
                    type: integer
                    description: Total calls involving this node
                    format: int64
            description: A node in the employee data flow graph
            required:
                - id
                - tier
                - label
                - total_calls
        EnableOpenRouterKeyRequestBody:
            type: object
            properties:
                key_type:
                    type: string
                    description: Key type to enable.
                    enum:
                        - chat
                        - internal
                organization_id:
                    type: string
                    description: Organization that owns the key.
            required:
                - organization_id
                - key_type
        EnableOrganizationRequestBody:
            type: object
            properties:
                id:
                    type: string
                    description: Organization ID.
                    minLength: 1
            required:
                - id
        EnableUpstreamAuthEnforcementRequestBody:
            type: object
            properties:
                cross_organization_denial_communicated:
                    type: boolean
                    description: The organization was told that valid credentials from another organization are refused on its public servers once enforcement is on, instead of being served anonymously.
                organization_id:
                    type: string
                    description: The organization ID.
                shadow_parity_confirmed:
                    type: boolean
                    description: The caller checked the organization's mandatory authorization shadow (mcp.authz.mandatory_shadow) and found no unexplained new denial.
            required:
                - organization_id
                - shadow_parity_confirmed
                - cross_organization_denial_communicated
        EnsureServerReviewRequestBody:
            type: object
            properties:
                target:
                    type: string
                    description: The server URL the dossier describes.
                    maxLength: 2048
            required:
                - target
        Environment:
            type: object
            properties:
                created_at:
                    type: string
                    description: The creation date of the environment
                    format: date-time
                description:
                    type: string
                    description: The description of the environment
                entries:
                    type: array
                    items:
                        $ref: '#/components/schemas/EnvironmentEntry'
                    description: List of environment entries
                id:
                    type: string
                    description: The ID of the environment
                name:
                    type: string
                    description: The name of the environment
                organization_id:
                    type: string
                    description: The organization ID this environment belongs to
                project_id:
                    type: string
                    description: The project ID this environment belongs to
                slug:
                    type: string
                    description: A short url-friendly label that uniquely identifies a resource.
                    pattern: ^[a-z0-9_-]{1,128}$
                    maxLength: 40
                updated_at:
                    type: string
                    description: When the environment was last updated
                    format: date-time
            description: Model representing an environment
            required:
                - id
                - organization_id
                - project_id
                - name
                - slug
                - entries
                - created_at
                - updated_at
        EnvironmentEntry:
            type: object
            properties:
                created_at:
                    type: string
                    description: The creation date of the environment entry
                    format: date-time
                is_secret:
                    type: boolean
                    description: Whether the value is a secret. Secret values are redacted in reads; non-secret values are returned in cleartext.
                name:
                    type: string
                    description: The name of the environment variable
                updated_at:
                    type: string
                    description: When the environment entry was last updated
                    format: date-time
                value:
                    type: string
                    description: The value of the environment variable. Cleartext when is_secret is false, redacted otherwise.
            description: A single environment entry
            required:
                - name
                - value
                - is_secret
                - created_at
                - updated_at
        EnvironmentEntryInput:
            type: object
            properties:
                is_secret:
                    type: boolean
                    description: Whether the value is a secret. Secret values are encrypted at rest and redacted in reads; non-secret values are readable after save. When omitted, new entries default to secret and existing entries keep their current secrecy.
                name:
                    type: string
                    description: The name of the environment variable
                value:
                    type: string
                    description: The value of the environment variable. Omit on an existing secret entry to preserve its stored value. Required when creating an entry or when changing is_secret from true to false.
            description: A single environment entry
            required:
                - name
        Error:
            type: object
            properties:
                fault:
                    type: boolean
                    description: Is the error a server-side fault?
                id:
                    type: string
                    description: ID is a unique identifier for this particular occurrence of the problem.
                    example: 123abc
                message:
                    type: string
                    description: Message is a human-readable explanation specific to this occurrence of the problem.
                    example: parameter 'p' must be an integer
                name:
                    type: string
                    description: Name is the name of this class of errors.
                    example: bad_request
                temporary:
                    type: boolean
                    description: Is the error temporary?
                timeout:
                    type: boolean
                    description: Is the error a timeout?
            description: unauthorized access
            required:
                - name
                - id
                - message
                - temporary
                - timeout
                - fault
        EvaluateOpenAPIv3Form:
            type: object
            properties:
                asset_id:
                    type: string
                    description: The ID of the uploaded OpenAPI document asset to evaluate.
                name:
                    type: string
                    description: The display name of the source. Defaults to the deployed name or the slug.
                slug:
                    type: string
                    description: The slug of the OpenAPI source the document will replace. A slug that is not in the active deployment is evaluated as a new source.
            required:
                - asset_id
                - slug
        EvaluatePromptGuardrailRequestBody:
            type: object
            properties:
                chat_id:
                    type: string
                    description: The chat session to replay the guardrail against.
                    format: uuid
                message_types:
                    type: array
                    items:
                        type: string
                    description: Message types to judge (user_message, assistant_message, tool_request, tool_response, prompt_attachment), matching a policy's message_types. When empty or omitted, judges all supported types.
                model_config:
                    $ref: '#/components/schemas/RiskPolicyModelConfig'
                prompt:
                    type: string
                    description: The guardrail prompt the LLM judge evaluates each in-scope message against.
                    minLength: 1
                    maxLength: 10000
                scope_exempt:
                    type: string
                    description: 'CEL exemption predicate: the replay skips a message when this boolean expression is true. Omit/empty means no inline exemption.'
                scope_include:
                    type: string
                    description: 'CEL scope predicate: the replay judges a message only when this boolean expression is true (in addition to message_types). Omit/empty means all messages are in scope.'
            required:
                - chat_id
                - prompt
        EventLogEntry:
            type: object
            properties:
                attributes:
                    description: Signal attributes as a JSON object
                body_preview:
                    type: string
                    description: Log body truncated to 200 characters; empty for spans
                kind:
                    type: string
                    description: Signal kind
                    enum:
                        - log
                        - span
                name:
                    type: string
                    description: Event name for logs, span name for spans
                project_id:
                    type: string
                    description: Project the event was recorded under
                resource_attributes:
                    description: Resource attributes as a JSON object
                source:
                    type: string
                    description: Canonicalized source derived from the resource service name
                span_id:
                    type: string
                    description: W3C span ID
                time_unix_nano:
                    type: string
                    description: Event time in Unix nanoseconds (string for JS int64 precision)
                trace_id:
                    type: string
                    description: W3C trace ID
            description: A single ingested OpenTelemetry signal (log record or span) in the event feed
            required:
                - time_unix_nano
                - kind
                - source
                - name
                - body_preview
                - trace_id
                - span_id
                - project_id
                - attributes
                - resource_attributes
        EventVolumeBucket:
            type: object
            properties:
                bucket_time_unix_nano:
                    type: string
                    description: Bucket start in Unix nanoseconds (string for JS int64 precision)
                log_count:
                    type: integer
                    description: Log records in this bucket
                    format: int64
                span_count:
                    type: integer
                    description: Spans in this bucket
                    format: int64
            description: One event volume bucket
            required:
                - bucket_time_unix_nano
                - log_count
                - span_count
        EvidenceAdvisoryChange:
            type: object
            properties:
                id:
                    type: string
                    description: The advisory identifier.
                severity:
                    type: string
                    description: The advisory's severity, when the database published one.
                summary:
                    type: string
                    description: The advisory's summary, when the database published one.
            description: A published advisory the decision's snapshot did not carry.
            required:
                - id
        EvidenceDiff:
            type: object
            properties:
                advisories_added:
                    type: array
                    items:
                        $ref: '#/components/schemas/EvidenceAdvisoryChange'
                    description: Advisories in the current gather's most-recent sample that the snapshot's sample did not carry.
                changed:
                    type: boolean
                    description: Whether anything below is non-empty.
                fields:
                    type: array
                    items:
                        $ref: '#/components/schemas/EvidenceFieldChange'
                    description: 'Scalar drifts: authority mode, dynamic client registration, published-advisory count.'
                scopes_added:
                    type: array
                    items:
                        type: string
                    description: OAuth scopes the server's published authority metadata gained since the decision.
                scopes_removed:
                    type: array
                    items:
                        type: string
                    description: OAuth scopes the published authority metadata lost since the decision.
                secrets_added:
                    type: array
                    items:
                        type: string
                    description: Credentials the server now demands that it did not at decision time.
                secrets_removed:
                    type: array
                    items:
                        type: string
                    description: Credentials the server demanded at decision time and no longer does.
            description: 'What moved between the latest decision''s evidence snapshot and the current gather, restricted to the permission-relevant slice: OAuth scopes, authority mode, demanded credentials, and published advisories. A change here is a re-review trigger, never a verdict — an unchanged published interface says nothing about unchanged behavior.'
            required:
                - changed
        EvidenceFieldChange:
            type: object
            properties:
                after:
                    type: string
                    description: The value the latest gather found.
                before:
                    type: string
                    description: The value the decision rested on.
                field:
                    type: string
                    description: 'Which fact moved: authority_mode, dynamic_registration, or known_advisories.'
            description: One scalar drift between the decision's evidence snapshot and the current gather.
            required:
                - field
                - before
                - after
        EvolveForm:
            type: object
            properties:
                deployment_id:
                    type: string
                    description: The ID of the deployment to evolve. If omitted, the latest deployment will be used.
                exclude_external_mcps:
                    type: array
                    items:
                        type: string
                    description: 'Has no effect: new deployments never include external MCP servers. Accepted so existing callers keep working.'
                exclude_functions:
                    type: array
                    items:
                        type: string
                    description: The functions, identified by slug, to exclude from the new deployment when cloning a previous deployment.
                exclude_openapiv3_assets:
                    type: array
                    items:
                        type: string
                    description: The OpenAPI 3.x documents, identified by slug, to exclude from the new deployment when cloning a previous deployment.
                exclude_packages:
                    type: array
                    items:
                        type: string
                    description: The packages to exclude from the new deployment when cloning a previous deployment.
                non_blocking:
                    type: boolean
                    description: If true, the deployment will be created in non-blocking mode where the request will return immediately and the deployment will proceed asynchronously.
                    example: false
                upsert_functions:
                    type: array
                    items:
                        $ref: '#/components/schemas/AddFunctionsForm'
                    description: The tool functions to upsert in the new deployment.
                upsert_openapiv3_assets:
                    type: array
                    items:
                        $ref: '#/components/schemas/AddOpenAPIv3DeploymentAssetForm'
                    description: The OpenAPI 3.x documents to upsert in the new deployment.
                upsert_packages:
                    type: array
                    items:
                        $ref: '#/components/schemas/AddPackageForm'
                    description: The packages to upsert in the new deployment.
        EvolveResult:
            type: object
            properties:
                deployment:
                    $ref: '#/components/schemas/Deployment'
        ExchangeRequestBody:
            type: object
            properties:
                email:
                    type: string
                    description: Email address of the enrolled user to mint a per-user key for. Resolved to a user within the authenticated org.
                    example: dev@acme.corp
            required:
                - email
        ExecutionProfileOption:
            type: object
            properties:
                auth_client_id:
                    type: string
                    description: The auth client.
                    format: uuid
                client_type:
                    type: string
                    description: The auth client's type.
                name:
                    type: string
                    description: The auth client's name.
            description: A credential a server offers that the profile's turns can use.
            required:
                - auth_client_id
                - name
                - client_type
        ExecutionProfileServer:
            type: object
            properties:
                auth_client_id:
                    type: string
                    description: The chosen auth client. Absent with a choice means no upstream authentication.
                    format: uuid
                chosen:
                    type: boolean
                    description: Whether the server has a choice.
                gap_reason:
                    type: string
                    description: Why a server without a choice gets none on its own.
                    enum:
                        - selection_required
                        - personal_requires_user
                        - no_client
                        - setup_incomplete
                mcp_server_id:
                    type: string
                    description: The MCP server.
                    format: uuid
                no_auth_allowed:
                    type: boolean
                    description: Whether the server offers no enabled auth client and has no upstream credentials left to record as one, so no-auth can be chosen.
                options:
                    type: array
                    items:
                        $ref: '#/components/schemas/ExecutionProfileOption'
                    description: The credentials that can be chosen.
                source:
                    enum:
                        - admin
                        - issuance
                        - backfill
                        - automatic
                    type: string
                    x-speakeasy-name-override: ExecutionProfileChoiceSource
            description: One MCP server an assistant's turns reach through Speakeasy.
            required:
                - mcp_server_id
                - chosen
                - options
                - no_auth_allowed
        ExplainResourceAccessResult:
            type: object
            properties:
                levels:
                    type: array
                    items:
                        $ref: '#/components/schemas/ExplainedAccessLevel'
                    description: The decision for use, view and manage, in that order.
                visibility:
                    type: string
                    description: 'Who may connect without a rule. public: connecting is not checked against rules. private: rules decide. disabled: nobody can connect.'
                    enum:
                        - public
                        - private
                        - disabled
            required:
                - visibility
                - levels
        ExplainedAccessDirectorySource:
            type: object
            properties:
                attribute_key:
                    type: string
                    description: The directory attribute, for an attribute mapping.
                attribute_value:
                    type: string
                    description: The attribute value the member's profile matched, for an attribute mapping.
                directory_group_name:
                    type: string
                    description: The directory group, for a group mapping.
                source_kind:
                    type: string
                    description: Whether membership of a directory group or a directory attribute value mapped the role.
                    enum:
                        - group
                        - attribute
            required:
                - source_kind
        ExplainedAccessLevel:
            type: object
            properties:
                allowed:
                    type: boolean
                    description: Whether the rules give the member this access.
                level:
                    type: string
                    description: The access being explained.
                    enum:
                        - use
                        - view
                        - manage
                rules:
                    type: array
                    items:
                        $ref: '#/components/schemas/ExplainedAccessRule'
                    description: Every rule matching this access, deciding rules first.
                tool_access:
                    type: string
                    description: 'For use: whether every tool, only some, or none are reachable.'
                    enum:
                        - all
                        - some
                        - none
            required:
                - level
                - allowed
                - rules
        ExplainedAccessRule:
            type: object
            properties:
                applies_to:
                    type: string
                    description: Whether the rule names this resource, every resource in its project, or every resource of its kind.
                    enum:
                        - resource
                        - project
                        - all_resources
                directory_sources:
                    type: array
                    items:
                        $ref: '#/components/schemas/ExplainedAccessDirectorySource'
                    description: The directory role mappings giving the member this role, including when they also hold it directly. Returned only to organization administrators, because attribute values can carry personal data.
                display_name:
                    type: string
                    description: Human-readable name for the principal.
                dispositions:
                    type: array
                    items:
                        type: string
                        enum:
                            - read_only
                            - destructive
                            - idempotent
                            - open_world
                    description: Tool annotations the rule is narrowed to, when it is not the whole resource.
                effect:
                    type: string
                    description: 'How the rule shaped the decision. allows: proves the access. overrides: a rule made directly to the member that proves the access despite a block from a role or everyone. overridden: a block such a rule overrides. blocks: takes the access away. blocked: an allow that matches but that a block keeps from counting. limits: a block taking away some of the resource''s tools.'
                    enum:
                        - allows
                        - overrides
                        - overridden
                        - blocks
                        - blocked
                        - limits
                kind:
                    type: string
                    description: What the principal identifies.
                    enum:
                        - everyone
                        - role
                        - user
                        - unknown
                level:
                    type: string
                    description: The access the rule gives, or the access a "blocked_" rule takes away. "all" is a grant covering every permission.
                    enum:
                        - use
                        - view
                        - manage
                        - blocked
                        - blocked_view
                        - blocked_manage
                        - all
                principal_urn:
                    type: string
                    description: Canonical principal URN holding the rule.
                reason:
                    type: string
                    description: 'Why a blocked rule made directly to the member did not override the block. wildcard_direct_grant: it covers every resource. narrower_direct_grant: it constrains something the tool does not carry. own_exclusion: the member''s own block applies.'
                    enum:
                        - wildcard_direct_grant
                        - narrower_direct_grant
                        - own_exclusion
                tools:
                    type: array
                    items:
                        type: string
                    description: Tool names the rule is narrowed to, when it is not the whole resource.
                via_directory_mapping:
                    type: boolean
                    description: Whether the member holds this role only through a directory role mapping.
            required:
                - principal_urn
                - kind
                - display_name
                - level
                - applies_to
                - effect
                - via_directory_mapping
        ExportMcpMetadataRequestBody:
            type: object
            properties:
                mcp_server_id:
                    type: string
                    description: The ID of a toolset-backed MCP server. Mutually exclusive with mcp_slug.
                    format: uuid
                mcp_slug:
                    type: string
                    description: The MCP server slug (from the install URL). Mutually exclusive with mcp_server_id.
                    pattern: ^[a-z0-9_-]{1,128}$
                    maxLength: 40
        ExprCompileResult:
            type: object
            properties:
                error:
                    type: string
                    description: Compiler error message when ok is false; empty otherwise.
                ok:
                    type: boolean
                    description: True when the expression compiled successfully.
            description: The result of compiling a single CEL expression for the editor.
            required:
                - ok
                - error
        ExtendAgentKeyGrantForm:
            type: object
            properties:
                effect:
                    type: string
                    description: Grant effect
                    enum:
                        - allow
                scope:
                    type: string
                    description: The grant's scope
                    enum:
                        - mcp:connect
                selector:
                    $ref: '#/components/schemas/AgentPolicySelector'
            description: A server grant an agent key gains. Anything broader is a new delegation, made by issuing a key.
            required:
                - scope
                - effect
                - selector
        ExtendAgentKeysForm:
            type: object
            properties:
                agent_id:
                    type: string
                    description: The agent whose keys gain the grants
                    format: uuid
                auth_client_choices:
                    type: array
                    items:
                        $ref: '#/components/schemas/AgentKeyAuthClientChoice'
                    description: The upstream credential each key uses on the servers it gains, checked as at issuance. Recorded only on keys that gain that server.
                    maxItems: 100
                requested_grants:
                    type: array
                    items:
                        $ref: '#/components/schemas/ExtendAgentKeyGrantForm'
                    description: Server grants to add to each key
                    minItems: 1
                    maxItems: 100
            required:
                - agent_id
                - requested_grants
        ExtendTrialRequestBody:
            type: object
            properties:
                days:
                    type: integer
                    description: Number of days to add to the trial's current end date.
                    format: int64
                    minimum: 1
                    maximum: 365
                id:
                    type: string
                    description: Organization ID.
                    minLength: 1
            required:
                - id
                - days
        ExternalCredentialSummary:
            type: object
            properties:
                created_at:
                    type: string
                    description: When the credential was created.
                    format: date-time
                id:
                    type: string
                    description: The ID of the external credential.
                    format: uuid
                name:
                    type: string
                    description: A human-readable name for the credential.
                organization_id:
                    type: string
                    description: The organization that owns the credential.
                provider:
                    type: string
                    description: The cloud provider of the credential.
                    enum:
                        - aws_iam
                        - gcp_iam
                updated_at:
                    type: string
                    description: When the credential was last updated.
                    format: date-time
            description: Provider-independent summary of an external credential.
            required:
                - id
                - organization_id
                - provider
                - name
                - created_at
                - updated_at
        ExternalKeySummary:
            type: object
            properties:
                algorithm:
                    type: string
                    description: The signing algorithm of the key.
                    enum:
                        - RS256
                        - ES256
                created_at:
                    type: string
                    description: When the key was created.
                    format: date-time
                customer_grant_reference:
                    type: string
                    description: The Speakeasy identity (GCP service-account email or AWS principal ARN) the customer granted on the key for the key-policy / IAM-grant model. Not a secret.
                external_credential_id:
                    type: string
                    description: The external credential Speakeasy uses to authenticate to the key.
                    format: uuid
                id:
                    type: string
                    description: The ID of the external key.
                    format: uuid
                name:
                    type: string
                    description: A human-readable name for the key.
                organization_id:
                    type: string
                    description: The organization that owns the key.
                provider:
                    type: string
                    description: The cloud KMS provider of the key.
                    enum:
                        - aws_kms
                        - gcp_kms
                updated_at:
                    type: string
                    description: When the key was last updated.
                    format: date-time
            description: Provider-independent summary of an external key.
            required:
                - id
                - organization_id
                - external_credential_id
                - provider
                - algorithm
                - name
                - created_at
                - updated_at
        ExternalMCPHeaderDefinition:
            type: object
            properties:
                description:
                    type: string
                    description: Description of the header
                header_name:
                    type: string
                    description: The actual HTTP header name to send (e.g., X-Api-Key)
                name:
                    type: string
                    description: The prefixed environment variable name (e.g., SLACK_X_API_KEY)
                placeholder:
                    type: string
                    description: Placeholder value for the header
                required:
                    type: boolean
                    description: Whether the header is required
                secret:
                    type: boolean
                    description: Whether the header value is secret
            required:
                - name
                - header_name
                - required
                - secret
        ExternalMCPPackage:
            type: object
            properties:
                environment_variables:
                    type: array
                    items:
                        $ref: '#/components/schemas/ExternalMCPPackageEnvironmentVariable'
                    description: Environment variables the package asks an install to supply. What a server demands — a required secret named here is an approval signal in its own right.
                file_sha256:
                    type: string
                    description: SHA-256 of the packaged artifact, when the registry publishes one
                identifier:
                    type: string
                    description: Package identifier, scope included
                registry_base_url:
                    type: string
                    description: Registry base URL when the package lives outside the default public registry
                    format: uri
                registry_type:
                    type: string
                    description: Package registry the artifact is published to, such as npm or pypi
                runtime_hint:
                    type: string
                    description: Launcher the publisher suggests, such as npx or uvx
                transport_type:
                    type: string
                    description: Execution transport the package declares, such as stdio
                version:
                    type: string
                    description: Published version
            description: A published package that runs this server, as declared by the registry
            required:
                - registry_type
                - identifier
                - version
        ExternalMCPPackageEnvironmentVariable:
            type: object
            properties:
                description:
                    type: string
                    description: The publisher's explanation of the variable. Untrusted text.
                is_required:
                    type: boolean
                    description: Whether an install cannot proceed without it
                is_secret:
                    type: boolean
                    description: Whether the publisher marked the value sensitive
                name:
                    type: string
                    description: Variable name the install must populate
            description: An environment variable a package declares its install requires
            required:
                - name
                - is_secret
                - is_required
        ExternalMCPRemote:
            type: object
            properties:
                headers:
                    type: array
                    items:
                        $ref: '#/components/schemas/ExternalMCPRemoteHeader'
                    description: HTTP headers the MCP client should collect and send when connecting to this remote
                transport_type:
                    type: string
                    description: Transport type (sse or streamable-http)
                    enum:
                        - sse
                        - streamable-http
                url:
                    type: string
                    description: URL of the remote endpoint
                    format: uri
                variables:
                    type: object
                    description: URL template variables for this remote endpoint
                    additionalProperties:
                        $ref: '#/components/schemas/ExternalMCPRemoteVariable'
            description: A remote endpoint for an MCP server
            required:
                - url
                - transport_type
        ExternalMCPRemoteHeader:
            type: object
            properties:
                description:
                    type: string
                    description: Description of the header
                is_required:
                    type: boolean
                    description: Whether this header is required
                is_secret:
                    type: boolean
                    description: Whether this header value should be treated as secret
                name:
                    type: string
                    description: Header name
                placeholder:
                    type: string
                    description: Placeholder value to show when collecting this header
            description: A header requirement for a remote MCP server
            required:
                - name
        ExternalMCPRemoteVariable:
            type: object
            properties:
                choices:
                    type: array
                    items:
                        type: string
                    description: Allowed values for the variable
                default:
                    type: string
                    description: Default value for the variable
                description:
                    type: string
                    description: Description of the variable
                is_required:
                    type: boolean
                    description: Whether this variable is required
                is_secret:
                    type: boolean
                    description: Whether this variable value should be treated as secret
            description: A URL template variable for a remote MCP server
        ExternalMCPRepository:
            type: object
            properties:
                source:
                    type: string
                    description: Hosting service the repository lives on, such as github
                subfolder:
                    type: string
                    description: Path within the repository holding the server, for monorepos
                url:
                    type: string
                    description: Repository URL
                    format: uri
            description: 'The source repository a registry entry links for its server. A registry declaration: nothing verifies the endpoint runs this code.'
            required:
                - url
        ExternalMCPServer:
            type: object
            properties:
                description:
                    type: string
                    description: Description of what the server does
                icon_url:
                    type: string
                    description: URL to the server's icon
                    format: uri
                mcp_server_id:
                    type: string
                    description: ID of the attached MCP server backing this server
                    format: uuid
                meta:
                    description: Opaque metadata from the registry
                registry_id:
                    type: string
                    description: ID of the external MCP registry this server came from
                    format: uuid
                registry_specifier:
                    type: string
                    description: Server specifier used to look up in the registry (e.g., 'io.github.user/server')
                    example: io.modelcontextprotocol.anonymous/exa
                remotes:
                    type: array
                    items:
                        $ref: '#/components/schemas/ExternalMCPRemote'
                    description: Available remote endpoints for the server
                title:
                    type: string
                    description: Display name for the server
                tools:
                    type: array
                    items:
                        $ref: '#/components/schemas/ExternalMCPTool'
                    description: Tools available on the server
                toolset_id:
                    type: string
                    description: ID of the attached toolset backing this server
                    format: uuid
                version:
                    type: string
                    description: Semantic version of the server
                    example: 1.0.0
            description: An MCP server from an external registry
            required:
                - registry_specifier
                - version
                - description
        ExternalMCPServerEntry:
            type: object
            properties:
                auth_setup:
                    type: string
                    description: Advertised authentication setup; unknown means evidence is insufficient, not that manual setup is required.
                    enum:
                        - none
                        - dcr
                        - cimd
                        - manual
                        - unknown
                description:
                    type: string
                    description: Description of what the server does
                icon_url:
                    type: string
                    description: URL to the server's icon
                    format: uri
                is_read_only:
                    type: boolean
                    description: Whether every declared tool is read-only, when catalog evidence is available
                mcp_server_id:
                    type: string
                    description: ID of the attached MCP server backing this server
                    format: uuid
                meta:
                    description: Opaque metadata from the registry
                packages:
                    type: array
                    items:
                        $ref: '#/components/schemas/ExternalMCPPackage'
                    description: Published packages that run this server, when the registry declares any
                registry_id:
                    type: string
                    description: ID of the external MCP registry this server came from
                    format: uuid
                registry_specifier:
                    type: string
                    description: Server specifier used to look up in the registry (e.g., 'io.github.user/server')
                    example: io.modelcontextprotocol.anonymous/exa
                remotes:
                    type: array
                    items:
                        $ref: '#/components/schemas/ExternalMCPRemote'
                    description: Available remote endpoints for the server
                repository:
                    $ref: '#/components/schemas/ExternalMCPRepository'
                supports_cimd:
                    type: boolean
                    description: Whether issuer metadata advertises compatible Client ID Metadata Document support.
                supports_dcr:
                    type: boolean
                    description: Whether the server's OAuth authorization server advertises a dynamic client registration endpoint (RFC 7591). False alone does not establish that manual setup is required.
                title:
                    type: string
                    description: Display name for the server
                tool_count:
                    type: integer
                    description: Number of declared tools, when catalog evidence is available
                    format: int64
                toolset_id:
                    type: string
                    description: ID of the attached toolset backing this server
                    format: uuid
                version:
                    type: string
                    description: Semantic version of the server
                    example: 1.0.0
            description: A summary of an MCP server from an external registry, returned by catalog listings
            required:
                - registry_specifier
                - version
                - description
                - supports_dcr
        ExternalMCPTool:
            type: object
            properties:
                annotations:
                    description: Annotations for the tool
                description:
                    type: string
                    description: Description of the tool
                input_schema:
                    description: Input schema for the tool
                name:
                    type: string
                    description: Name of the tool
        ExternalMCPToolDefinition:
            type: object
            properties:
                annotations:
                    $ref: '#/components/schemas/ToolAnnotations'
                canonical:
                    $ref: '#/components/schemas/CanonicalToolAttributes'
                canonical_name:
                    type: string
                    description: The canonical name of the tool. Will be the same as the name if there is no variation.
                confirm:
                    type: string
                    description: Confirmation mode for the tool
                confirm_prompt:
                    type: string
                    description: Prompt for the confirmation
                created_at:
                    type: string
                    description: The creation date of the tool.
                    format: date-time
                deployment_external_mcp_id:
                    type: string
                    description: The ID of the deployments_external_mcps record
                deployment_id:
                    type: string
                    description: The ID of the deployment
                description:
                    type: string
                    description: Description of the tool
                id:
                    type: string
                    description: The ID of the tool
                name:
                    type: string
                    description: The name of the tool
                oauth_authorization_endpoint:
                    type: string
                    description: The OAuth authorization endpoint URL
                oauth_registration_endpoint:
                    type: string
                    description: The OAuth dynamic client registration endpoint URL
                oauth_scopes_supported:
                    type: array
                    items:
                        type: string
                    description: The OAuth scopes supported by the server
                oauth_token_endpoint:
                    type: string
                    description: The OAuth token endpoint URL
                oauth_version:
                    type: string
                    description: 'OAuth version: ''2.1'' (MCP OAuth), ''2.0'' (legacy), or ''none'''
                project_id:
                    type: string
                    description: The ID of the project
                registry_id:
                    type: string
                    description: The ID of the MCP registry
                registry_server_name:
                    type: string
                    description: The name of the external MCP server (e.g., exa)
                registry_specifier:
                    type: string
                    description: The specifier of the external MCP server (e.g., 'io.modelcontextprotocol.anonymous/exa')
                remote_url:
                    type: string
                    description: The URL to connect to the MCP server
                requires_oauth:
                    type: boolean
                    description: Whether the external MCP server requires OAuth authentication
                schema:
                    type: string
                    description: JSON schema for the request
                schema_version:
                    type: string
                    description: Version of the schema
                slug:
                    type: string
                    description: The slug used for tool prefixing (e.g., github)
                summarizer:
                    type: string
                    description: Summarizer for the tool
                tool_urn:
                    type: string
                    description: The URN of this tool
                transport_type:
                    type: string
                    description: The transport type used to connect to the MCP server
                    enum:
                        - streamable-http
                        - sse
                type:
                    type: string
                    description: Whether or not the tool is a proxy tool
                updated_at:
                    type: string
                    description: The last update date of the tool.
                    format: date-time
                variation:
                    $ref: '#/components/schemas/ToolVariation'
            description: A proxy tool that references an external MCP server
            required:
                - deployment_external_mcp_id
                - deployment_id
                - registry_specifier
                - registry_server_name
                - registry_id
                - slug
                - remote_url
                - transport_type
                - requires_oauth
                - oauth_version
                - created_at
                - updated_at
                - id
                - project_id
                - name
                - canonical_name
                - description
                - schema
                - tool_urn
        ExternalOAuthServer:
            type: object
            properties:
                authorization_server_issuer:
                    type: string
                    description: The exact HTTPS issuer clients use for provider-hosted RFC 8414 discovery. Exactly one of authorization_server_issuer and metadata is present; changing modes may require clients to register or authenticate again.
                    format: uri
                    maxLength: 500
                created_at:
                    type: string
                    description: When the external OAuth server was created.
                    format: date-time
                id:
                    type: string
                    description: The ID of the external OAuth server
                metadata:
                    description: The validated RFC 8414 metadata Speakeasy hosts in compatibility mode. Exactly one of metadata and authorization_server_issuer is present.
                project_id:
                    type: string
                    description: The project ID this external OAuth server belongs to
                slug:
                    type: string
                    description: A short url-friendly label that uniquely identifies a resource.
                    pattern: ^[a-z0-9_-]{1,128}$
                    maxLength: 40
                updated_at:
                    type: string
                    description: When the external OAuth server was last updated.
                    format: date-time
            required:
                - id
                - project_id
                - slug
                - created_at
                - updated_at
        ExternalOAuthServerForm:
            type: object
            properties:
                authorization_server_issuer:
                    type: string
                    description: Exact HTTPS issuer for provider-hosted RFC 8414 discovery. Speakeasy fetches and strictly verifies this issuer before persistence. Supply exactly one of authorization_server_issuer and metadata.
                    format: uri
                    pattern: ^https://
                    maxLength: 500
                metadata:
                    description: JSON object metadata for Speakeasy-hosted compatibility mode. Supply exactly one of metadata and authorization_server_issuer.
                slug:
                    type: string
                    description: A short url-friendly label that uniquely identifies a resource.
                    pattern: ^[a-z0-9_-]{1,128}$
                    maxLength: 40
        FetchImageFromURLForm:
            type: object
            properties:
                apikey_token:
                    type: string
                project_slug_input:
                    type: string
                session_token:
                    type: string
                url:
                    type: string
                    description: The URL to fetch the image from
            required:
                - url
        FetchImageFromURLForm2:
            type: object
            properties:
                url:
                    type: string
                    description: The URL to fetch the image from
            required:
                - url
        FetchIssuerMetadataRequestBody:
            type: object
            properties:
                issuer:
                    type: string
                    description: Issuer URL to fetch metadata for (e.g. https://login.linear.com).
            required:
                - issuer
        FetchOpenAPIv3FromURLForm:
            type: object
            properties:
                apikey_token:
                    type: string
                project_slug_input:
                    type: string
                session_token:
                    type: string
                url:
                    type: string
                    description: The URL to fetch the OpenAPI document from
            required:
                - url
        FetchOpenAPIv3FromURLForm2:
            type: object
            properties:
                url:
                    type: string
                    description: The URL to fetch the OpenAPI document from
            required:
                - url
        FilterOption:
            type: object
            properties:
                count:
                    type: integer
                    description: Number of events for this option
                    format: int64
                id:
                    type: string
                    description: Unique identifier for the option
                label:
                    type: string
                    description: Display label for the option
            description: A single filter option (API key or user)
            required:
                - id
                - label
                - count
        FleetCoverage:
            type: object
            properties:
                active_window_minutes:
                    type: integer
                    description: 'Freshness window: an agent counts as active when its heartbeat or state report is within this many minutes.'
                    format: int64
                agent_active:
                    type: integer
                    description: Devices with an agent heartbeat or state report within the window, agent-only machines included.
                    format: int64
                agent_active_device_attested:
                    type: integer
                    description: How many of agent_active are backed by that machine's own heartbeat or state report.
                    format: int64
                agent_only_devices:
                    type: integer
                    description: Machines running the agent that no connected MDM inventory holds. Always 0 when provider is set.
                    format: int64
                agent_other_device:
                    type: integer
                    description: MDM devices whose assigned user runs the agent, but not on this machine. Device-level matching only.
                    format: int64
                agent_stale:
                    type: integer
                    description: Devices with a known agent that went quiet.
                    format: int64
                attestation:
                    type: string
                    description: 'The strongest claim that holds for EVERY active device in this response — not merely the org''s matching mode. "device": every active device was matched on its own hardware serial, so each one ran the agent. "user": at least one active device was matched only on its assigned-user email, so the set as a whole supports only the weaker claim that assigned users ran the agent somewhere.'
                    enum:
                        - device
                        - user
                enforcement_halted:
                    type: integer
                    description: agent_active devices whose latest state report says the kill switch halted enforcement.
                    format: int64
                mdm_connected:
                    type: boolean
                    description: True when the organization has a connected MDM integration (the one named by provider, when set). Without one, the gap buckets are always 0 because nothing lists the devices that lack the agent.
                missing:
                    type: integer
                    description: MDM devices absent from the latest completed inventory snapshot.
                    format: int64
                no_agent:
                    type: integer
                    description: MDM devices whose assigned email resolves to an org member with no agent at all.
                    format: int64
                no_email:
                    type: integer
                    description: MDM devices with no assigned-user email.
                    format: int64
                organization_id:
                    type: string
                    description: Organization the coverage describes.
                policy_attested:
                    type: integer
                    description: agent_active devices whose latest report applies the policy last served to the reporting user.
                    format: int64
                policy_outdated:
                    type: integer
                    description: agent_active devices that report a different policy, or none.
                    format: int64
                policy_unreported:
                    type: integer
                    description: agent_active devices with no state report within the window.
                    format: int64
                total_devices:
                    type: integer
                    description: Every device counted here, missing and agent-only ones included.
                    format: int64
                unresolved_email:
                    type: integer
                    description: MDM devices whose assigned email matches neither an agent user nor an org member.
                    format: int64
            description: 'Agent coverage and policy enforcement across every device the organization can see: its MDM inventories plus the agent machines no inventory holds. Works with no MDM connected, when every device is an agent-only machine.'
            required:
                - organization_id
                - active_window_minutes
                - mdm_connected
                - attestation
                - agent_active
                - agent_active_device_attested
                - agent_stale
                - agent_other_device
                - no_agent
                - no_email
                - unresolved_email
                - missing
                - agent_only_devices
                - total_devices
                - policy_attested
                - policy_outdated
                - policy_unreported
                - enforcement_halted
        FleetDevice:
            type: object
            properties:
                agent_last_seen_at:
                    type: string
                    description: The latest sign of life that classified this device, a policy poll or a state report. Omitted when no agent has ever synced.
                    format: date-time
                agent_state:
                    $ref: '#/components/schemas/ManagedDeviceAgentState'
                coverage_bucket:
                    type: string
                    description: Coverage classification for the device. What agent_active attests depends on the org's matching mode and on whether this device matched by serial or by assigned-user email.
                    enum:
                        - agent_active
                        - agent_stale
                        - agent_other_device
                        - no_agent
                        - no_email
                        - unresolved_email
                        - missing
                external_id:
                    type: string
                    description: The MDM's identifier for the device. Omitted for an agent-only machine.
                first_seen_at:
                    type: string
                    description: When the MDM or the agent first reported this device.
                    format: date-time
                hostname:
                    type: string
                    description: Device hostname, from the MDM or the agent.
                id:
                    type: string
                    description: 'Stable device ID: mdm:<uuid> for an MDM device, agent:<uuid> for an agent-only machine.'
                in_inventory:
                    type: boolean
                    description: True when a connected MDM's inventory holds this device. False for a machine only its agent reports.
                last_seen_at:
                    type: string
                    description: When the MDM or the agent last reported this device.
                    format: date-time
                mdm_last_check_in_at:
                    type: string
                    description: Last device check-in as reported by the MDM.
                    format: date-time
                missing_since:
                    type: string
                    description: When the device went absent from the MDM inventory. Omitted while present, and for an agent-only machine.
                    format: date-time
                os_name:
                    type: string
                    description: Operating system name as the MDM reports it. Omitted for an agent-only machine; agent_state.os carries the agent's.
                os_version:
                    type: string
                    description: Operating system version as the MDM reports it. Omitted for an agent-only machine.
                policy_state:
                    type: string
                    description: 'Whether the agent that answers for an agent_active device verifiably applies its policy; agent_state.attestation says whether that agent runs on this machine. attested: its latest report applies the policy last served to the reporting user. outdated: it reports a different policy, or none. unreported: no report within the window, from an agent that predates reporting or has stopped sending. halted: the reporting agent''s kill switch stopped enforcement on a blocked build. Omitted for every other bucket.'
                    enum:
                        - attested
                        - outdated
                        - unreported
                        - halted
                provider:
                    type: string
                    description: Provider the device was synced from. Omitted for an agent-only machine.
                serial_number:
                    type: string
                    description: Hardware serial number, from the MDM or the agent. Omitted when neither reported one.
                user_email:
                    type: string
                    description: The MDM's assigned user, or for an agent-only machine the user its agent runs as.
                user_id:
                    type: string
                    description: Resolved Speakeasy user for user_email. Omitted when it does not resolve to an org member.
            description: 'One device the organization can see: a device from a connected MDM''s inventory, or a machine running the Speakeasy device agent that no connected inventory holds. MDM devices carry the same coverage bucket as listManagedDevices; agent-only devices are only ever agent_active or agent_stale, classified by their own heartbeat and state reports.'
            required:
                - id
                - in_inventory
                - coverage_bucket
                - first_seen_at
                - last_seen_at
        FunctionEnvironmentVariable:
            type: object
            properties:
                auth_input_type:
                    type: string
                    description: Optional value of the function variable comes from a specific auth input
                description:
                    type: string
                    description: Description of the function environment variable
                name:
                    type: string
                    description: The environment variables
            required:
                - name
        FunctionResourceDefinition:
            type: object
            properties:
                created_at:
                    type: string
                    description: The creation date of the resource.
                    format: date-time
                deployment_id:
                    type: string
                    description: The ID of the deployment
                description:
                    type: string
                    description: Description of the resource
                function_id:
                    type: string
                    description: The ID of the function
                id:
                    type: string
                    description: The ID of the resource
                meta:
                    type: object
                    description: Meta tags for the tool
                    additionalProperties: true
                mime_type:
                    type: string
                    description: Optional MIME type of the resource
                name:
                    type: string
                    description: The name of the resource
                project_id:
                    type: string
                    description: The ID of the project
                resource_urn:
                    type: string
                    description: The URN of this resource
                runtime:
                    type: string
                    description: Runtime environment (e.g., nodejs:24, python:3.12)
                title:
                    type: string
                    description: Optional title for the resource
                updated_at:
                    type: string
                    description: The last update date of the resource.
                    format: date-time
                uri:
                    type: string
                    description: The URI of the resource
                variables:
                    description: Variables configuration for the resource
            description: A function resource
            required:
                - deployment_id
                - function_id
                - runtime
                - id
                - project_id
                - name
                - description
                - uri
                - resource_urn
                - created_at
                - updated_at
        FunctionToolDefinition:
            type: object
            properties:
                annotations:
                    $ref: '#/components/schemas/ToolAnnotations'
                asset_id:
                    type: string
                    description: The ID of the asset
                canonical:
                    $ref: '#/components/schemas/CanonicalToolAttributes'
                canonical_name:
                    type: string
                    description: The canonical name of the tool. Will be the same as the name if there is no variation.
                confirm:
                    type: string
                    description: Confirmation mode for the tool
                confirm_prompt:
                    type: string
                    description: Prompt for the confirmation
                created_at:
                    type: string
                    description: The creation date of the tool.
                    format: date-time
                deployment_id:
                    type: string
                    description: The ID of the deployment
                description:
                    type: string
                    description: Description of the tool
                function_id:
                    type: string
                    description: The ID of the function
                id:
                    type: string
                    description: The ID of the tool
                meta:
                    type: object
                    description: Meta tags for the tool
                    additionalProperties: true
                name:
                    type: string
                    description: The name of the tool
                project_id:
                    type: string
                    description: The ID of the project
                runtime:
                    type: string
                    description: Runtime environment (e.g., nodejs:24, python:3.12)
                schema:
                    type: string
                    description: JSON schema for the request
                schema_version:
                    type: string
                    description: Version of the schema
                summarizer:
                    type: string
                    description: Summarizer for the tool
                tags:
                    type: array
                    items:
                        type: string
                    description: The tags list for this function tool
                tool_urn:
                    type: string
                    description: The URN of this tool
                updated_at:
                    type: string
                    description: The last update date of the tool.
                    format: date-time
                variables:
                    description: Variables configuration for the function
                variation:
                    $ref: '#/components/schemas/ToolVariation'
            description: A function tool
            required:
                - deployment_id
                - asset_id
                - function_id
                - runtime
                - tags
                - id
                - project_id
                - name
                - canonical_name
                - description
                - schema
                - tool_urn
                - created_at
                - updated_at
        GatewaySessionFacet:
            type: object
            properties:
                label:
                    type: string
                value:
                    type: string
            required:
                - value
                - label
        GatewaySessionFacets:
            type: object
            properties:
                providers:
                    type: array
                    items:
                        $ref: '#/components/schemas/GatewaySessionFacet'
                servers:
                    type: array
                    items:
                        $ref: '#/components/schemas/GatewaySessionFacet'
            required:
                - servers
                - providers
        GatewaySessionsResult:
            type: object
            properties:
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/UserSession'
                next_cursor:
                    type: string
            required:
                - items
        GcpIamCredential:
            type: object
            properties:
                created_at:
                    type: string
                    description: When the credential was created.
                    format: date-time
                id:
                    type: string
                    description: The ID of the external credential.
                    format: uuid
                impersonate_service_account:
                    type: string
                    description: The service account Speakeasy impersonates (impersonation approach, or the WIF hop).
                name:
                    type: string
                    description: A human-readable name for the credential.
                organization_id:
                    type: string
                    description: The organization that owns the credential.
                provider:
                    type: string
                    description: The cloud provider of the credential.
                    enum:
                        - aws_iam
                        - gcp_iam
                updated_at:
                    type: string
                    description: When the credential was last updated.
                    format: date-time
                wif_pool_id:
                    type: string
                    description: Workload Identity Federation pool ID.
                wif_project_number:
                    type: string
                    description: GCP project number backing the WIF pool.
                wif_provider_id:
                    type: string
                    description: Workload Identity Federation provider ID.
            description: A GCP IAM external credential.
            required:
                - id
                - organization_id
                - provider
                - name
                - created_at
                - updated_at
        GcpKmsKey:
            type: object
            properties:
                algorithm:
                    type: string
                    description: The signing algorithm of the key.
                    enum:
                        - RS256
                        - ES256
                created_at:
                    type: string
                    description: When the key was created.
                    format: date-time
                customer_grant_reference:
                    type: string
                    description: The Speakeasy identity (GCP service-account email or AWS principal ARN) the customer granted on the key for the key-policy / IAM-grant model. Not a secret.
                external_credential_id:
                    type: string
                    description: The external credential Speakeasy uses to authenticate to the key.
                    format: uuid
                id:
                    type: string
                    description: The ID of the external key.
                    format: uuid
                name:
                    type: string
                    description: A human-readable name for the key.
                organization_id:
                    type: string
                    description: The organization that owns the key.
                provider:
                    type: string
                    description: The cloud KMS provider of the key.
                    enum:
                        - aws_kms
                        - gcp_kms
                resource_name:
                    type: string
                    description: The resource name of the GCP KMS key.
                updated_at:
                    type: string
                    description: When the key was last updated.
                    format: date-time
            description: A GCP KMS external key.
            required:
                - resource_name
                - id
                - organization_id
                - external_credential_id
                - provider
                - algorithm
                - name
                - created_at
                - updated_at
        GcpSetupInfo:
            type: object
            properties:
                required_role:
                    type: string
                    description: The IAM role to grant Speakeasy's service account on the target service account.
                service_account_email:
                    type: string
                    description: Speakeasy's own service account. Grant it roles/iam.serviceAccountTokenCreator on the service account you want Speakeasy to impersonate. Empty when the running environment cannot report one (local development backed by a user login rather than a service-account key).
            description: What the customer must grant in their own GCP project before Speakeasy can impersonate a service account there.
            required:
                - required_role
        GenerateTitleRequestBody:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the chat
                title:
                    type: string
                    description: When present, sets the chat's title manually (empty string resets to auto-generated). When omitted, the current title is returned without changes.
                    maxLength: 200
            required:
                - id
        GenerateTitleResponseBody:
            type: object
            properties:
                title:
                    type: string
                    description: The current title after the operation (empty when reset to auto-generated)
            required:
                - title
        GenerateWorkOSAdminPortalLinkRequestBody:
            type: object
            properties:
                intent:
                    type: string
                    description: WorkOS Admin Portal intent.
                    enum:
                        - dsync
                        - sso
                        - audit_logs
                        - domain_verification
                        - log_streams
                intent_options:
                    $ref: '#/components/schemas/WorkOSIntentOptions'
                it_contact_emails:
                    type: array
                    items:
                        type: string
                    description: IT contact email addresses displayed in the Admin Portal for end-user support.
                return_url:
                    type: string
                    description: URL to redirect the user to after the Admin Portal session ends.
                    format: uri
                success_url:
                    type: string
                    description: URL to redirect the user to on successful completion of the Admin Portal flow.
                    format: uri
            required:
                - intent
        GenerateWorkOSAdminPortalLinkResult:
            type: object
            properties:
                url:
                    type: string
                    description: URL to the WorkOS Admin Portal flow.
            required:
                - url
        GetActiveDeploymentResult:
            type: object
            properties:
                deployment:
                    $ref: '#/components/schemas/Deployment'
        GetDeploymentEvaluationResult:
            type: object
            properties:
                base_deployment_id:
                    type: string
                    description: The ID of the deployment it is compared with. Absent for the first deployment in a project.
                deployment_id:
                    type: string
                    description: The ID of the evaluated deployment.
                documents:
                    type: array
                    items:
                        $ref: '#/components/schemas/OpenAPIv3Evaluation'
                    description: One evaluation per OpenAPI source that was added, changed or removed.
            required:
                - deployment_id
                - documents
        GetDeploymentForm:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the deployment
            required:
                - id
        GetDeploymentLogsForm:
            type: object
            properties:
                cursor:
                    type: string
                    description: The cursor to fetch results from
                deployment_id:
                    type: string
                    description: The ID of the deployment
            required:
                - deployment_id
        GetDeploymentLogsResult:
            type: object
            properties:
                events:
                    type: array
                    items:
                        $ref: '#/components/schemas/DeploymentLogEvent'
                    description: The logs for the deployment
                next_cursor:
                    type: string
                    description: The cursor to fetch results from
                status:
                    type: string
                    description: The status of the deployment
            required:
                - events
                - status
        GetDeploymentResult:
            type: object
            properties:
                cloned_from:
                    type: string
                    description: The ID of the deployment that this deployment was cloned from.
                    example: bc5f4a555e933e6861d12edba4c2d87ef6caf8e6
                created_at:
                    type: string
                    description: The creation date of the deployment.
                    format: date-time
                external_id:
                    type: string
                    description: The external ID to refer to the deployment. This can be a git commit hash for example.
                    example: bc5f4a555e933e6861d12edba4c2d87ef6caf8e6
                external_mcp_tool_count:
                    type: integer
                    description: The number of tools in the deployment generated from external MCP servers.
                    format: int64
                external_mcps:
                    type: array
                    items:
                        $ref: '#/components/schemas/DeploymentExternalMCP'
                    description: The external MCP servers that were deployed.
                external_url:
                    type: string
                    description: The upstream URL a deployment can refer to. This can be a github url to a commit hash or pull request.
                functions_assets:
                    type: array
                    items:
                        $ref: '#/components/schemas/DeploymentFunctions'
                    description: The IDs, as returned from the assets upload service, to uploaded OpenAPI 3.x documents whose operations will become tool definitions.
                functions_tool_count:
                    type: integer
                    description: The number of tools in the deployment generated from Functions.
                    format: int64
                github_pr:
                    type: string
                    description: The github pull request that resulted in the deployment.
                    example: "1234"
                github_repo:
                    type: string
                    description: The github repository in the form of "owner/repo".
                    example: speakeasyapi/gram
                github_sha:
                    type: string
                    description: The commit hash that triggered the deployment.
                    example: f33e693e9e12552043bc0ec5c37f1b8a9e076161
                id:
                    type: string
                    description: The ID to of the deployment.
                    example: bc5f4a555e933e6861d12edba4c2d87ef6caf8e6
                idempotency_key:
                    type: string
                    description: A unique identifier that will mitigate against duplicate deployments.
                    example: 01jqq0ajmb4qh9eppz48dejr2m
                openapiv3_assets:
                    type: array
                    items:
                        $ref: '#/components/schemas/OpenAPIv3DeploymentAsset'
                    description: The IDs, as returned from the assets upload service, to uploaded OpenAPI 3.x documents whose operations will become tool definitions.
                openapiv3_tool_count:
                    type: integer
                    description: The number of tools in the deployment generated from OpenAPI documents.
                    format: int64
                organization_id:
                    type: string
                    description: The ID of the organization that the deployment belongs to.
                packages:
                    type: array
                    items:
                        $ref: '#/components/schemas/DeploymentPackage'
                    description: The packages that were deployed.
                project_id:
                    type: string
                    description: The ID of the project that the deployment belongs to.
                status:
                    type: string
                    description: The status of the deployment.
                user_id:
                    type: string
                    description: The ID of the user that created the deployment.
            required:
                - id
                - created_at
                - organization_id
                - project_id
                - user_id
                - openapiv3_assets
                - status
                - packages
                - openapiv3_tool_count
                - functions_tool_count
                - external_mcp_tool_count
        GetEmployeeDataFlowGraphPayload:
            type: object
            properties:
                account_type:
                    type: string
                    description: Optional account type filter ('team' or 'personal')
                external_org_id:
                    type: string
                    description: Optional filter to a single AI account by its provider org id; scopes the graph to that one account
                external_user_id:
                    type: string
                    description: External user ID to get the graph for (mutually exclusive with user_id)
                from:
                    type: string
                    description: Start time in ISO 8601 format
                    example: "2025-12-19T10:00:00Z"
                    format: date-time
                to:
                    type: string
                    description: End time in ISO 8601 format
                    example: "2025-12-19T11:00:00Z"
                    format: date-time
                user_id:
                    type: string
                    description: User ID to get the graph for (mutually exclusive with external_user_id)
            description: Payload for getting an employee-level MCP data flow graph
            required:
                - from
                - to
        GetEmployeeDataFlowGraphResult:
            type: object
            properties:
                edges:
                    type: array
                    items:
                        $ref: '#/components/schemas/EmployeeDataFlowEdge'
                    description: Weighted graph edges between adjacent populated tiers
                nodes:
                    type: array
                    items:
                        $ref: '#/components/schemas/EmployeeDataFlowNode'
                    description: Graph nodes grouped by tier
            description: Result of employee data flow graph query
            required:
                - nodes
                - edges
        GetEventFacetsPayload:
            type: object
            properties:
                from:
                    type: string
                    description: Start time in ISO 8601 format
                    example: "2025-12-19T10:00:00Z"
                    format: date-time
                kinds:
                    type: array
                    items:
                        type: string
                        enum:
                            - log
                            - span
                    description: Optional signal kind filter. Empty means facets from both logs and spans.
                to:
                    type: string
                    description: End time in ISO 8601 format
                    example: "2025-12-26T10:00:00Z"
                    format: date-time
            description: Payload for listing event feed filter facets
            required:
                - from
                - to
        GetEventFacetsResult:
            type: object
            properties:
                names:
                    type: array
                    items:
                        type: string
                    description: Distinct event/span names in ascending order
                sources:
                    type: array
                    items:
                        type: string
                    description: Distinct sources in ascending order
            description: Distinct filterable values observed in the range
            required:
                - sources
                - names
        GetEventVolumePayload:
            type: object
            properties:
                from:
                    type: string
                    description: Start time in ISO 8601 format
                    example: "2025-12-19T10:00:00Z"
                    format: date-time
                kinds:
                    type: array
                    items:
                        type: string
                        enum:
                            - log
                            - span
                    description: Optional signal kind filter. Empty means both logs and spans.
                names:
                    type: array
                    items:
                        type: string
                    description: Optional event/span name filter. Values are ORed.
                search:
                    type: string
                    description: Optional case-insensitive substring match over event body and name
                sources:
                    type: array
                    items:
                        type: string
                    description: Optional source filter (canonicalized service names). Values are ORed.
                to:
                    type: string
                    description: End time in ISO 8601 format
                    example: "2025-12-26T10:00:00Z"
                    format: date-time
            description: Payload for the org-scoped event volume timeseries
            required:
                - from
                - to
        GetEventVolumeResult:
            type: object
            properties:
                buckets:
                    type: array
                    items:
                        $ref: '#/components/schemas/EventVolumeBucket'
                    description: Zero-filled buckets in ascending time order
                interval_seconds:
                    type: integer
                    description: Bucket width in seconds
                    format: int64
            description: Bucketed counts of logs vs spans over the requested range
            required:
                - interval_seconds
                - buckets
        GetHooksSummaryPayload:
            type: object
            properties:
                filters:
                    type: array
                    items:
                        $ref: '#/components/schemas/LogFilter'
                    description: Filter conditions (same as listHooksTraces)
                from:
                    type: string
                    description: Start time in ISO 8601 format
                    example: "2025-12-19T10:00:00Z"
                    format: date-time
                to:
                    type: string
                    description: End time in ISO 8601 format
                    example: "2025-12-19T11:00:00Z"
                    format: date-time
                types_to_include:
                    type: array
                    items:
                        type: string
                        enum:
                            - mcp
                            - local
                            - skill
                    description: Hook types to include (mcp, local, skill). If empty, includes all types.
                    example:
                        - mcp
                        - skill
            description: Payload for getting aggregated hooks metrics
            required:
                - from
                - to
        GetHooksSummaryResult:
            type: object
            properties:
                breakdown:
                    type: array
                    items:
                        $ref: '#/components/schemas/HooksBreakdownRow'
                    description: 'Cross-dimensional pivot: (user, server, source, tool) x counts'
                servers:
                    type: array
                    items:
                        $ref: '#/components/schemas/HooksServerSummary'
                    description: Aggregated metrics grouped by server
                skill_breakdown:
                    type: array
                    items:
                        $ref: '#/components/schemas/SkillBreakdownRow'
                    description: Per-user skill breakdown
                skill_time_series:
                    type: array
                    items:
                        $ref: '#/components/schemas/SkillTimeSeriesPoint'
                    description: Time-bucketed event counts by skill
                skills:
                    type: array
                    items:
                        $ref: '#/components/schemas/SkillSummary'
                    description: Aggregated metrics grouped by skill
                time_series:
                    type: array
                    items:
                        $ref: '#/components/schemas/HooksTimeSeriesPoint'
                    description: Time-bucketed event counts by server and user
                total_events:
                    type: integer
                    description: Total number of hook events
                    format: int64
                total_sessions:
                    type: integer
                    description: Total number of unique sessions
                    format: int64
                users:
                    type: array
                    items:
                        $ref: '#/components/schemas/HooksUserSummary'
                    description: Aggregated metrics grouped by user
            description: Result of hooks summary query
            required:
                - servers
                - users
                - skills
                - total_events
                - total_sessions
                - breakdown
                - time_series
                - skill_time_series
                - skill_breakdown
        GetIdentityProviderConnectionResult:
            type: object
            properties:
                connection:
                    $ref: '#/components/schemas/OktaIdentityProviderConnection'
            description: The organization's Okta connection, or nothing when none is connected.
        GetInstanceForm:
            type: object
            properties:
                apikey_token:
                    type: string
                chat_sessions_token:
                    type: string
                project_slug_input:
                    type: string
                session_token:
                    type: string
                toolset_slug:
                    type: string
                    description: A short url-friendly label that uniquely identifies a resource.
                    pattern: ^[a-z0-9_-]{1,128}$
                    maxLength: 40
            required:
                - toolset_slug
        GetInstanceResult:
            type: object
            properties:
                description:
                    type: string
                    description: The description of the toolset
                external_mcp_header_definitions:
                    type: array
                    items:
                        $ref: '#/components/schemas/ExternalMCPHeaderDefinition'
                    description: The external MCP header definitions that are relevant to the toolset
                function_environment_variables:
                    type: array
                    items:
                        $ref: '#/components/schemas/FunctionEnvironmentVariable'
                    description: The function environment variables that are relevant to the toolset
                mcp_servers:
                    type: array
                    items:
                        $ref: '#/components/schemas/InstanceMcpServer'
                    description: The MCP servers that are relevant to the toolset
                name:
                    type: string
                    description: The name of the toolset
                prompt_templates:
                    type: array
                    items:
                        $ref: '#/components/schemas/PromptTemplate'
                    description: The list of prompt templates
                security_variables:
                    type: array
                    items:
                        $ref: '#/components/schemas/SecurityVariable'
                    description: The security variables that are relevant to the toolset
                server_variables:
                    type: array
                    items:
                        $ref: '#/components/schemas/ServerVariable'
                    description: The server variables that are relevant to the toolset
                tools:
                    type: array
                    items:
                        $ref: '#/components/schemas/Tool'
                    description: The list of tools
            required:
                - name
                - tools
                - mcp_servers
        GetIntegrationForm:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the integration to get (refers to a package id).
                name:
                    type: string
                    description: The name of the integration to get (refers to a package name).
            description: Get a third-party integration by ID or name.
        GetIntegrationResult:
            type: object
            properties:
                integration:
                    $ref: '#/components/schemas/Integration'
        GetKeyUsageResponseBody:
            type: object
            properties:
                credits_used:
                    type: number
                    description: Credits spent this month, rounded to cents.
                    format: double
                monthly_credits:
                    type: integer
                    description: Monthly credit ceiling recorded locally.
                    format: int64
                upstream_limit:
                    type: integer
                    description: Monthly limit as configured upstream; absent when OpenRouter reports an unlimited key.
                    format: int64
            description: Live usage as reported by OpenRouter at request time.
            required:
                - credits_used
                - monthly_credits
        GetLatestDeploymentResult:
            type: object
            properties:
                deployment:
                    $ref: '#/components/schemas/Deployment'
        GetMcpMetadataResponseBody:
            type: object
            properties:
                metadata:
                    $ref: '#/components/schemas/McpMetadata'
        GetMcpNetworkTrafficPayload:
            type: object
            properties:
                mcp_server_id:
                    type: string
                    description: MCP server ID (mutually exclusive with meta_mcp_server_id)
                    format: uuid
                meta_mcp_server_id:
                    type: string
                    description: Gateway ID (mutually exclusive with mcp_server_id)
                    format: uuid
                window:
                    type: string
                    description: Recent traffic window
                    enum:
                        - 24h
                        - 7d
            description: Provide exactly one of mcp_server_id or meta_mcp_server_id, and a recent window.
            required:
                - window
        GetMcpNetworkTrafficResult:
            type: object
            properties:
                from:
                    type: string
                    description: Start of the window
                    format: date-time
                last_private_at:
                    type: string
                    description: Most recent observed private request in the window
                    format: date-time
                last_public_at:
                    type: string
                    description: Most recent observed public request in the window
                    format: date-time
                points:
                    type: array
                    items:
                        $ref: '#/components/schemas/McpNetworkTrafficPoint'
                    description: Hourly request counts
                to:
                    type: string
                    description: End of the window
                    format: date-time
            description: Observed resolved inbound MCP requests, not a guarantee of every client. No observations does not prove a route is unused.
            required:
                - from
                - to
                - points
        GetMcpServerActivityPayload:
            type: object
            properties:
                recent_window_days:
                    type: integer
                    description: Size of the recent-activity window in days. A server with tool calls in the overall lookback window but none inside this window is flagged as stale. Defaults to 14.
                    default: 14
                    format: int64
                    minimum: 1
                    maximum: 90
            description: Payload for per-MCP-server tool-call activity used by the Distribute MCP listing indicators
        GetMcpServerActivityResult:
            type: object
            properties:
                activity:
                    type: array
                    items:
                        $ref: '#/components/schemas/McpServerActivity'
                    description: One entry per MCP server (hosted, tunneled, or gateway) that has received at least one tool call within the lookback window
                lookback_days:
                    type: integer
                    description: The overall lookback window size in days (bounded by telemetry retention)
                    format: int64
                recent_window_days:
                    type: integer
                    description: The recent-activity window size in days that was applied
                    format: int64
            description: Per-MCP-server tool-call activity. Only servers with at least one tool call inside the lookback window are returned; a server absent from the list has never received a tool call (within the telemetry retention window).
            required:
                - activity
                - recent_window_days
                - lookback_days
        GetMetaMcpServerUsagePayload:
            type: object
            properties:
                from:
                    type: string
                    description: Start time in ISO 8601 format
                    example: "2025-12-19T10:00:00Z"
                    format: date-time
                meta_mcp_server_id:
                    type: string
                    description: The gateway (meta MCP server) ID
                    format: uuid
                to:
                    type: string
                    description: End time in ISO 8601 format
                    example: "2025-12-19T11:00:00Z"
                    format: date-time
            required:
                - meta_mcp_server_id
                - from
                - to
        GetMetaMcpServerUsageResult:
            type: object
            properties:
                funnel:
                    $ref: '#/components/schemas/MetaMcpDiscoveryFunnel'
                members:
                    type: array
                    items:
                        $ref: '#/components/schemas/MetaMcpMemberUsage'
                    description: Per-member execution breakdown, most active first
            description: Discovery funnel plus per-member execution breakdown for one gateway (meta MCP server). Zero counts mean no rows were observed in the window within telemetry retention — they do not distinguish an idle gateway from traffic outside the window or the 90-day retention; telemetry-disabled organizations get a not-found error instead of zeros.
            required:
                - funnel
                - members
        GetMetricsSummaryResult:
            type: object
            properties:
                metrics:
                    $ref: '#/components/schemas/ProjectSummary'
            description: Result of metrics summary query
            required:
                - metrics
        GetMyConnectionsResult:
            type: object
            properties:
                servers:
                    type: array
                    items:
                        $ref: '#/components/schemas/AgentServerConnection'
                    description: One entry per distinct MCP server in the plugins delivered to the user, in plugin order. Servers the user can neither read nor connect to are omitted; a server the user can read but not connect to is reported as no_access.
            required:
                - servers
        GetObservabilityOverviewPayload:
            type: object
            properties:
                account_type:
                    type: string
                    description: Optional account type filter ('team' or 'personal')
                api_key_id:
                    type: string
                    description: Optional API key ID filter
                event_source:
                    type: string
                    description: Optional event source filter (e.g. 'hook')
                external_org_id:
                    type: string
                    description: Optional filter to a single AI account by its provider org id; scopes the overview to that one account
                external_user_id:
                    type: string
                    description: Optional external user ID filter
                from:
                    type: string
                    description: Start time in ISO 8601 format
                    example: "2025-12-19T10:00:00Z"
                    format: date-time
                hook_source:
                    type: string
                    description: Optional hook source filter (e.g. 'cursor', 'claude-code')
                include_time_series:
                    type: boolean
                    description: 'Whether to include time series data (default: true)'
                    default: true
                mcp_server_id:
                    type: string
                    description: Optional MCP server ID filter (fronting server; spans both remote-backed and toolset-backed activity)
                    format: uuid
                meta_mcp_server_id:
                    type: string
                    description: Optional gateway (meta MCP server) ID filter; scopes to traffic dispatched through that gateway
                    format: uuid
                remote_mcp_server_id:
                    type: string
                    description: Optional Remote MCP server ID filter
                    format: uuid
                to:
                    type: string
                    description: End time in ISO 8601 format
                    example: "2025-12-19T11:00:00Z"
                    format: date-time
                toolset_slug:
                    type: string
                    description: Optional toolset/MCP server slug filter
                user_id:
                    type: string
                    description: Optional internal user ID filter
            description: Payload for getting observability overview metrics
            required:
                - from
                - to
        GetObservabilityOverviewResult:
            type: object
            properties:
                comparison:
                    $ref: '#/components/schemas/ObservabilitySummary'
                interval_seconds:
                    type: integer
                    description: The time bucket interval in seconds used for the time series data
                    format: int64
                summary:
                    $ref: '#/components/schemas/ObservabilitySummary'
                time_series:
                    type: array
                    items:
                        $ref: '#/components/schemas/TimeSeriesBucket'
                    description: Time series data points
                top_tools_by_count:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolMetric'
                    description: Top tools by call count
                top_tools_by_failure_rate:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolMetric'
                    description: Top tools by failure rate
            description: Result of observability overview query
            required:
                - summary
                - comparison
                - time_series
                - top_tools_by_count
                - top_tools_by_failure_rate
                - interval_seconds
        GetOrgMcpServerActivityResult:
            type: object
            properties:
                projects:
                    type: array
                    items:
                        $ref: '#/components/schemas/ProjectMcpServerActivity'
                    description: One entry per readable project whose activity was read
                recent_window_days:
                    type: integer
                    description: The recent-activity window size in days that was applied
                    format: int64
            description: Recent MCP server activity across the organization. Only the recent window is scanned, so each server's total_tool_calls equals its recent_tool_calls. A project the caller can read but whose activity could not be read is absent, so its servers' counts are unknown rather than zero.
            required:
                - projects
                - recent_window_days
        GetOrganizationGatewayActivityPayload:
            type: object
            properties:
                from:
                    type: string
                    description: Start time in ISO 8601 format
                    example: "2025-12-19T10:00:00Z"
                    format: date-time
                to:
                    type: string
                    description: End time in ISO 8601 format
                    example: "2025-12-19T11:00:00Z"
                    format: date-time
            description: Time range for the caller's Organization Gateway activity
            required:
                - from
                - to
        GetPluginsResult:
            type: object
            properties:
                configuration:
                    $ref: '#/components/schemas/DeviceAgentConfiguration'
                etag:
                    type: string
                    description: Opaque revision identifier covering the marketplace, plugin, MCP server (including each server's token endpoint, audience and resource), remote-configuration, and organization-gateway set. The agent stores this to detect changes between polls.
                marketplaces:
                    type: array
                    items:
                        $ref: '#/components/schemas/AgentMarketplace'
                    description: Plugin marketplaces the agent should register with the tools it manages. Sorted by name.
                mcp_servers:
                    type: array
                    items:
                        $ref: '#/components/schemas/AgentMCPServer'
                    description: 'Speakeasy-hosted MCP servers the agent registers directly in each managed tool''s configuration, authorized by the device''s own mcp:connect credential. Populated only when the caller polls as an agent (an agent API key, or a workload acting for its assigned agent), from the MCP servers in the plugins assigned to that agent; always empty for people, who reach these servers through their plugins. Always present: an empty list tells the agent to remove the entries it wrote earlier.'
                organization_gateway_url:
                    type: string
                    description: URL of the active organization's gateway. Absent when the organization gateway is unavailable.
                    format: uri
                plugins:
                    type: array
                    items:
                        $ref: '#/components/schemas/AgentPlugin'
                    description: 'Plugins for the caller: the observability plugin of each listed marketplace, when enabled, and the plugins assigned to the caller. Each entry''s install_mode says whether the agent installs it (`required`, `default`) or only offers it for the user to turn on (`available`). Each entry references one of the marketplaces above by name.'
                principal:
                    $ref: '#/components/schemas/AgentPollingPrincipal'
            required:
                - etag
                - marketplaces
                - plugins
                - mcp_servers
        GetProjectForm:
            type: object
            properties:
                slug:
                    type: string
                    description: A short url-friendly label that uniquely identifies a resource.
                    pattern: ^[a-z0-9_-]{1,128}$
                    maxLength: 40
            required:
                - slug
        GetProjectMetricsSummaryPayload:
            type: object
            properties:
                from:
                    type: string
                    description: Start time in ISO 8601 format
                    example: "2025-12-19T10:00:00Z"
                    format: date-time
                to:
                    type: string
                    description: End time in ISO 8601 format
                    example: "2025-12-19T11:00:00Z"
                    format: date-time
            description: Payload for getting project-level metrics summary
            required:
                - from
                - to
        GetProjectOverviewPayload:
            type: object
            properties:
                from:
                    type: string
                    description: Start time in ISO 8601 format
                    example: "2025-12-19T10:00:00Z"
                    format: date-time
                include_usage:
                    type: boolean
                    description: Also return the project home usage breakdowns (usage_by_user, usage_by_agent, mcp_usage) in the same response
                    default: false
                to:
                    type: string
                    description: End time in ISO 8601 format
                    example: "2025-12-19T11:00:00Z"
                    format: date-time
            description: Payload for getting project-level overview
            required:
                - from
                - to
        GetProjectOverviewResult:
            type: object
            properties:
                mcp_usage:
                    $ref: '#/components/schemas/ProjectMcpUsage'
                summary:
                    $ref: '#/components/schemas/ProjectOverviewSummary'
                usage_by_agent:
                    $ref: '#/components/schemas/QueryResult'
                usage_by_user:
                    $ref: '#/components/schemas/QueryResult'
            description: Result of project overview query
            required:
                - summary
        GetProjectResult:
            type: object
            properties:
                project:
                    $ref: '#/components/schemas/Project'
            required:
                - project
        GetPromptTemplateResult:
            type: object
            properties:
                template:
                    $ref: '#/components/schemas/PromptTemplate'
            required:
                - template
        GetRegistryPromotionCandidateRequestBody:
            type: object
            properties:
                mcp_server_id:
                    type: string
                    format: uuid
                organization_id:
                    type: string
                project_id:
                    type: string
                    format: uuid
            required:
                - organization_id
                - project_id
                - mcp_server_id
        GetRiskPolicyChallengeResponseBody:
            type: object
            properties:
                acknowledged:
                    type: boolean
                    description: Whether this challenge has already been acknowledged.
                expires_at:
                    type: string
                    description: RFC3339 time the acknowledgement link expires.
                    format: date-time
                message:
                    type: string
                    description: Human-facing challenge message describing what was flagged.
                policy_name:
                    type: string
                    description: The policy that issued the warning.
                tool_name:
                    type: string
                    description: The tool the challenge applies to, if any.
            required:
                - message
                - acknowledged
        GetSessionMetaResult:
            type: object
            properties:
                sessions:
                    type: array
                    items:
                        $ref: '#/components/schemas/AgentSessionMeta'
                    description: Metadata for the requested sessions that exist and are owned by the calling user. Requested ids with no captured chat or another owner are omitted.
            required:
                - sessions
        GetSetupDocsResponseBody:
            type: object
            properties:
                guides:
                    type: array
                    items:
                        $ref: '#/components/schemas/MCPSetupGuide'
                    description: Matching setup guides, most specific match first. Empty when no guide has been published for the server.
            required:
                - guides
        GetSignedAssetURLForm:
            type: object
            properties:
                asset_id:
                    type: string
                    description: The ID of the function asset
            required:
                - asset_id
        GetSignedAssetURLResult:
            type: object
            properties:
                url:
                    type: string
                    description: The signed URL to access the asset
            required:
                - url
        GetSkillResult:
            type: object
            properties:
                adoption:
                    $ref: '#/components/schemas/SkillAdoption'
                assistant_count:
                    type: integer
                    description: The number of active, non-deleted assistants using the skill.
                    format: int64
                drift:
                    $ref: '#/components/schemas/SkillDrift'
                latest_version:
                    $ref: '#/components/schemas/SkillVersion'
                prompt_injection_findings:
                    type: array
                    items:
                        $ref: '#/components/schemas/SkillPromptInjectionFinding'
                    description: Open prompt-injection findings for the current skill version.
                sighting_timeline:
                    type: array
                    items:
                        $ref: '#/components/schemas/SkillSightingTimelinePoint'
                    description: Daily activations by attributed version in the adoption window.
                skill:
                    $ref: '#/components/schemas/Skill'
            description: An active skill and its current version.
            required:
                - skill
                - adoption
                - sighting_timeline
                - drift
                - assistant_count
                - prompt_injection_findings
        GetStripeCheckoutStatusResponseBody:
            type: object
            properties:
                billing_ready:
                    type: boolean
                    description: Whether this completed session and its own subscription are ready for billing activation; local webhook persistence is still required
                payment_status:
                    type: string
                    enum:
                        - paid
                        - unpaid
                        - no_payment_required
                status:
                    type: string
                    enum:
                        - open
                        - complete
                        - expired
            required:
                - status
                - payment_status
                - billing_ready
        GetToolUsageClientToolBreakdownResult:
            type: object
            properties:
                client_tool_breakdown:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolUsageClientToolBreakdownRow'
                    description: Per-tool usage rows grouped by MCP client
            description: Per-tool MCP and tool usage grouped by MCP client
            required:
                - client_tool_breakdown
        GetToolUsageClientsResult:
            type: object
            properties:
                clients:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolUsageClientSummary'
                    description: Top MCP clients for the selected filters and time range
            description: Top MCP clients for the selected filters and time range
            required:
                - clients
        GetToolUsageFilterOptionsPayload:
            type: object
            properties:
                account_type:
                    type: string
                    description: Optional account type filter ('team' or 'personal').
                agent_ids:
                    type: array
                    items:
                        type: string
                    description: Agent identities to narrow by. Not applied to the agent user options.
                client_keys:
                    type: array
                    items:
                        type: string
                    description: MCP client keys to narrow by. Not applied to the client options.
                filters:
                    type: array
                    items:
                        $ref: '#/components/schemas/LogFilter'
                    description: Arbitrary attribute filter conditions from the af URL param
                from:
                    type: string
                    description: Start time in ISO 8601 format
                    example: "2025-12-19T10:00:00Z"
                    format: date-time
                hook_sources:
                    type: array
                    items:
                        type: string
                    description: Hook plugin sources to narrow by.
                hosted_toolset_slugs:
                    type: array
                    items:
                        type: string
                    description: 'Deprecated: use mcp_server_ids. Hosted MCP toolset slugs to narrow by. Not applied to the server options.'
                mcp_server_ids:
                    type: array
                    items:
                        type: string
                        format: uuid
                    description: MCP server ids to narrow by. Not applied to the server options.
                    maxItems: 100
                meta_mcp_server_ids:
                    type: array
                    items:
                        type: string
                    description: Gateway (meta MCP server) ids to narrow by. Not applied to the server options.
                option_types:
                    type: array
                    items:
                        type: string
                        description: Tool usage filter option type
                        enum:
                            - hosted_servers
                            - shadow_servers
                            - gateways
                            - users
                            - clients
                    description: Filter option types to include. Empty means all option types.
                query:
                    type: string
                    description: Free-text attribute search string from the q URL param.
                shadow_server_names:
                    type: array
                    items:
                        type: string
                    description: Shadow MCP server names to narrow by. Not applied to the server options.
                statuses:
                    type: array
                    items:
                        type: string
                        description: Tool usage trace outcome
                        enum:
                            - error
                            - success
                            - blocked
                            - pending
                    description: Trace outcomes to narrow by. Empty means all.
                target_types:
                    type: array
                    items:
                        type: string
                        description: Tool usage target type
                        enum:
                            - hosted_mcp_server
                            - tunneled_mcp_server
                            - meta_mcp_server
                            - shadow_mcp_server
                            - local_tool
                            - skill
                    description: Target types to include. Empty means all target types.
                to:
                    type: string
                    description: End time in ISO 8601 format
                    example: "2025-12-19T11:00:00Z"
                    format: date-time
                user_filters:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolUsageUserFilter'
                    description: Typed user identities to narrow by. Not applied to the email user options.
            description: Payload for target-aware MCP and tool usage filter options
            required:
                - from
                - to
        GetToolUsageFilterOptionsResult:
            type: object
            properties:
                clients:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolUsageClientFilterOption'
                    description: MCP clients with usage in the selected time range
                gateways:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolUsageGatewayFilterOption'
                    description: Gateways (meta MCP servers) with usage in the selected time range
                hosted_servers:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolUsageHostedServerFilterOption'
                    description: Hosted MCP servers with usage in the selected time range
                shadow_servers:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolUsageShadowServerFilterOption'
                    description: Shadow MCP servers with usage in the selected time range
                users:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolUsageUserFilterOption'
                    description: User identities with usage in the selected time range
            description: Filter options for target-aware MCP and tool usage metrics
            required:
                - hosted_servers
                - shadow_servers
                - gateways
                - users
                - clients
        GetToolUsageSummaryPayload:
            type: object
            properties:
                account_type:
                    type: string
                    description: Optional account type filter ('team' or 'personal').
                agent_ids:
                    type: array
                    items:
                        type: string
                    description: Agent identities to include. Combined with user_filters by AND, so an agent and a person select the calls that agent made on that person's behalf.
                client_keys:
                    type: array
                    items:
                        type: string
                    description: MCP client keys (lowercased self-reported client names; 'unattributed' selects calls Speakeasy never saw an initialize handshake for) to include
                filters:
                    type: array
                    items:
                        $ref: '#/components/schemas/LogFilter'
                    description: Arbitrary attribute filter conditions from the af URL param
                from:
                    type: string
                    description: Start time in ISO 8601 format
                    example: "2025-12-19T10:00:00Z"
                    format: date-time
                hook_sources:
                    type: array
                    items:
                        type: string
                    description: Hook plugin sources to include. Direct hosted MCP calls have no hook source and are excluded when this filter is set.
                hosted_toolset_slugs:
                    type: array
                    items:
                        type: string
                    description: 'Deprecated: use mcp_server_ids. Hosted MCP toolset slugs to include'
                mcp_server_ids:
                    type: array
                    items:
                        type: string
                        format: uuid
                    description: MCP server ids to include. Matches calls served by the server, including calls recorded before they carried a server id.
                    maxItems: 100
                meta_mcp_server_ids:
                    type: array
                    items:
                        type: string
                    description: 'Gateway (meta MCP server) ids to include: calls dispatched through the gateway to its members plus calls observed against the gateway itself'
                query:
                    type: string
                    description: Free-text attribute search string from the q URL param, applied as the trace listing applies it.
                shadow_server_names:
                    type: array
                    items:
                        type: string
                    description: Shadow MCP server names to include
                statuses:
                    type: array
                    items:
                        type: string
                        description: Tool usage trace outcome
                        enum:
                            - error
                            - success
                            - blocked
                            - pending
                    description: Trace outcomes to include (error, success, blocked, pending). Empty means all.
                target_types:
                    type: array
                    items:
                        type: string
                        description: Tool usage target type
                        enum:
                            - hosted_mcp_server
                            - tunneled_mcp_server
                            - meta_mcp_server
                            - shadow_mcp_server
                            - local_tool
                            - skill
                    description: Target types to include. Empty means all target types.
                to:
                    type: string
                    description: End time in ISO 8601 format
                    example: "2025-12-19T11:00:00Z"
                    format: date-time
                user_filters:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolUsageUserFilter'
                    description: Typed user identities to include. An email also matches the calls an agent made on that person's behalf.
            description: Payload for target-aware MCP and tool usage metrics
            required:
                - from
                - to
        GetToolUsageSummaryResult:
            type: object
            properties:
                client_tool_breakdown:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolUsageClientToolBreakdownRow'
                    description: Per-tool usage rows grouped by MCP client
                clients:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolUsageClientSummary'
                    description: Top MCP clients for the selected filters and time range
                target_time_series:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolUsageTargetTimeSeriesPoint'
                    description: Time-series usage buckets grouped by target
                target_tool_breakdown:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolUsageTargetToolBreakdownRow'
                    description: Per-tool usage rows grouped by target
                targets:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolUsageTargetSummary'
                    description: Top usage targets for the selected filters and time range
                totals:
                    $ref: '#/components/schemas/ToolUsageTotals'
                user_time_series:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolUsageUserTimeSeriesPoint'
                    description: Time-series usage buckets grouped by user identity
                users:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolUsageUserSummary'
                    description: Top user identities for the selected filters and time range
                users_by_target:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolUsageUsersByTargetRow'
                    description: Cross-dimensional usage rows grouped by target and user identity
            description: Target-aware MCP and tool usage metrics
            required:
                - totals
                - targets
                - users
                - target_time_series
                - user_time_series
                - users_by_target
                - target_tool_breakdown
                - clients
                - client_tool_breakdown
        GetToolUsageTargetTimeSeriesResult:
            type: object
            properties:
                target_time_series:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolUsageTargetTimeSeriesPoint'
                    description: Time-series usage buckets grouped by target
            description: Time-series MCP and tool usage grouped by target
            required:
                - target_time_series
        GetToolUsageTargetToolBreakdownResult:
            type: object
            properties:
                target_tool_breakdown:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolUsageTargetToolBreakdownRow'
                    description: Per-tool usage rows grouped by target
            description: Per-tool MCP and tool usage grouped by target
            required:
                - target_tool_breakdown
        GetToolUsageTargetsResult:
            type: object
            properties:
                targets:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolUsageTargetSummary'
                    description: Top usage targets for the selected filters and time range
            description: Top MCP and tool usage targets for the selected filters and time range
            required:
                - targets
        GetToolUsageTotalsResult:
            type: object
            properties:
                totals:
                    $ref: '#/components/schemas/ToolUsageTotals'
            description: Overall MCP and tool usage totals for the selected filters and time range
            required:
                - totals
        GetToolUsageUserTimeSeriesResult:
            type: object
            properties:
                user_time_series:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolUsageUserTimeSeriesPoint'
                    description: Time-series usage buckets grouped by user identity
            description: Time-series MCP and tool usage grouped by user identity
            required:
                - user_time_series
        GetToolUsageUsersByTargetResult:
            type: object
            properties:
                users_by_target:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolUsageUsersByTargetRow'
                    description: Cross-dimensional usage rows grouped by target and user identity
            description: Cross-dimensional MCP and tool usage grouped by target and user identity
            required:
                - users_by_target
        GetToolUsageUsersResult:
            type: object
            properties:
                users:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolUsageUserSummary'
                    description: Top user identities for the selected filters and time range
            description: Top MCP and tool usage user identities for the selected filters and time range
            required:
                - users
        GetUnproxiedMcpServerClientUsageResult:
            type: object
            properties:
                clients:
                    type: array
                    items:
                        $ref: '#/components/schemas/UnproxiedMcpServerClientUsageRow'
                next_cursor:
                    type: string
                    description: Cursor for next page
            description: Result of a Shadow-MCP-backed per-client usage lookup for an unproxied MCP server
            required:
                - clients
        GetUnproxiedMcpServerToolUsageResult:
            type: object
            properties:
                next_cursor:
                    type: string
                    description: Cursor for next page
                tools:
                    type: array
                    items:
                        $ref: '#/components/schemas/UnproxiedMcpServerToolUsageRow'
            description: Result of a Shadow-MCP-backed per-tool usage lookup for an unproxied MCP server
            required:
                - tools
        GetUnproxiedMcpServerUsageRequestBody:
            type: object
            properties:
                from:
                    type: string
                    description: Start time in ISO 8601 format
                    format: date-time
                to:
                    type: string
                    description: End time in ISO 8601 format
                    format: date-time
                url:
                    type: string
                    description: The unproxied MCP server's vendor URL
                    format: uri
            required:
                - url
                - from
                - to
        GetUnproxiedMcpServerUsageResult:
            type: object
            properties:
                buckets:
                    type: array
                    items:
                        $ref: '#/components/schemas/UnproxiedMcpServerUsageBucket'
            description: Result of a Shadow-MCP-backed usage lookup for an unproxied MCP server
            required:
                - buckets
        GetUnproxiedMcpServerUserUsageResult:
            type: object
            properties:
                next_cursor:
                    type: string
                    description: Cursor for next page
                users:
                    type: array
                    items:
                        $ref: '#/components/schemas/UnproxiedMcpServerUserUsageRow'
            description: Result of a Shadow-MCP-backed per-user usage lookup for an unproxied MCP server
            required:
                - users
        GetUserMetricsSummaryPayload:
            type: object
            properties:
                account_type:
                    type: string
                    description: Optional account type filter ('team' or 'personal')
                event_source:
                    type: string
                    description: Optional event source filter (e.g. 'hook')
                external_org_id:
                    type: string
                    description: Optional filter to a single AI account by its provider org id; scopes metrics to that one account
                external_user_id:
                    type: string
                    description: External user ID to get metrics for (mutually exclusive with user_id)
                from:
                    type: string
                    description: Start time in ISO 8601 format
                    example: "2025-12-19T10:00:00Z"
                    format: date-time
                hook_source:
                    type: string
                    description: Optional hook source filter (e.g. 'cursor', 'claude-code')
                to:
                    type: string
                    description: End time in ISO 8601 format
                    example: "2025-12-19T11:00:00Z"
                    format: date-time
                user_id:
                    type: string
                    description: User ID to get metrics for (mutually exclusive with external_user_id)
            description: Payload for getting user-level metrics summary
            required:
                - from
                - to
        GetUserMetricsSummaryResult:
            type: object
            properties:
                metrics:
                    $ref: '#/components/schemas/ProjectSummary'
            description: Result of user metrics summary query
            required:
                - metrics
        GlobalRemoteSessionIssuer:
            type: object
            properties:
                ema_binding_count:
                    type: integer
                    description: Number of active identity-chaining bindings that block deletion and must be explicitly unlinked by their owning organizations. Included in the detail response; omitted from listings.
                    format: int64
                global_client_count:
                    type: integer
                    description: Number of non-deleted global remote_session_clients (project_id NULL, organization_id NULL) registered with this issuer. These block a delete and the platform admin can remove them here.
                    format: int64
                issuer:
                    $ref: '#/components/schemas/RemoteSessionIssuer'
                tenant_client_count:
                    type: integer
                    description: Number of non-deleted remote_session_clients owned by an organization or project that are registered with this issuer. These block a delete but only their owning organization can remove them.
                    format: int64
                trusted_user_session_issuer_count:
                    type: integer
                    description: Number of active tenant-owned user_session_issuers that trust this issuer. These block deletion and must be unlinked by their owning organizations.
                    format: int64
            description: 'A platform-administrator view of a global remote_session_issuer: the issuer plus the reference counts that can block deletion.'
            required:
                - issuer
                - global_client_count
                - tenant_client_count
                - trusted_user_session_issuer_count
        HTTPToolDefinition:
            type: object
            properties:
                annotations:
                    $ref: '#/components/schemas/ToolAnnotations'
                asset_id:
                    type: string
                    description: The ID of the asset
                canonical:
                    $ref: '#/components/schemas/CanonicalToolAttributes'
                canonical_name:
                    type: string
                    description: The canonical name of the tool. Will be the same as the name if there is no variation.
                confirm:
                    type: string
                    description: Confirmation mode for the tool
                confirm_prompt:
                    type: string
                    description: Prompt for the confirmation
                created_at:
                    type: string
                    description: The creation date of the tool.
                    format: date-time
                default_server_url:
                    type: string
                    description: The default server URL for the tool
                deployment_id:
                    type: string
                    description: The ID of the deployment
                description:
                    type: string
                    description: Description of the tool
                http_method:
                    type: string
                    description: HTTP method for the request
                id:
                    type: string
                    description: The ID of the tool
                name:
                    type: string
                    description: The name of the tool
                openapiv3_document_id:
                    type: string
                    description: The ID of the OpenAPI v3 document
                openapiv3_operation:
                    type: string
                    description: OpenAPI v3 operation
                package_name:
                    type: string
                    description: The name of the source package
                path:
                    type: string
                    description: Path for the request
                project_id:
                    type: string
                    description: The ID of the project
                response_filter:
                    $ref: '#/components/schemas/ResponseFilter'
                schema:
                    type: string
                    description: JSON schema for the request
                schema_version:
                    type: string
                    description: Version of the schema
                security:
                    type: string
                    description: Security requirements for the underlying HTTP endpoint
                summarizer:
                    type: string
                    description: Summarizer for the tool
                summary:
                    type: string
                    description: Summary of the tool
                tags:
                    type: array
                    items:
                        type: string
                    description: The tags list for this http tool
                tool_urn:
                    type: string
                    description: The URN of this tool
                updated_at:
                    type: string
                    description: The last update date of the tool.
                    format: date-time
                variation:
                    $ref: '#/components/schemas/ToolVariation'
            description: An HTTP tool
            required:
                - summary
                - tags
                - http_method
                - path
                - schema
                - deployment_id
                - asset_id
                - id
                - project_id
                - name
                - canonical_name
                - description
                - tool_urn
                - created_at
                - updated_at
        HiddenMcpServer:
            type: object
            properties:
                hidden_at:
                    type: string
                    description: When the user hid the server.
                    format: date-time
                mcp_server_id:
                    type: string
                    description: The hidden MCP server.
                    format: uuid
                name:
                    type: string
                    description: The server's display name, when it has one.
                project_id:
                    type: string
                    description: The server's project.
                    format: uuid
                project_slug:
                    type: string
                    description: The server's project slug.
                slug:
                    type: string
                    description: The server's slug, when it has one.
            description: An MCP server the signed-in user hid.
            required:
                - mcp_server_id
                - project_id
                - project_slug
                - hidden_at
        HideAgentMcpServerRequestBody:
            type: object
            properties:
                mcp_server_id:
                    type: string
                    description: The MCP server, as getMyConnections reports it.
                    format: uuid
            required:
                - mcp_server_id
        HideMcpServerRequestBody:
            type: object
            properties:
                mcp_server_id:
                    type: string
                    description: The MCP server.
                    format: uuid
            required:
                - mcp_server_id
        HookDeliveryFailureData:
            type: object
            properties:
                arch:
                    type: string
                    description: CPU architecture of the device.
                    maxLength: 32
                attempted_at:
                    type: string
                    description: RFC3339 time the failed send started, on the device clock.
                    format: date-time
                attempts:
                    type: integer
                    description: Number of send attempts the client made.
                    format: int64
                binary_version:
                    type: string
                    description: speakeasy-hooks binary version that made the attempt.
                    maxLength: 64
                cause:
                    type: string
                    description: Failure class the hook sender observed. http means the control plane answered with a retryable status.
                    enum:
                        - dns
                        - tls
                        - timeout
                        - canceled
                        - connection
                        - unreadable-response
                        - unknown
                        - http
                delivery_phase:
                    type: string
                    description: Whether a failed send was a live hook or a spool-drain replay.
                    enum:
                        - live
                        - drain
                elapsed_ms:
                    type: integer
                    description: Wall time the client spent on the send across its attempts, in milliseconds.
                    format: int64
                failed_event_type:
                    type: string
                    description: Canonical type of the event whose delivery failed. Bounded to the hook activity event vocabulary because it is a metric dimension; a report never describes another report.
                    enum:
                        - session.started
                        - session.updated
                        - session.ended
                        - mcp.inventory
                        - prompt.submitted
                        - tool.requested
                        - tool.completed
                        - tool.failed
                        - assistant.responded
                        - assistant.thought
                        - usage.reported
                        - skill.activated
                        - notification.reported
                failed_idempotency_key:
                    type: string
                    description: Idempotency key of the event that failed, so the report joins to the row its eventual replay produces.
                    maxLength: 256
                gating:
                    type: boolean
                    description: Whether the send gated an agent action (a verdict was awaited) rather than observing one.
                harness:
                    type: string
                    description: Coding agent harness the hook ran under.
                    maxLength: 64
                harness_variant:
                    type: string
                    description: Harness variant, when the harness distinguishes one.
                    maxLength: 64
                harness_version:
                    type: string
                    description: Harness version, when known.
                    maxLength: 64
                os:
                    type: string
                    description: Operating system of the device.
                    maxLength: 32
                session_id:
                    type: string
                    description: Session id of the event that failed.
                    maxLength: 256
                spool_depth:
                    type: integer
                    description: Events waiting in the device's offline spool when the report was written.
                    format: int64
                status_code:
                    type: integer
                    description: HTTP status of the final attempt, 0 when no response arrived.
                    format: int64
            description: Device-side delivery failure report, sent with event type client.delivery_failed and a required Idempotency-Key so each failure counts once. The speakeasy-hooks binary writes one when an event could not reach the control plane and redelivers it from the offline spool once connectivity returns, so the record describes the original attempt rather than the request that carried it. It is diagnostic only and never counts as agent activity.
            required:
                - failed_event_type
                - delivery_phase
                - cause
                - attempted_at
        HookIngestData:
            type: object
            properties:
                delivery_failure:
                    $ref: '#/components/schemas/HookDeliveryFailureData'
                mcp:
                    $ref: '#/components/schemas/HookMCPData'
                mcp_attribution:
                    type: array
                    items:
                        $ref: '#/components/schemas/HookMCPAttributionEntry'
                    description: Transcript-derived per-request MCP attribution (Claude Stop/SubagentStop).
                mcp_inventory:
                    type: array
                    items:
                        $ref: '#/components/schemas/HookMCPData'
                    description: Configured MCP server snapshot captured at session start or configuration change. Transport credentials must be redacted by the sender.
                mcp_inventory_collected:
                    type: boolean
                    description: Whether the sender was able to read the agent's MCP server list for this session. True with an empty mcp_inventory means the agent genuinely has no servers configured; absent or false means the list could not be read (no agent binary, a failed probe) and the inventory says nothing about what the session can reach. Enforcement that treats a missing inventory as proof of absence must consult this first.
                message:
                    $ref: '#/components/schemas/HookMessageData'
                notification:
                    $ref: '#/components/schemas/HookNotificationData'
                prompt:
                    $ref: '#/components/schemas/HookPromptData'
                prompt_attachments:
                    type: array
                    items:
                        $ref: '#/components/schemas/HookPromptAttachmentEntry'
                    description: Transcript-derived prompt attachment content (Claude Stop/SubagentStop/SessionEnd).
                skill:
                    $ref: '#/components/schemas/HookSkillData'
                tool_call:
                    $ref: '#/components/schemas/HookToolCallData'
                usage:
                    $ref: '#/components/schemas/HookUsageData'
            description: Feature-specific payloads. Hooks populate only the blocks needed for the event.
        HookIngestEvent:
            type: object
            properties:
                occurred_at:
                    type: string
                    description: RFC3339 timestamp from the local agent. Defaults to receive time when absent.
                    format: date-time
                type:
                    type: string
                    description: Canonical Speakeasy hook event type.
                    enum:
                        - session.started
                        - session.updated
                        - session.ended
                        - mcp.inventory
                        - prompt.submitted
                        - tool.requested
                        - tool.completed
                        - tool.failed
                        - assistant.responded
                        - assistant.thought
                        - usage.reported
                        - skill.activated
                        - notification.reported
                        - client.delivery_failed
            description: Canonical Speakeasy feature event.
            required:
                - type
        HookIngestSession:
            type: object
            properties:
                cwd:
                    type: string
                    description: Current working directory when the event fired.
                id:
                    type: string
                    description: Stable conversation or session identifier.
                model:
                    type: string
                    description: Model identifier reported by the local agent.
                turn_id:
                    type: string
                    description: Generation, request, or turn identifier.
            description: Agent session and turn identity, independent of provider naming.
        HookIngestSource:
            type: object
            properties:
                adapter:
                    type: string
                    description: Stable adapter slug, e.g. claude, cursor, codex, or a customer hook name.
                adapter_version:
                    type: string
                    description: Adapter implementation version.
                hostname:
                    type: string
                    description: Hostname of the machine that emitted the hook event.
                raw_event_name:
                    type: string
                    description: Provider-native event name, if one exists.
                user_email:
                    type: string
                    description: Self-reported email of the developer on the emitting machine (device agent or provider account), used for attribution when the API key is shared org-wide.
            description: Metadata about the local hook adapter that translated a provider event into the Speakeasy hook contract.
            required:
                - adapter
        HookMCPAttributionEntry:
            type: object
            properties:
                mcp_server:
                    type: string
                    description: Unredacted MCP server name from the transcript.
                mcp_tool:
                    type: string
                    description: Unredacted MCP tool name from the transcript.
                request_id:
                    type: string
                    description: Provider API request identifier (e.g. Claude's req_*) the attribution applies to.
            description: Transcript-derived MCP attribution for one model API request. Claude redacts user-configured MCP server names to 'custom' on its OTEL telemetry, but records the real names in the local session transcript; hooks ship them here so ingest can restore the redacted names.
            required:
                - request_id
        HookMCPData:
            type: object
            properties:
                command:
                    type: string
                    description: MCP server command, when available.
                result_json:
                    type: string
                    description: JSON-encoded MCP tool result, when reported as a string.
                server_identity:
                    type: string
                    description: Stable server identity inferred by the hook adapter.
                server_name:
                    type: string
                    description: Provider-reported MCP server name.
                url:
                    type: string
                    description: MCP server URL, when available.
            description: MCP feature payload.
        HookMessageData:
            type: object
            properties:
                duration_ms:
                    type: number
                    description: Message or thinking-block duration in milliseconds, when reported.
                    format: double
                role:
                    type: string
                    description: Message role, e.g. assistant or user.
                text:
                    type: string
                    description: Message text.
            description: Assistant/user message payload.
        HookNotificationData:
            type: object
            properties:
                message:
                    type: string
                    description: Notification message.
                title:
                    type: string
                    description: Notification title.
                type:
                    type: string
                    description: Notification type.
            description: Local agent notification payload.
        HookPromptAttachmentEntry:
            type: object
            properties:
                attachment_kind:
                    type: string
                    description: Provider attachment kind, such as file or directory.
                content:
                    type: string
                    description: Attachment text visible to the model.
                display_path:
                    type: string
                    description: Provider display path for the attachment, when available.
                entry_uuid:
                    type: string
                    description: Provider transcript entry UUID. Used as the stable attachment identifier.
                file_path:
                    type: string
                    description: Absolute provider-reported file or directory path, when available.
                num_lines:
                    type: integer
                    description: Number of lines included in the attachment window, when reported.
                    format: int64
                prompt_id:
                    type: string
                    description: Prompt identifier of the user turn this attachment belongs to, when the transcript parent chain resolves.
                prompt_sha256:
                    type: string
                    description: Lowercase hex SHA-256 of the trimmed prompt text stored for the parent user message, when available.
                start_line:
                    type: integer
                    description: First one-based source line included in the attachment window, when reported.
                    format: int64
                timestamp:
                    type: string
                    description: Provider transcript timestamp for this attachment, when available.
                total_lines:
                    type: integer
                    description: Total source file lines, when reported.
                    format: int64
            description: Transcript-derived content that a provider attached to a submitted prompt, such as Claude Code @file and @directory mentions.
            required:
                - entry_uuid
                - attachment_kind
                - content
        HookPromptData:
            type: object
            properties:
                text:
                    type: string
                    description: User prompt text.
            description: Prompt feature payload.
        HookSkillData:
            type: object
            properties:
                name:
                    type: string
                    description: Activated skill name.
                    maxLength: 256
                raw_sha256:
                    type: string
                    description: SHA-256 of the raw skill manifest, if available.
                    maxLength: 128
                source:
                    type: string
                    description: Skill source or namespace, if available.
                    maxLength: 256
                source_level:
                    type: string
                    description: Scope where the skill was resolved, if available.
                    maxLength: 64
                source_path:
                    type: string
                    description: Local path where the skill was resolved, if available.
                    maxLength: 4096
            description: Skill activation payload.
            required:
                - name
        HookSourceUsage:
            type: object
            properties:
                event_count:
                    type: integer
                    description: Total hook events for this source
                    format: int64
                source:
                    type: string
                    description: Hook source (from attributes.gram.hook.source)
            description: Hook source usage statistics
            required:
                - source
                - event_count
        HookToolCallData:
            type: object
            properties:
                duration_ms:
                    type: number
                    description: Tool execution duration in milliseconds, when reported.
                    format: double
                error:
                    description: Tool error payload.
                id:
                    type: string
                    description: Provider tool call identifier.
                input:
                    description: Tool input payload.
                is_interrupt:
                    type: boolean
                    description: Whether the failure was caused by user interruption.
                name:
                    type: string
                    description: Tool name.
                output:
                    description: Tool output payload.
                permission_type:
                    type: string
                    description: Permission type requested by the agent, when applicable.
                status:
                    type: string
                    description: Provider-reported tool call status, when available.
            description: Tool call feature payload.
        HookTraceSummary:
            type: object
            properties:
                block_reason:
                    type: string
                    description: Reason set when hook_status is 'blocked' (e.g. shadow-MCP guard rejection)
                event_source:
                    type: string
                    description: Event source (from materialized column)
                gram_urn:
                    type: string
                    description: Speakeasy URN associated with this hook trace
                hook_source:
                    type: string
                    description: Hook source (from attributes.gram.hook.source)
                hook_status:
                    type: string
                    description: Hook execution status
                    enum:
                        - success
                        - failure
                        - pending
                        - blocked
                log_count:
                    type: integer
                    description: Total number of logs in this trace
                    format: int64
                skill_name:
                    type: string
                    description: Skill name (from materialized column, only for Skill tool)
                start_time_unix_nano:
                    type: string
                    description: Earliest log timestamp in Unix nanoseconds (string for JS int64 precision)
                tool_name:
                    type: string
                    description: Tool name (from materialized column)
                tool_source:
                    type: string
                    description: Tool call source (from materialized column)
                trace_id:
                    type: string
                    description: Trace ID (32 hex characters)
                    pattern: ^[a-f0-9]{32}$
                user_email:
                    type: string
                    description: User email (from attributes.user.email)
            description: Summary information for a hook trace
            required:
                - trace_id
                - start_time_unix_nano
                - log_count
                - gram_urn
        HookUsageData:
            type: object
            properties:
                cache_read_tokens:
                    type: integer
                    description: Cache read token count.
                    format: int64
                cache_write_tokens:
                    type: integer
                    description: Cache write token count.
                    format: int64
                cost:
                    type: number
                    description: Reported cost.
                    format: double
                input_tokens:
                    type: integer
                    description: Input token count.
                    format: int64
                loop_count:
                    type: integer
                    description: Agent loop count, when reported.
                    format: int64
                output_tokens:
                    type: integer
                    description: Output token count.
                    format: int64
                status:
                    type: string
                    description: Provider-reported usage or session status, when available.
            description: Token and cost usage payload.
        HooksBreakdownRow:
            type: object
            properties:
                event_count:
                    type: integer
                    description: Total events for this combination
                    format: int64
                failure_count:
                    type: integer
                    description: Number of failures for this combination
                    format: int64
                hook_source:
                    type: string
                    description: Hook source (e.g. claude-desktop, cursor)
                server_name:
                    type: string
                    description: Server name ('local' for non-MCP tools)
                tool_name:
                    type: string
                    description: Tool name
                user_email:
                    type: string
                    description: User email address
            description: 'Cross-dimensional aggregation row: one entry per unique (user, server, hook_source, tool) combination'
            required:
                - user_email
                - server_name
                - hook_source
                - tool_name
                - event_count
                - failure_count
        HooksServerSummary:
            type: object
            properties:
                event_count:
                    type: integer
                    description: Total number of hook events for this server
                    format: int64
                failure_count:
                    type: integer
                    description: Number of failed tool completions (PostToolUseFailure events)
                    format: int64
                failure_rate:
                    type: number
                    description: Failure rate as a decimal (0.0 to 1.0)
                    format: double
                server_name:
                    type: string
                    description: Server name (extracted from tool name, or 'local' for non-MCP tools)
                success_count:
                    type: integer
                    description: Number of successful tool completions (PostToolUse events)
                    format: int64
                unique_tools:
                    type: integer
                    description: Number of unique tools used for this server
                    format: int64
            description: Aggregated hooks metrics for a single server
            required:
                - server_name
                - event_count
                - unique_tools
                - success_count
                - failure_count
                - failure_rate
        HooksStatus:
            type: object
            properties:
                agent_hooks_key:
                    type: boolean
                    description: An active hooks-scoped API key exists, as minted by the hooks setup dialog, the plugin download or the setup wizard.
                anthropic_inference_hooks:
                    type: boolean
                    description: An enabled Anthropic inference hooks integration is connected.
                configured:
                    type: boolean
                    description: True when at least one hook source is configured for the organization.
            description: Whether the organization has hook telemetry configured. True when any source is set up; it says nothing about whether traffic has arrived.
            required:
                - configured
                - agent_hooks_key
                - anthropic_inference_hooks
        HooksTimeSeriesPoint:
            type: object
            properties:
                bucket_start_ns:
                    type: string
                    description: Bucket start time in Unix nanoseconds (string for JS int64 precision)
                event_count:
                    type: integer
                    description: Number of events in this bucket
                    format: int64
                failure_count:
                    type: integer
                    description: Number of failed hook events in this bucket
                    format: int64
                server_name:
                    type: string
                    description: Server name
                user_email:
                    type: string
                    description: User email address
            description: A single time-series bucket for hooks activity
            required:
                - bucket_start_ns
                - server_name
                - user_email
                - event_count
                - failure_count
        HooksUserSummary:
            type: object
            properties:
                event_count:
                    type: integer
                    description: Total number of hook events for this user
                    format: int64
                failure_count:
                    type: integer
                    description: Number of failed tool completions (PostToolUseFailure events)
                    format: int64
                failure_rate:
                    type: number
                    description: Failure rate as a decimal (0.0 to 1.0)
                    format: double
                success_count:
                    type: integer
                    description: Number of successful tool completions (PostToolUse events)
                    format: int64
                unique_tools:
                    type: integer
                    description: Number of unique tools used by this user
                    format: int64
                user_email:
                    type: string
                    description: User email address
            description: Aggregated hooks metrics for a single user
            required:
                - user_email
                - event_count
                - unique_tools
                - success_count
                - failure_count
                - failure_rate
        IdentityChainingPreparation:
            type: object
            properties:
                binding_id:
                    type: string
                client_id:
                    type: string
                    description: Exact selected remote_session_client row ID, when available.
                connection_scopes:
                    type: array
                    items:
                        type: string
                    description: 'Scopes preparing identity chaining again would record now, sorted: what an interactive sign-in through the selected client requests for this server, or the recorded scopes when the binding has no server connection to follow or the connection names only OpenID Connect scopes while the recorded ones name others. Returned by readEMA and prepareEMA when a client is selected.'
                ema_providers:
                    $ref: '#/components/schemas/EMAProviderOrder'
                external_client_id:
                    type: string
                    description: Public OAuth client identifier, never a secret.
                generation:
                    type: integer
                    format: int64
                grant_source:
                    type: string
                    description: Provenance of recorded grants, not provider trust.
                grant_types:
                    type: array
                    items:
                        type: string
                    description: Null means unknown; an empty array means no recorded grants.
                issuer:
                    type: string
                last_accepted_at:
                    type: string
                    description: When the vendor last accepted an assertion for this binding from a provider that can serve it now, so chaining has worked for it. Omitted when none is recorded for a usable provider or acceptance could not be read. Returned by readEMA only.
                    format: date-time
                remediation:
                    type: string
                    description: Safe next action without provider bodies or credentials.
                resource:
                    type: string
                retryable:
                    type: boolean
                scopes:
                    type: array
                    items:
                        type: string
                    description: Scopes recorded on the binding when identity chaining was turned on. Identity chaining requests exactly these, without OpenID Connect scopes; when that leaves none, an ID-JAG naming a scope outside these is rejected. Changes to the server connection apply only when identity chaining is prepared again.
                scopes_out_of_date:
                    type: boolean
                    description: True when connection_scopes differs from scopes; prepareEMA with the current expected_generation applies connection_scopes. Returned by readEMA and prepareEMA when a client is selected.
                stage:
                    type: string
                    enum:
                        - selection
                        - eligibility
                        - registration
                        - discovery
                        - publication
                state:
                    type: string
                    description: Preparation state; readiness never proves user access.
                    enum:
                        - unsupported_profile
                        - incomplete_metadata
                        - unknown_grants
                        - manual_setup_required
                        - configuration_required
                        - in_progress
                        - indeterminate
                        - provider_rejection
                        - transient_failure
                        - published_acceptance_unverified
                        - ready
                        - unlinked
            required:
                - state
                - stage
                - remediation
                - retryable
                - generation
                - resource
                - scopes
                - grant_source
        IdentityDirectory:
            type: object
            properties:
                cost_center_name:
                    type: string
                    description: The directory cost centre.
                department_name:
                    type: string
                    description: The directory department.
                division_name:
                    type: string
                    description: The directory division.
                employee_type:
                    type: string
                    description: The directory employment type.
                groups:
                    type: array
                    items:
                        type: string
                    description: The directory groups the identity currently belongs to.
                job_title:
                    type: string
                    description: The directory job title.
            description: 'WorkOS Directory Sync attributes for an identity. Every field is mapped by the customer''s IdP: scalar attributes are absent when unset or blank, and ''groups'' is always present, empty when the identity belongs to none.'
            required:
                - groups
        IdentityModel:
            type: object
            properties:
                canonical_urn:
                    type: string
                    description: The identity URN clients should navigate to. Resolving any URN for the same subject returns this one, so links built from different identifiers converge on a single page.
                directory:
                    $ref: '#/components/schemas/IdentityDirectory'
                display_name:
                    type: string
                    description: The subject's name, falling back to its primary email.
                emails:
                    type: array
                    items:
                        type: string
                    description: Every address the subject is known by — directory email first, then linked AI account emails. Telemetry and cost aggregate over this set.
                external_user_ids:
                    type: array
                    items:
                        type: string
                    description: The identifiers agents report for this subject. Risk findings key on these.
                kind:
                    type: string
                    description: 'What sort of subject this is: ''user'' for a directory user, ''apikey'' for a subject acting under an API key, ''agent'' for an agent identity, or ''unattributed'' for activity that cannot be attributed to exactly one directory user — an identifier matching no directory row, or one several members claim.'
                    enum:
                        - user
                        - apikey
                        - agent
                        - unattributed
                photo_url:
                    type: string
                    description: The subject's avatar, when the directory supplied one.
                user_ids:
                    type: array
                    items:
                        type: string
                    description: The Speakeasy user ids this identity resolves to, the first being the directory owner. Empty when the subject matches no directory row. Audit logs, chats, user sessions and plugin assignments key on these.
                workos_user_id:
                    type: string
                    description: The WorkOS user id, which RBAC role assignments key on. Absent for subjects with no WorkOS link.
            description: One subject with every identifier its activity is keyed under, so a client can query each subsystem with the identifier that subsystem expects.
            required:
                - kind
                - canonical_urn
                - display_name
                - user_ids
                - emails
                - external_user_ids
                - directory
        IdentityProviderConnectionActiveKey:
            type: object
            properties:
                activated_at:
                    type: string
                    description: ISO 8601 timestamp when the key became the signer.
                    format: date-time
                id:
                    type: string
                    description: JSON Web Key row ID.
                    format: uuid
                kid:
                    type: string
                    description: Key ID as published in the JWKS document.
            description: The published signing key the identity provider currently trusts. Omitted after revocation.
            required:
                - id
                - kid
                - activated_at
        IdentityProviderConnectionApplication:
            type: object
            properties:
                features:
                    type: array
                    items:
                        type: string
                first_seen_at:
                    type: string
                    format: date-time
                group_assignments:
                    type: integer
                    description: Live group assignments.
                    format: int64
                label:
                    type: string
                    description: Admin-facing label. Admin-editable; never a key.
                last_seen_at:
                    type: string
                    format: date-time
                name:
                    type: string
                    description: Okta application template name.
                okta_app_id:
                    type: string
                    description: Okta application id.
                removed_at:
                    type: string
                    description: Set when the application disappeared from a run; only returned with include_removed.
                    format: date-time
                sign_on_mode:
                    type: string
                status:
                    type: string
                    description: ACTIVE or INACTIVE.
                user_assignments:
                    type: integer
                    description: Live direct and group-derived user assignments.
                    format: int64
            description: One Okta application in the snapshot, keyed by its Okta id.
            required:
                - okta_app_id
                - label
                - name
                - sign_on_mode
                - status
                - features
                - user_assignments
                - group_assignments
                - first_seen_at
                - last_seen_at
        IdentityProviderConnectionApplicationsSync:
            type: object
            properties:
                requested_at:
                    type: string
                    description: ISO 8601 timestamp of the last syncApplications call; a request newer than synced_at runs on the next coordinator pass.
                    format: date-time
                synced_at:
                    type: string
                    description: ISO 8601 timestamp when the last completed run started. Omitted until the first run.
                    format: date-time
            description: Watermarks of the scheduled applications snapshot. The snapshot is reconciled on a fixed platform-wide schedule.
        IdentityProviderConnectionChecklistItem:
            type: object
            properties:
                completed:
                    type: boolean
                    description: Whether the last verification observed this step done. Omitted for steps the server cannot observe; the administrator tracks those.
                description:
                    type: string
                    description: What to do in the console, including any value copied from this connection.
                details:
                    type: array
                    items:
                        type: string
                    description: 'Supporting lines under the description: ordered sub-steps for the public-key step, otherwise notes or the values to enter. Empty when the description says it all.'
                group:
                    type: string
                    description: 'Which phase the step belongs to: connect (the service app the connection authenticates with) or cross_app_access (the AI agent).'
                    enum:
                        - connect
                        - cross_app_access
                key:
                    type: string
                    description: Stable step identifier.
                    enum:
                        - add_oin_app
                        - create_api_services_app
                        - public_key_auth
                        - dpop
                        - grant_scopes
                        - assign_admin_roles
                        - submit_client_id
                        - register_ai_agent
                        - link_agent_app
                        - activate_agent_app
                        - record_ai_agent
                        - add_agent_public_key
                        - first_resource_connection
                title:
                    type: string
                    description: Short step title.
            description: One step the organization administrator completes in the identity provider's console. Ordered; keys are stable across responses.
            required:
                - key
                - group
                - title
                - description
                - details
        IdentityProviderConnectionReconcileRun:
            type: object
            properties:
                applications_added:
                    type: integer
                    format: int64
                applications_removed:
                    type: integer
                    format: int64
                applications_seen:
                    type: integer
                    description: Applications in the snapshot after skipping Okta-internal ones.
                    format: int64
                assignments_added:
                    type: integer
                    format: int64
                assignments_removed:
                    type: integer
                    format: int64
                error:
                    type: string
                    description: Typed reason when the run failed. rate_limited and okta_unreachable are retried before being recorded; superseded means a newer run applied first; discarded means the connection stopped being verified during the run; interrupted means the worker died.
                    enum:
                        - rate_limited
                        - credential_rejected
                        - okta_unreachable
                        - client_unavailable
                        - superseded
                        - discarded
                        - interrupted
                finished_at:
                    type: string
                    description: Omitted while running.
                    format: date-time
                id:
                    type: string
                    description: Run ID.
                    format: uuid
                skipped_app_ids:
                    type: array
                    items:
                        type: string
                    description: Okta-internal application ids left out of the snapshot.
                started_at:
                    type: string
                    format: date-time
                status:
                    type: string
                    description: running, succeeded, or failed.
                    enum:
                        - running
                        - succeeded
                        - failed
                truncated:
                    type: boolean
                    description: Whether a listing hit the page or application cap; nothing missing from a truncated listing is removed.
            description: One applications snapshot run and the changes it applied.
            required:
                - id
                - status
                - started_at
                - applications_seen
                - applications_added
                - applications_removed
                - assignments_added
                - assignments_removed
                - skipped_app_ids
                - truncated
        InferenceSpendCap:
            type: object
            properties:
                credits_used:
                    type: number
                    description: Monthly usage in USD
                    format: double
                disabled:
                    type: boolean
                    description: Whether the platform-managed key is disabled
                key_type:
                    type: string
                    description: The platform-managed inference function
                    enum:
                        - chat
                        - internal
                monthly_credits:
                    type: integer
                    description: The enforced monthly spend cap in USD
                    format: int64
            required:
                - key_type
                - credits_used
                - monthly_credits
                - disabled
        InfoResponseBody:
            type: object
            properties:
                accepted_signup_offer_flow:
                    type: string
                    description: Display-only signup offer variant for an accepted promotion; not billing eligibility
                active_organization_dashboard_url:
                    type: string
                    description: Dashboard base URL of the platform host the active organization lives on. Set only for an ordinary session whose request arrived on a different platform host; the dashboard moves there.
                    format: uri
                active_organization_id:
                    type: string
                gram_account_type:
                    type: string
                has_active_subscription:
                    type: boolean
                    description: Whether the organization has an active billing subscription
                impersonator_email:
                    type: string
                    description: The WorkOS Dashboard operator who initiated this impersonation session. Empty for ordinary authentication.
                is_admin:
                    type: boolean
                organization_override:
                    type: boolean
                    description: Whether this is a validated, time-bounded organization support session.
                organization_override_expires_at:
                    type: string
                    description: Fixed expiration of the organization support session.
                    format: date-time
                organizations:
                    type: array
                    items:
                        $ref: '#/components/schemas/OrganizationEntry'
                trial:
                    $ref: '#/components/schemas/Trial'
                user_display_name:
                    type: string
                user_email:
                    type: string
                user_id:
                    type: string
                user_photo_url:
                    type: string
                user_signature:
                    type: string
                whitelisted:
                    type: boolean
                    description: Whether the organization is whitelisted to access the platform
            required:
                - user_id
                - user_email
                - is_admin
                - organization_override
                - active_organization_id
                - organizations
                - gram_account_type
                - has_active_subscription
                - whitelisted
        IngestHookPayload:
            type: object
            properties:
                data:
                    $ref: '#/components/schemas/HookIngestData'
                event:
                    $ref: '#/components/schemas/HookIngestEvent'
                idempotency_key:
                    type: string
                    description: Optional per-invocation token reused across retries so the server stores a redelivered event exactly once.
                raw:
                    description: Original provider payload for debugging. The backend does not use this for feature behavior.
                schema_version:
                    type: string
                    description: Contract version. The current version is hook.ingest.v1.
                session:
                    $ref: '#/components/schemas/HookIngestSession'
                source:
                    $ref: '#/components/schemas/HookIngestSource'
            description: Feature-first unified hook event payload.
            required:
                - schema_version
                - source
                - event
        IngestHookResult:
            type: object
            properties:
                decision:
                    type: string
                    description: Whether the local hook should allow or deny the action.
                    enum:
                        - allow
                        - deny
                effects:
                    type: object
                    description: Optional side-effect hints for hook SDKs.
                    additionalProperties: true
                message:
                    type: string
                    description: User-facing decision message.
                reason:
                    type: string
                    description: Machine-readable decision reason.
            description: Provider-neutral decision returned by the unified hook endpoint.
            required:
                - decision
        IngestRequestBody:
            type: object
            properties:
                data:
                    $ref: '#/components/schemas/HookIngestData'
                event:
                    $ref: '#/components/schemas/HookIngestEvent'
                raw:
                    description: Original provider payload for debugging. The backend does not use this for feature behavior.
                schema_version:
                    type: string
                    description: Contract version. The current version is hook.ingest.v1.
                session:
                    $ref: '#/components/schemas/HookIngestSession'
                source:
                    $ref: '#/components/schemas/HookIngestSource'
            required:
                - schema_version
                - source
                - event
        IngestRequestBody2:
            type: object
            properties:
                additional_provider_specific_params:
                    type: object
                    additionalProperties: true
                images:
                    type: array
                    items:
                        type: string
                input_type:
                    type: string
                    enum:
                        - request
                        - response
                litellm_call_id:
                    type: string
                litellm_trace_id:
                    type: string
                litellm_version:
                    type: string
                model:
                    type: string
                request_data:
                    $ref: '#/components/schemas/LiteLLMRequestData'
                request_headers:
                    type: object
                    additionalProperties:
                        type: string
                structured_messages:
                    type: array
                    items:
                        $ref: '#/components/schemas/LiteLLMStructuredMessage'
                texts:
                    type: array
                    items:
                        type: string
                tool_calls:
                    type: array
                    items: {}
                tools:
                    type: array
                    items: {}
            required:
                - input_type
                - request_data
        InstanceMcpServer:
            type: object
            properties:
                url:
                    type: string
                    description: The address of the MCP server
            required:
                - url
        Integration:
            type: object
            properties:
                package_description:
                    type: string
                package_description_raw:
                    type: string
                package_id:
                    type: string
                package_image_asset_id:
                    type: string
                package_keywords:
                    type: array
                    items:
                        type: string
                package_name:
                    type: string
                package_summary:
                    type: string
                package_title:
                    type: string
                package_url:
                    type: string
                tool_names:
                    type: array
                    items:
                        type: string
                version:
                    type: string
                    description: The latest version of the integration
                version_created_at:
                    type: string
                    format: date-time
                versions:
                    type: array
                    items:
                        $ref: '#/components/schemas/IntegrationVersion'
            required:
                - package_id
                - package_name
                - package_title
                - package_summary
                - version
                - version_created_at
                - tool_names
        IntegrationEntry:
            type: object
            properties:
                package_id:
                    type: string
                package_image_asset_id:
                    type: string
                package_keywords:
                    type: array
                    items:
                        type: string
                package_name:
                    type: string
                package_summary:
                    type: string
                package_title:
                    type: string
                package_url:
                    type: string
                tool_names:
                    type: array
                    items:
                        type: string
                version:
                    type: string
                version_created_at:
                    type: string
                    format: date-time
            required:
                - package_id
                - package_name
                - version
                - version_created_at
                - tool_names
        IntegrationVersion:
            type: object
            properties:
                created_at:
                    type: string
                    format: date-time
                version:
                    type: string
            required:
                - version
                - created_at
        InternalSessionIssuer:
            type: object
            properties:
                can_enable:
                    type: boolean
                    description: Whether deployment readiness, rollout and a verified email domain currently allow enabling this issuer. The caller still needs organization administrator access.
                issuer:
                    type: string
                    description: Issuer URI to register with supported services. It never changes.
                jwks_uri:
                    type: string
                    description: Public verification keys.
                keys:
                    type: array
                    items:
                        $ref: '#/components/schemas/InternalSessionIssuerKey'
                    description: Published keys.
                kms_cleanup_pending:
                    type: integer
                    description: Revoked keys whose signing material is not yet disabled. Speakeasy retries until it is.
                    format: int64
                replacement_error:
                    type: string
                    description: 'Set only by a compromised rotation whose replacement key could not be activated: the keys are contained, the issuer stays keyless, and repeating the call retries the replacement.'
                rotation_ready_at:
                    type: string
                    description: When a pending rotation can be activated.
                    format: date-time
                state:
                    type: string
                    description: 'unavailable: not offered to this organization yet. verified_domain_required: needs at least one verified email domain. setup_required: not enabled yet. enabled: Speakeasy signs with it. disabled: an admin turned signing off. signing_paused: enabled, but Speakeasy has paused all signing. keyless: every key was revoked after a compromise and no replacement is active yet.'
                    enum:
                        - unavailable
                        - verified_domain_required
                        - setup_required
                        - enabled
                        - disabled
                        - signing_paused
                        - keyless
            required:
                - state
                - can_enable
                - keys
                - kms_cleanup_pending
        InternalSessionIssuerKey:
            type: object
            properties:
                kid:
                    type: string
                    description: Key ID.
                state:
                    type: string
                    description: Lifecycle state.
                    enum:
                        - pending
                        - active
                        - retired
            required:
                - kid
                - state
        InterruptTurnRequestBody:
            type: object
            properties:
                assistant_id:
                    type: string
                    description: The assistant whose conversation should stop generating.
                    format: uuid
                chat_id:
                    type: string
                    description: The conversation to stop, as returned by sendMessage.
                    format: uuid
            required:
                - assistant_id
                - chat_id
        InterruptTurnResult:
            type: object
            properties:
                cancelled_queued:
                    type: integer
                    description: How many turns were dropped from the conversation's queue before any runtime claimed them.
                    format: int64
                interrupted:
                    type: boolean
                    description: Whether a turn in flight on the assistant runtime was cancelled.
                stopped:
                    type: boolean
                    description: Whether the call stopped anything. False means nothing was generating — the reply had already finished, or the conversation never started a turn.
            required:
                - stopped
                - interrupted
                - cancelled_queued
        IssuanceProfile:
            type: object
            properties:
                choices:
                    type: array
                    items:
                        $ref: '#/components/schemas/IssuanceProfileChoice'
                    description: The credential for each MCP server.
                id:
                    type: string
                    description: The profile id.
                    format: uuid
                name:
                    type: string
                    description: The profile's name.
                updated_at:
                    type: string
                    description: When the profile last changed.
                    format: date-time
                user_session_client_id:
                    type: string
                    description: The OAuth client the profile applies to, for a client.
                    format: uuid
                user_session_issuer_id:
                    type: string
                    description: The sign-in the caller's sessions come from.
                    format: uuid
                workload_issuer_id:
                    type: string
                    description: The workload issuer, for a workload subject.
                    format: uuid
                workload_subject:
                    type: string
                    description: The workload subject, for a workload.
            description: 'The upstream credentials a headless caller''s sessions use: an OAuth client or a workload subject that cannot choose in a browser. Each new session gets the choices that still validate; a token request may name its own instead.'
            required:
                - id
                - name
                - user_session_issuer_id
                - choices
                - updated_at
        IssuanceProfileChoice:
            type: object
            properties:
                auth_client_id:
                    type: string
                    description: The auth client. Omit for a server whose upstream needs no authentication.
                    format: uuid
                mcp_server_id:
                    type: string
                    description: The MCP server.
                    format: uuid
            description: The upstream credential a headless caller's sessions use on one MCP server.
            required:
                - mcp_server_id
        IssuerConvergenceCandidate:
            type: object
            properties:
                client_count:
                    type: integer
                    description: Number of non-deleted remote_session_clients that would move onto the target issuer.
                    format: int64
                endpoint_mismatches:
                    type: array
                    items:
                        $ref: '#/components/schemas/IssuerFieldMismatch'
                    description: The authorization-server metadata fields (issuer, token_endpoint, authorization_endpoint) that differ from the target, with both sides' values. Non-empty blocks the migration.
                issuer:
                    $ref: '#/components/schemas/RemoteSessionIssuer'
                organization_id:
                    type: string
                    description: The organization that owns the candidate. Empty for a legacy project-scoped issuer written before this column existed.
                organization_name:
                    type: string
                    description: Display name of the owning organization. Empty when the organization has no synced metadata.
                warnings:
                    type: array
                    items:
                        $ref: '#/components/schemas/IssuerFieldMismatch'
                    description: Non-blocking divergences (oidc, passthrough, scopes_supported), with both sides' values. The target issuer's values become authoritative for the migrated clients.
            description: An organization- or project-level remote_session_issuer that names the same upstream authorization server as a global issuer, and so could be consolidated onto it.
            required:
                - issuer
                - organization_id
                - organization_name
                - client_count
                - endpoint_mismatches
                - warnings
        IssuerFieldMismatch:
            type: object
            properties:
                field:
                    type: string
                    description: 'The differing field''s name: issuer, token_endpoint, authorization_endpoint, oidc, passthrough, or scopes_supported.'
                source_value:
                    type: string
                    description: The source issuer's value for a scalar field, rendered as a string. Null when the source leaves the field unset, and null for a list-valued field.
                source_values:
                    type: array
                    items:
                        type: string
                    description: The source issuer's entries for a list-valued field. Absent for a scalar field, and absent when the source's list is empty.
                target_value:
                    type: string
                    description: The target issuer's value for a scalar field, rendered as a string. Null when the target leaves the field unset, and null for a list-valued field.
                target_values:
                    type: array
                    items:
                        type: string
                    description: The target issuer's entries for a list-valued field. Absent for a scalar field, and absent when the target's list is empty.
            description: One remote_session_issuer field whose value differs between the source and target of a consolidation, with both sides' values.
            required:
                - field
        IssuerMigratePreflight:
            type: object
            properties:
                can_migrate:
                    type: boolean
                    description: 'TRUE when the migration would succeed: no active identity-chaining bindings, endpoint mismatches, conflicting MCP-server bindings, or user-session issuers that trust the source.'
                client_count:
                    type: integer
                    description: Number of non-deleted remote_session_clients that would be re-pointed from the source issuer to the target issuer.
                    format: int64
                conflicting_mcp_server_names:
                    type: array
                    items:
                        type: string
                    description: Display names of MCP servers where both the source and the target issuer already have a client bound. Non-empty blocks the migration; detach one client per listed server and retry.
                ema_binding_count:
                    type: integer
                    description: Number of active identity-chaining bindings on the source. Non-zero blocks migration; explicitly unlink these bindings before migration, then prepare new bindings for the target.
                    format: int64
                endpoint_mismatches:
                    type: array
                    items:
                        $ref: '#/components/schemas/IssuerFieldMismatch'
                    description: The authorization-server metadata fields (issuer, token_endpoint, authorization_endpoint) that differ between source and target, with both sides' values. Non-empty blocks the migration.
                mcp_server_names:
                    type: array
                    items:
                        type: string
                    description: Display names of MCP servers attached to the source issuer's clients.
                target_tenant_client_count:
                    type: integer
                    description: Number of tenant-owned remote_session_clients already registered with the target issuer, BEFORE this migration. Any non-zero value blocks deleting the target issuer, and only the owning organizations can clear it, so a successful migration is effectively one-way.
                    format: int64
                trusted_user_session_issuer_count:
                    type: integer
                    description: Number of user_session_issuers that trust the source. Any non-zero value blocks migration.
                    format: int64
                warnings:
                    type: array
                    items:
                        $ref: '#/components/schemas/IssuerFieldMismatch'
                    description: Non-blocking divergences (oidc, passthrough, scopes_supported), with both sides' values. The target issuer's values become authoritative for the migrated clients.
            description: 'Authoritative impact summary for consolidating a tenant remote_session_issuer onto a global one: how many clients move, which MCP servers are affected, every blocker that would make the migration fail, and how many tenant-owned clients the target already carries.'
            required:
                - ema_binding_count
                - client_count
                - mcp_server_names
                - endpoint_mismatches
                - conflicting_mcp_server_names
                - warnings
                - trusted_user_session_issuer_count
                - can_migrate
                - target_tenant_client_count
        JSONWebKey:
            type: object
            properties:
                activated_at:
                    type: string
                    description: When the key last became the set's active signing key.
                    format: date-time
                created_at:
                    type: string
                    description: When the key was published.
                    format: date-time
                external_key_id:
                    type: string
                    description: The external key the key was minted from. Signing for this kid always uses exactly this key, even after the set is re-pointed at another external key.
                    format: uuid
                id:
                    type: string
                    description: The ID of the published key.
                    format: uuid
                json_web_key_set_id:
                    type: string
                    description: The key set the key is published in.
                    format: uuid
                key_state:
                    type: string
                    description: 'The lifecycle state of the key. pending: published for verifier cache warm-up but not signing yet. active: the key new signatures use; at most one per set. retired: no longer signing, still published so outstanding tokens keep verifying. revoked: withdrawn entirely; tokens signed with it stop verifying.'
                    enum:
                        - pending
                        - active
                        - retired
                        - revoked
                kid:
                    type: string
                    description: 'The key ID: the RFC 7638 SHA-256 thumbprint of the public key, base64url-encoded. Carried in the JWK document and in the header of every token signed with the key.'
                organization_id:
                    type: string
                    description: The organization that owns the key.
                public_jwk:
                    description: The public JWK document (RFC 7517) as published, including kid, alg and use.
                retired_at:
                    type: string
                    description: When the key last left active signing use.
                    format: date-time
                revoked_at:
                    type: string
                    description: When the key was revoked.
                    format: date-time
                updated_at:
                    type: string
                    description: When the key was last updated.
                    format: date-time
            description: A published JSON Web Key inside a key set.
            required:
                - id
                - organization_id
                - json_web_key_set_id
                - external_key_id
                - kid
                - key_state
                - public_jwk
                - created_at
                - updated_at
        JSONWebKeySet:
            type: object
            properties:
                created_at:
                    type: string
                    description: When the key set was created.
                    format: date-time
                external_key_id:
                    type: string
                    description: 'The external key currently backing the set: new keys are published from it. Already-published keys keep signing with the external key they were minted from.'
                    format: uuid
                id:
                    type: string
                    description: The ID of the key set.
                    format: uuid
                name:
                    type: string
                    description: A human-readable name for the key set.
                organization_id:
                    type: string
                    description: The organization that owns the key set.
                updated_at:
                    type: string
                    description: When the key set was last updated.
                    format: date-time
            description: A JSON Web Key Set — a named collection of published public keys backed by an organization external key.
            required:
                - id
                - organization_id
                - external_key_id
                - name
                - created_at
                - updated_at
        JSONWebKeySetDeletePreflight:
            type: object
            properties:
                client_count:
                    type: integer
                    description: Number of live remote_session_clients referencing this set. Deleting the set is refused while this is non-zero.
                    format: int64
                client_ids:
                    type: array
                    items:
                        type: string
                    description: The client_id values of the referencing remote_session_clients, oldest first. Truncated when client_count exceeds the listing cap.
            required:
                - client_count
                - client_ids
        JudgeRequestBody:
            type: object
            properties:
                candidates:
                    type: array
                    items:
                        $ref: '#/components/schemas/LauncherCandidate'
                    description: Fuzzy-prefiltered candidates to rank.
                    maxItems: 32
                context:
                    $ref: '#/components/schemas/LauncherContext'
                query:
                    type: string
                    description: Text typed into the command palette so far.
                    maxLength: 200
            required:
                - query
                - candidates
        Key:
            type: object
            properties:
                created_at:
                    type: string
                    description: The creation date of the key.
                    format: date-time
                created_by_user_id:
                    type: string
                    description: The human creator; immutable authorizer for agent keys
                delegated_grants:
                    $ref: '#/components/schemas/AgentDelegatedPolicy'
                delegated_grants_version:
                    type: integer
                    description: Delegated policy format version
                    format: int64
                expires_at:
                    type: string
                    description: Required expiry for an agent key; legacy keys may not expire.
                    format: date-time
                id:
                    type: string
                    description: The ID of the key
                key:
                    type: string
                    description: The token of the api key (only returned on key creation or rotation)
                key_prefix:
                    type: string
                    description: The store prefix of the api key for recognition
                last_accessed_at:
                    type: string
                    description: When the key was last accessed.
                    format: date-time
                name:
                    type: string
                    description: The name of the key
                organization_id:
                    type: string
                    description: The organization ID this key belongs to
                policy_grants:
                    type: array
                    items:
                        $ref: '#/components/schemas/APIKeyPolicyGrant'
                    description: An ordinary key's own policy
                project_id:
                    type: string
                    description: The optional project ID this key is scoped to
                scopes:
                    type: array
                    items:
                        type: string
                    description: Legacy transport scopes; always empty for agent keys
                subject_urn:
                    type: string
                    description: Principal authenticated by this key; agent keys use agent:<uuid>
                updated_at:
                    type: string
                    description: When the key was last updated.
                    format: date-time
            required:
                - id
                - organization_id
                - created_by_user_id
                - name
                - key_prefix
                - scopes
                - created_at
                - updated_at
        KillswitchBatchUserBadgesRequest:
            type: object
            properties:
                user_ids:
                    type: array
                    items:
                        type: string
                    minItems: 1
                    maxItems: 100
            required:
                - user_ids
        KillswitchBatchUserBadgesResult:
            type: object
            properties:
                badges:
                    type: array
                    items:
                        $ref: '#/components/schemas/KillswitchUserBadge'
            required:
                - badges
        KillswitchCapability:
            type: object
            properties:
                key:
                    type: string
                    enum:
                        - mcp_tool_calls
                label:
                    type: string
            required:
                - key
                - label
        KillswitchComingSoonCapability:
            type: object
            properties:
                label:
                    type: string
            required:
                - label
        KillswitchConflict:
            type: object
            properties:
                message:
                    type: string
                name:
                    type: string
                    enum:
                        - operation_conflict
                        - version_conflict
            required:
                - name
                - message
        KillswitchCreateRequest:
            type: object
            properties:
                capability_key:
                    type: string
                    enum:
                        - mcp_tool_calls
                external_note:
                    type: string
                    maxLength: 500
                internal_note:
                    type: string
                    maxLength: 4000
                operation_id:
                    type: string
                    format: uuid
                schedule:
                    $ref: '#/components/schemas/KillswitchSchedule'
                scope:
                    $ref: '#/components/schemas/KillswitchScope'
                user_id:
                    type: string
            required:
                - operation_id
                - scope
                - schedule
                - external_note
                - internal_note
                - capability_key
                - user_id
        KillswitchDetail:
            type: object
            properties:
                capability_key:
                    type: string
                    enum:
                        - mcp_tool_calls
                capability_label:
                    type: string
                external_note:
                    type: string
                history:
                    type: array
                    items:
                        $ref: '#/components/schemas/KillswitchHistoryEvent'
                    maxItems: 100
                history_truncated:
                    type: boolean
                id:
                    type: string
                    format: uuid
                internal_note:
                    type: string
                schedule:
                    $ref: '#/components/schemas/KillswitchSchedule'
                scope:
                    $ref: '#/components/schemas/KillswitchScope'
                status:
                    type: string
                    enum:
                        - active
                        - scheduled
                        - expired
                        - lifted
                user_id:
                    type: string
                version:
                    type: integer
                    format: int64
            required:
                - external_note
                - internal_note
                - history
                - history_truncated
                - id
                - capability_key
                - capability_label
                - user_id
                - version
                - status
                - scope
                - schedule
        KillswitchEditRequest:
            type: object
            properties:
                expected_version:
                    type: integer
                    format: int64
                external_note:
                    type: string
                    maxLength: 500
                id:
                    type: string
                    format: uuid
                internal_note:
                    type: string
                    maxLength: 4000
                operation_id:
                    type: string
                    format: uuid
                schedule:
                    $ref: '#/components/schemas/KillswitchSchedule'
                scope:
                    $ref: '#/components/schemas/KillswitchScope'
            required:
                - operation_id
                - scope
                - schedule
                - external_note
                - internal_note
                - id
                - expected_version
        KillswitchHistoryEvent:
            type: object
            properties:
                action:
                    type: string
                    enum:
                        - created
                        - edited
                        - lifted
                        - expired
                        - restored
                actor_display_name:
                    type: string
                actor_user_id:
                    type: string
                changed_at:
                    type: string
                    format: date-time
                external_note:
                    type: string
                internal_note:
                    type: string
                schedule:
                    $ref: '#/components/schemas/KillswitchSchedule'
                scope:
                    $ref: '#/components/schemas/KillswitchScope'
                sequence:
                    type: integer
                    format: int64
                status:
                    type: string
                    enum:
                        - active
                        - scheduled
                        - expired
                        - lifted
                version:
                    type: integer
                    format: int64
            required:
                - sequence
                - version
                - action
                - status
                - scope
                - schedule
                - external_note
                - internal_note
                - changed_at
        KillswitchLiftRequest:
            type: object
            properties:
                expected_version:
                    type: integer
                    format: int64
                id:
                    type: string
                    format: uuid
                operation_id:
                    type: string
                    format: uuid
            required:
                - operation_id
                - id
                - expected_version
        KillswitchLiftResult:
            type: object
            properties:
                remaining_overlaps:
                    type: array
                    items:
                        $ref: '#/components/schemas/KillswitchOverlap'
                    maxItems: 100
                result:
                    $ref: '#/components/schemas/KillswitchMutationReceipt'
                truncated:
                    type: boolean
            required:
                - result
                - remaining_overlaps
                - truncated
        KillswitchListCapabilitiesResult:
            type: object
            properties:
                capabilities:
                    type: array
                    items:
                        $ref: '#/components/schemas/KillswitchCapability'
                coming_soon:
                    type: array
                    items:
                        $ref: '#/components/schemas/KillswitchComingSoonCapability'
            required:
                - capabilities
                - coming_soon
        KillswitchListMCPServersResult:
            type: object
            properties:
                servers:
                    type: array
                    items:
                        $ref: '#/components/schemas/KillswitchMCPServer'
            required:
                - servers
        KillswitchListResult:
            type: object
            properties:
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/KillswitchSummary'
                    maxItems: 100
                next_cursor:
                    type: string
            required:
                - items
        KillswitchMCPServer:
            type: object
            properties:
                id:
                    type: string
                    format: uuid
                name:
                    type: string
                project_id:
                    type: string
                    format: uuid
                project_name:
                    type: string
                    description: The project's display name
            required:
                - id
                - name
                - project_id
                - project_name
        KillswitchMutationReceipt:
            type: object
            properties:
                id:
                    type: string
                    format: uuid
                replayed:
                    type: boolean
                version:
                    type: integer
                    format: int64
            required:
                - id
                - version
                - replayed
        KillswitchOverlap:
            type: object
            properties:
                id:
                    type: string
                    format: uuid
                schedule:
                    $ref: '#/components/schemas/KillswitchSchedule'
                scope:
                    $ref: '#/components/schemas/KillswitchScope'
                status:
                    type: string
                    enum:
                        - active
                        - scheduled
            required:
                - id
                - status
                - scope
                - schedule
        KillswitchPreviewOverlapsRequest:
            type: object
            properties:
                capability_key:
                    type: string
                    enum:
                        - mcp_tool_calls
                id:
                    type: string
                    format: uuid
                schedule:
                    $ref: '#/components/schemas/KillswitchSchedule'
                scope:
                    $ref: '#/components/schemas/KillswitchScope'
                user_id:
                    type: string
            required:
                - capability_key
                - user_id
                - scope
                - schedule
        KillswitchPreviewOverlapsResult:
            type: object
            properties:
                overlaps:
                    type: array
                    items:
                        $ref: '#/components/schemas/KillswitchOverlap'
                    maxItems: 100
                truncated:
                    type: boolean
            required:
                - overlaps
                - truncated
        KillswitchSchedule:
            type: object
            properties:
                end:
                    type: string
                    enum:
                        - until_lifted
                        - bounded
                ends_at:
                    type: string
                    format: date-time
                start:
                    type: string
                    enum:
                        - now
                        - scheduled
                starts_at:
                    type: string
                    format: date-time
            required:
                - start
                - end
        KillswitchScope:
            type: object
            properties:
                server_ids:
                    type: array
                    items:
                        type: string
                        format: uuid
                    maxItems: 1000
                type:
                    type: string
                    enum:
                        - all_servers
                        - selected_servers
            required:
                - type
        KillswitchSummary:
            type: object
            properties:
                capability_key:
                    type: string
                    enum:
                        - mcp_tool_calls
                capability_label:
                    type: string
                id:
                    type: string
                    format: uuid
                schedule:
                    $ref: '#/components/schemas/KillswitchSchedule'
                scope:
                    $ref: '#/components/schemas/KillswitchScope'
                status:
                    type: string
                    enum:
                        - active
                        - scheduled
                        - expired
                        - lifted
                user_id:
                    type: string
                version:
                    type: integer
                    format: int64
            required:
                - id
                - capability_key
                - capability_label
                - user_id
                - version
                - status
                - scope
                - schedule
        KillswitchUserBadge:
            type: object
            properties:
                affected:
                    type: boolean
                affected_now:
                    type: boolean
                scheduled:
                    type: boolean
                user_id:
                    type: string
            required:
                - user_id
                - affected
                - affected_now
                - scheduled
        LLMClientUsage:
            type: object
            properties:
                activity_count:
                    type: integer
                    description: Number of messages (session mode) or tool calls (tool_call mode)
                    format: int64
                client_name:
                    type: string
                    description: Client/agent name (e.g., 'cursor', 'claude-code', 'cowork')
            description: Usage breakdown by LLM client/agent
            required:
                - client_name
                - activity_count
        LauncherCandidate:
            type: object
            properties:
                detail:
                    type: string
                    description: Short state description, such as 'MCP server · disabled'.
                    maxLength: 160
                id:
                    type: string
                    description: Caller-chosen stable identifier echoed back in the judgment.
                    maxLength: 200
                kind:
                    type: string
                    description: The candidate kind, such as page, mcp_server, plugin or marketplace.
                    maxLength: 64
                title:
                    type: string
                    description: Display title of the candidate.
                    maxLength: 120
                verbs:
                    type: array
                    items:
                        type: string
                        maxLength: 32
                    description: Verbs the caller may run on this candidate, such as open, enable, disable or publish.
                    maxItems: 8
            description: One item the palette could open or act on.
            required:
                - id
                - kind
                - title
        LauncherContext:
            type: object
            properties:
                route:
                    type: string
                    description: The current dashboard route path.
                    maxLength: 512
            description: The dashboard location the palette was opened from.
        LauncherJudgment:
            type: object
            properties:
                action:
                    type: object
                    description: Probability that the query asks for each of open, enable, disable, publish or unclear.
                    additionalProperties:
                        type: number
                        format: double
                disabled:
                    type: boolean
                    description: True when no intent service is configured; the other fields are then absent. When false, target, action, ready and latency_ms are always present.
                latency_ms:
                    type: integer
                    description: Round trip time to the intent service in milliseconds.
                    format: int64
                ready:
                    type: number
                    description: Probability that the query is unambiguous enough to act on the best candidate on Enter.
                    format: double
                target:
                    type: object
                    description: Probability that each candidate id, or 'none', is the item the user means.
                    additionalProperties:
                        type: number
                        format: double
            description: Probability distributions over the supplied candidates and verbs.
            required:
                - disabled
        LinkSkillRequestBody:
            type: object
            properties:
                id:
                    type: string
                    description: The skill ID.
                    format: uuid
                mcp_server_id:
                    type: string
                    description: The MCP server that serves the skill. Required when target_kind is mcp_server.
                    format: uuid
                meta_mcp_server_id:
                    type: string
                    description: The gateway that serves the skill. Required when target_kind is meta_mcp_server.
                    format: uuid
                pinned_version_id:
                    type: string
                    description: An optional valid version to pin instead of serving the latest valid version.
                    format: uuid
                target_kind:
                    type: string
                    description: The kind of MCP surface that serves the skill.
                    enum:
                        - mcp_server
                        - meta_mcp_server
                        - organization_gateway
            example:
                id: 550e8400-e29b-41d4-a716-446655440000
                mcp_server_id: 550e8400-e29b-41d4-a716-446655440001
                target_kind: mcp_server
            required:
                - id
                - target_kind
        ListAIDetectionUsersResult:
            type: object
            properties:
                detection:
                    $ref: '#/components/schemas/AIDetection'
                users:
                    type: array
                    items:
                        $ref: '#/components/schemas/AIDetectionUser'
                    description: Users the target was detected for, most recently seen first.
            required:
                - detection
                - users
        ListAIDetectionsResult:
            type: object
            properties:
                detections:
                    type: array
                    items:
                        $ref: '#/components/schemas/AIDetection'
                    description: Detected AI tools aggregated per target, most recently seen first.
            required:
                - detections
        ListAIIntegrationSchedulesResult:
            type: object
            properties:
                organization_id:
                    type: string
                    description: Organization the schedules belong to.
                provider:
                    type: string
                    description: AI provider identifier.
                schedules:
                    type: array
                    items:
                        $ref: '#/components/schemas/AIIntegrationScheduleState'
                    description: Scheduler state for each of the provider's sync schedules.
            description: Sync schedules for one provider integration. Empty when no config is set for the provider.
            required:
                - organization_id
                - provider
                - schedules
        ListActorAttributesResult:
            type: object
            properties:
                attributes:
                    type: array
                    items:
                        $ref: '#/components/schemas/ActorAttribute'
                    description: The member attributes available to target conditions, in editor display order.
            required:
                - attributes
        ListAgentConnectionBlocksResult:
            type: object
            properties:
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/AgentConnectionBlock'
                    description: Blocks the caller wrote on their own connections
                next_cursor:
                    type: string
                    description: Cursor for the next page; absent when exhausted.
            required:
                - items
        ListAgentPolicyScopesResult:
            type: object
            properties:
                scopes:
                    type: array
                    items:
                        $ref: '#/components/schemas/ScopeDefinition'
                    description: The scopes an agent policy may hold, in catalogue order.
            required:
                - scopes
        ListAgentsResult:
            type: object
            properties:
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/ManagedAgent'
                    description: The agents in this page.
                next_cursor:
                    type: string
                    description: Cursor for the next page; absent when exhausted.
            description: A page of managed agents, ordered by name.
            required:
                - items
        ListAiScanTargetsResult:
            type: object
            properties:
                etag:
                    type: string
                    description: Fingerprint of the served list; changes whenever the targets or their definitions change.
                list_version:
                    type: integer
                    description: Version of the served catalog; the value agents echo as target_list_version once they receive it.
                    format: int64
                targets:
                    type: array
                    items:
                        $ref: '#/components/schemas/AiScanTarget'
                    description: Every target in the organization's list, ordered by id.
            required:
                - list_version
                - etag
                - targets
        ListAllowedOriginsResult:
            type: object
            properties:
                allowed_origins:
                    type: array
                    items:
                        $ref: '#/components/schemas/AllowedOrigin'
                    description: The list of allowed origins
            required:
                - allowed_origins
        ListApprovalRequestsResult:
            type: object
            properties:
                requests:
                    type: array
                    items:
                        $ref: '#/components/schemas/ApprovalRequestSummary'
                    description: The list of approval requests
            description: A page of the approval queue.
            required:
                - requests
        ListAssetsResult:
            type: object
            properties:
                assets:
                    type: array
                    items:
                        $ref: '#/components/schemas/Asset'
                    description: The list of assets
            required:
                - assets
        ListAssistantMemoriesResult:
            type: object
            properties:
                memories:
                    type: array
                    items:
                        $ref: '#/components/schemas/AssistantMemory'
                    description: Assistant memories matching the query.
                next_cursor:
                    type: string
                    description: The cursor to be used for the next page of results.
            required:
                - memories
        ListAssistantsResult:
            type: object
            properties:
                assistants:
                    type: array
                    items:
                        $ref: '#/components/schemas/Assistant'
                    description: Assistants for the current project.
            required:
                - assistants
        ListAttributeKeysPayload:
            type: object
            properties:
                from:
                    type: string
                    description: Start time in ISO 8601 format
                    example: "2025-12-19T10:00:00Z"
                    format: date-time
                to:
                    type: string
                    description: End time in ISO 8601 format
                    example: "2025-12-19T11:00:00Z"
                    format: date-time
            description: Payload for listing distinct attribute keys available for filtering
            required:
                - from
                - to
        ListAttributeKeysResult:
            type: object
            properties:
                keys:
                    type: array
                    items:
                        type: string
                    description: Distinct attribute keys. User attributes are prefixed with @
            description: Result of listing distinct attribute keys
            required:
                - keys
        ListAudienceOptionsResult:
            type: object
            properties:
                options:
                    type: array
                    items:
                        $ref: '#/components/schemas/AudienceOption'
                    description: Principals that can be given access.
            required:
                - options
        ListAudiencesResult:
            type: object
            properties:
                audiences:
                    type: array
                    items:
                        $ref: '#/components/schemas/PluginAudience'
                    description: Audiences that can be assigned to plugins.
            required:
                - audiences
        ListAuditLogFacetsForm:
            type: object
            properties:
                category:
                    type: string
                    description: Category of entries to compute facet values from, matching the list being filtered. Defaults to 'configuration'.
                    default: configuration
                    enum:
                        - configuration
                        - security
                origin:
                    type: string
                    description: 'Who initiated the entries to compute facet values from, matching the list being filtered: ''user'' for changes initiated by a person, API key, agent or assistant, or ''system'' for changes Speakeasy made on its own, such as background jobs. Omit for both.'
                    enum:
                        - user
                        - system
                project_slug:
                    type: string
                    description: Project slug to filter facet values to a specific project.
        ListAuditLogFacetsResult:
            type: object
            properties:
                actions:
                    type: array
                    items:
                        $ref: '#/components/schemas/AuditLogFacetOption'
                    description: Available action facets
                actors:
                    type: array
                    items:
                        $ref: '#/components/schemas/AuditLogFacetOption'
                    description: Available actor facets
                surfaces:
                    type: array
                    items:
                        $ref: '#/components/schemas/AuditLogFacetOption'
                    description: Available acting surface facets
            required:
                - actors
                - actions
                - surfaces
        ListAuditLogsForm:
            type: object
            properties:
                acting_surface:
                    type: string
                    description: Acting surface to filter audit logs to changes made through one surface, e.g. 'platform_mcp' to review agent-driven activity alone.
                action:
                    type: string
                    description: Action to filter audit logs to a specific action.
                actor_id:
                    type: string
                    description: Actor ID to filter audit logs to a specific actor.
                category:
                    type: string
                    description: 'Category of entries to list: ''configuration'' (the default) for changes to the platform''s configuration, or ''security'' for machine access and other security-relevant activity such as workloads admitting themselves.'
                    default: configuration
                    enum:
                        - configuration
                        - security
                cursor:
                    type: string
                    description: The cursor for paginating through audit logs.
                from:
                    type: string
                    description: Inclusive start of the window to list changes from. Omit for the whole history.
                    format: date-time
                origin:
                    type: string
                    description: 'Who initiated the entries to list: ''user'' for changes initiated by a person, API key, agent or assistant, or ''system'' for changes Speakeasy made on its own, such as background jobs. Omit for both.'
                    enum:
                        - user
                        - system
                project_slug:
                    type: string
                    description: Project slug to filter audit logs to a specific project.
                subject_id:
                    type: string
                    description: Subject ID to filter audit logs to a specific subject (e.g. a single assistant).
                subject_ids:
                    type: array
                    items:
                        type: string
                    description: Subject IDs to filter audit logs to a set of subjects at once, e.g. a resource together with the child resources whose events name the child as the subject. Matches any listed subject of any subject type, except that assistant activity events stay excluded unless subject_type is 'assistant'; combine with subject_type to pin the kind. Blank entries are ignored.
                    maxItems: 200
                subject_type:
                    type: string
                    description: Subject type to filter audit logs to a specific kind of subject. When omitted, assistant activity events are excluded; pass 'assistant' to list them.
                to:
                    type: string
                    description: Exclusive end of the window to list changes from. Omit for the whole history.
                    format: date-time
        ListAuditLogsResult:
            type: object
            properties:
                logs:
                    type: array
                    items:
                        $ref: '#/components/schemas/AuditLog'
                    description: List of audit logs
                next_cursor:
                    type: string
                    description: The cursor to be used for the next page of results.
            required:
                - logs
        ListAuthClientsResponseBody:
            type: object
            properties:
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/AuthClient'
                next_cursor:
                    type: string
            required:
                - items
        ListBindingsResponseBody:
            type: object
            properties:
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/PrincipalRemoteSessionBinding'
            required:
                - items
        ListBuiltinExclusionsResult:
            type: object
            properties:
                categories:
                    type: array
                    items:
                        $ref: '#/components/schemas/BuiltinExclusionCategory'
                    description: The library grouped by category.
                version:
                    type: string
                    description: Catalog checksum/version, for provenance.
            required:
                - version
                - categories
        ListBusinessMemoriesResponseBody:
            type: object
            properties:
                memories:
                    type: array
                    items:
                        $ref: '#/components/schemas/BusinessMemory'
                next_cursor:
                    type: string
            required:
                - memories
        ListBusinessMemoryContentScopesResponseBody:
            type: object
            properties:
                nodes:
                    type: array
                    items:
                        $ref: '#/components/schemas/BusinessMemoryContentScopeNode'
                    description: Namespace and exact-tag nodes in lexical order.
                total_memories:
                    type: integer
                    description: Total number of active memories, including memories without a content scope.
                    format: int64
            required:
                - nodes
                - total_memories
        ListCatalogResponseBody:
            type: object
            properties:
                next_cursor:
                    type: string
                    description: Pagination cursor for the next page
                servers:
                    type: array
                    items:
                        $ref: '#/components/schemas/ExternalMCPServerEntry'
                    description: List of available MCP servers
            required:
                - servers
        ListChallengeBucketsResult:
            type: object
            properties:
                buckets:
                    type: array
                    items:
                        $ref: '#/components/schemas/ChallengeBucket'
                    description: The challenge buckets.
                total:
                    type: integer
                    description: Total number of matching buckets for pagination.
                    format: int64
            required:
                - buckets
                - total
        ListChallengesResult:
            type: object
            properties:
                challenges:
                    type: array
                    items:
                        $ref: '#/components/schemas/AuthzChallenge'
                    description: The challenge events.
                total:
                    type: integer
                    description: Total number of matching challenges for pagination.
                    format: int64
            required:
                - challenges
                - total
        ListChatsResult:
            type: object
            properties:
                chats:
                    type: array
                    items:
                        $ref: '#/components/schemas/ChatOverview'
                    description: The list of chats
                total:
                    type: integer
                    description: Total number of chats (before pagination)
                    format: int64
            required:
                - chats
                - total
        ListCimdClientPresetsResult:
            type: object
            properties:
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/CimdClientPreset'
            description: Result type for listing the CIMD preset catalog.
            required:
                - items
        ListCustomDetectionRulesResult:
            type: object
            properties:
                rules:
                    type: array
                    items:
                        $ref: '#/components/schemas/RiskCustomDetectionRule'
                    description: The list of custom detection rules.
            required:
                - rules
        ListCustomDomainMcpEndpointsResult:
            type: object
            properties:
                mcp_endpoints:
                    type: array
                    items:
                        $ref: '#/components/schemas/CustomDomainMcpEndpoint'
            description: Result of listing the MCP endpoints registered under an organization's custom domain.
            required:
                - mcp_endpoints
        ListCustomDomainsResult:
            type: object
            properties:
                dns_config:
                    $ref: '#/components/schemas/DomainDNSConfig'
                domains:
                    type: array
                    items:
                        $ref: '#/components/schemas/CustomDomain'
            description: Result of listing an organization's custom domains.
            required:
                - domains
                - dns_config
        ListDashboardsResult:
            type: object
            properties:
                built_in:
                    type: array
                    items:
                        $ref: '#/components/schemas/BuiltInDashboard'
                    description: The dashboards Speakeasy ships, the same in every project
                dashboards:
                    type: array
                    items:
                        $ref: '#/components/schemas/Dashboard'
                    description: Dashboards in the project, most recently updated first
            required:
                - dashboards
                - built_in
        ListDataExportRoutesResult:
            type: object
            properties:
                routes:
                    type: array
                    items:
                        $ref: '#/components/schemas/DataExportRoute'
                    description: Active data export routes in the selected project.
            required:
                - routes
        ListDataExportsForOrgResult:
            type: object
            properties:
                destinations:
                    type: array
                    items:
                        $ref: '#/components/schemas/Destination'
                    description: Active data export destinations across the active organization.
                routes:
                    type: array
                    items:
                        $ref: '#/components/schemas/DataExportRoute'
                    description: Active data export routes across the active organization.
            required:
                - destinations
                - routes
        ListDefinitionsResponseBody:
            type: object
            properties:
                definitions:
                    type: array
                    items:
                        $ref: '#/components/schemas/PlatformKillswitchDefinition'
            required:
                - definitions
        ListDeploymentForm:
            type: object
            properties:
                cursor:
                    type: string
                    description: The cursor to fetch results from
        ListDeploymentResult:
            type: object
            properties:
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/DeploymentSummary'
                    description: A list of deployments
                next_cursor:
                    type: string
                    description: The cursor to fetch results from
                    example: 01jp3f054qc02gbcmpp0qmyzed
            required:
                - items
        ListDestinationsResult:
            type: object
            properties:
                destinations:
                    type: array
                    items:
                        $ref: '#/components/schemas/Destination'
                    description: Active data export destinations in the selected project.
            required:
                - destinations
        ListDeviceIntegrationProvidersResult:
            type: object
            properties:
                providers:
                    type: array
                    items:
                        $ref: '#/components/schemas/DeviceIntegrationProvider'
                    description: Every available provider, sorted by id.
            required:
                - providers
        ListDeviceIntegrationSchedulesResult:
            type: object
            properties:
                organization_id:
                    type: string
                    description: Organization the schedules belong to.
                provider:
                    type: string
                    description: Provider identifier.
                schedules:
                    type: array
                    items:
                        $ref: '#/components/schemas/DeviceIntegrationScheduleState'
                    description: State for each of the provider's sync schedules.
            description: Sync schedules for one provider integration. Empty when no config is set for the provider.
            required:
                - organization_id
                - provider
                - schedules
        ListDirectoryPeopleResult:
            type: object
            properties:
                counts:
                    $ref: '#/components/schemas/DirectoryPeopleStateCounts'
                next_cursor:
                    type: string
                    description: Cursor for the next page. Absent on the last page.
                people:
                    type: array
                    items:
                        $ref: '#/components/schemas/DirectoryPerson'
                    description: One page of directory profiles, ordered by profile ID.
            required:
                - people
                - counts
        ListDirectoryReviewItemsResult:
            type: object
            properties:
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/DirectoryReviewItem'
                    description: Pending items, oldest first.
            required:
                - items
        ListDirectoryRoleMappingsResult:
            type: object
            properties:
                attributes:
                    type: array
                    items:
                        $ref: '#/components/schemas/DirectoryAttributeOption'
                    description: Distinct attribute values set on active directory users.
                groups:
                    type: array
                    items:
                        $ref: '#/components/schemas/DirectoryGroupOption'
                    description: Active directory groups in the organization.
                mappings:
                    type: array
                    items:
                        $ref: '#/components/schemas/DirectoryRoleMapping'
                    description: Live directory role mappings.
            required:
                - groups
                - attributes
                - mappings
        ListDistributionPluginsResult:
            type: object
            properties:
                plugins:
                    type: array
                    items:
                        $ref: '#/components/schemas/DistributionPlugin'
            required:
                - plugins
        ListEMAServicesResult:
            type: object
            properties:
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/EMAService'
            description: Every service identity chaining reaches in the organization.
            required:
                - items
        ListEnvironmentsResult:
            type: object
            properties:
                environments:
                    type: array
                    items:
                        $ref: '#/components/schemas/Environment'
            description: Result type for listing environments
            required:
                - environments
        ListEventLogPayload:
            type: object
            properties:
                cursor:
                    type: string
                    description: Opaque cursor for pagination
                from:
                    type: string
                    description: Start time in ISO 8601 format
                    example: "2025-12-19T10:00:00Z"
                    format: date-time
                kinds:
                    type: array
                    items:
                        type: string
                        enum:
                            - log
                            - span
                    description: Optional signal kind filter. Empty means both logs and spans.
                limit:
                    type: integer
                    description: Number of events to return (1-200)
                    default: 50
                    format: int64
                    minimum: 1
                    maximum: 200
                names:
                    type: array
                    items:
                        type: string
                    description: Optional event/span name filter. Values are ORed.
                search:
                    type: string
                    description: Optional case-insensitive substring match over event body and name
                sources:
                    type: array
                    items:
                        type: string
                    description: Optional source filter (canonicalized service names). Values are ORed.
                to:
                    type: string
                    description: End time in ISO 8601 format
                    example: "2025-12-26T10:00:00Z"
                    format: date-time
            description: Payload for listing org-scoped OpenTelemetry events
            required:
                - from
                - to
        ListEventLogResult:
            type: object
            properties:
                events:
                    type: array
                    items:
                        $ref: '#/components/schemas/EventLogEntry'
                    description: Events ordered newest first
                next_cursor:
                    type: string
                    description: Cursor for next page
                total_count:
                    type: integer
                    description: Number of events matching the filters, capped at 10000
                    format: int64
                total_count_capped:
                    type: boolean
                    description: True when total_count hit the cap and the true count is higher
            description: Result of listing org-scoped OpenTelemetry events
            required:
                - events
                - total_count
                - total_count_capped
        ListExecutionProfilesResult:
            type: object
            properties:
                profiles:
                    type: array
                    items:
                        $ref: '#/components/schemas/AssistantExecutionProfile'
                    description: Each root trigger and execution context.
            required:
                - profiles
        ListExternalCredentialsResult:
            type: object
            properties:
                credentials:
                    type: array
                    items:
                        $ref: '#/components/schemas/ExternalCredentialSummary'
                    description: The organization's external credentials.
            required:
                - credentials
        ListExternalKeysResult:
            type: object
            properties:
                keys:
                    type: array
                    items:
                        $ref: '#/components/schemas/ExternalKeySummary'
                    description: The organization's external keys.
            required:
                - keys
        ListFilterOptionsPayload:
            type: object
            properties:
                event_source:
                    type: string
                    description: Optional event source filter for the option list
                filter_type:
                    type: string
                    description: Type of filter to list options for
                    enum:
                        - api_key
                        - user
                        - internal_user
                        - agent
                from:
                    type: string
                    description: Start time in ISO 8601 format
                    example: "2025-12-19T10:00:00Z"
                    format: date-time
                to:
                    type: string
                    description: End time in ISO 8601 format
                    example: "2025-12-19T11:00:00Z"
                    format: date-time
            description: Payload for listing filter options
            required:
                - from
                - to
                - filter_type
        ListFilterOptionsResult:
            type: object
            properties:
                options:
                    type: array
                    items:
                        $ref: '#/components/schemas/FilterOption'
                    description: List of filter options
            description: Result of listing filter options
            required:
                - options
        ListFleetDevicesResult:
            type: object
            properties:
                devices:
                    type: array
                    items:
                        $ref: '#/components/schemas/FleetDevice'
                    description: Devices, newest first.
                next_cursor:
                    type: string
                    description: Cursor for the next page. Omitted on the last page.
            required:
                - devices
        ListGlobalRemoteSessionIssuersResult:
            type: object
            properties:
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/GlobalRemoteSessionIssuer'
                next_cursor:
                    type: string
                    description: Cursor for the next page; empty when exhausted.
            description: Result type for the platform-administrator global issuer listing.
            required:
                - items
        ListHiddenMcpServersResult:
            type: object
            properties:
                servers:
                    type: array
                    items:
                        $ref: '#/components/schemas/HiddenMcpServer'
                    description: Hidden servers, oldest first.
            required:
                - servers
        ListHooksTracesPayload:
            type: object
            properties:
                cursor:
                    type: string
                    description: Cursor for pagination (trace_id)
                filters:
                    type: array
                    items:
                        $ref: '#/components/schemas/LogFilter'
                    description: Filter conditions for the search query
                from:
                    type: string
                    description: Start time in ISO 8601 format (e.g., '2025-12-19T10:00:00Z')
                    example: "2025-12-19T10:00:00Z"
                    format: date-time
                limit:
                    type: integer
                    description: Number of items to return (1-1000)
                    default: 50
                    format: int64
                    minimum: 1
                    maximum: 1000
                sort:
                    type: string
                    description: Sort order
                    default: desc
                    enum:
                        - asc
                        - desc
                to:
                    type: string
                    description: End time in ISO 8601 format (e.g., '2025-12-19T11:00:00Z')
                    example: "2025-12-19T11:00:00Z"
                    format: date-time
                types_to_include:
                    type: array
                    items:
                        type: string
                        enum:
                            - mcp
                            - local
                            - skill
                    description: Hook types to include (mcp, local, skill). If empty or not provided, includes all types.
                    example:
                        - mcp
                        - skill
            description: Payload for listing hook traces
            required:
                - from
                - to
        ListHooksTracesResult:
            type: object
            properties:
                next_cursor:
                    type: string
                    description: Cursor for next page
                traces:
                    type: array
                    items:
                        $ref: '#/components/schemas/HookTraceSummary'
                    description: List of hook trace summaries
            description: Result of listing hook traces
            required:
                - traces
        ListIdentityAccessResult:
            type: object
            properties:
                servers:
                    type: array
                    items:
                        $ref: '#/components/schemas/AccessibleMCPServer'
                    description: MCP servers accessible to this identity.
                skills:
                    type: array
                    items:
                        $ref: '#/components/schemas/AccessibleSkill'
                    description: Skills accessible to this identity.
            required:
                - servers
                - skills
        ListIdentityProviderConnectionApplicationsResult:
            type: object
            properties:
                applications:
                    type: array
                    items:
                        $ref: '#/components/schemas/IdentityProviderConnectionApplication'
                    description: Applications ordered by label, live rows first. Capped at 2000 rows, the same cap a run applies.
                last_run:
                    $ref: '#/components/schemas/IdentityProviderConnectionReconcileRun'
                sync:
                    $ref: '#/components/schemas/IdentityProviderConnectionApplicationsSync'
            required:
                - applications
                - sync
        ListInstancesResponseBody:
            type: object
            properties:
                instances:
                    type: array
                    items:
                        $ref: '#/components/schemas/LiteLLMInstance'
            required:
                - instances
        ListIntegrationsForm:
            type: object
            properties:
                keywords:
                    type: array
                    items:
                        type: string
                        maxLength: 20
                    description: Keywords to filter integrations by
        ListIntegrationsResult:
            type: object
            properties:
                integrations:
                    type: array
                    items:
                        $ref: '#/components/schemas/IntegrationEntry'
                    description: List of available third-party integrations
        ListInvitesResult:
            type: object
            properties:
                invitations:
                    type: array
                    items:
                        $ref: '#/components/schemas/OrganizationInvitation'
                    description: Pending invitations for the organization only; accepted, expired, and revoked invitations are omitted.
            required:
                - invitations
        ListIssuanceProfilesResponseBody:
            type: object
            properties:
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/IssuanceProfile'
            required:
                - items
        ListIssuerConvergenceCandidatesResult:
            type: object
            properties:
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/IssuerConvergenceCandidate'
                next_cursor:
                    type: string
                    description: Cursor for the next page; empty when exhausted.
            description: Result type for the platform-administrator convergence-candidate listing.
            required:
                - items
        ListJSONWebKeySetsResult:
            type: object
            properties:
                sets:
                    type: array
                    items:
                        $ref: '#/components/schemas/JSONWebKeySet'
                    description: The organization's JSON Web Key Sets.
            required:
                - sets
        ListJSONWebKeysResult:
            type: object
            properties:
                keys:
                    type: array
                    items:
                        $ref: '#/components/schemas/JSONWebKey'
                    description: The set's published keys.
            required:
                - keys
        ListKeysResponseBody:
            type: object
            properties:
                keys:
                    type: array
                    items:
                        $ref: '#/components/schemas/ModelProviderKey'
                    description: The model provider keys configured for the project.
            required:
                - keys
        ListKeysResponseBody2:
            type: object
            properties:
                keys:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminOpenRouterKey'
                    description: Every live platform OpenRouter key, ordered by organization slug then key type.
            required:
                - keys
        ListKeysResult:
            type: object
            properties:
                keys:
                    type: array
                    items:
                        $ref: '#/components/schemas/Key'
            required:
                - keys
        ListMCPPlatformToolsetsResult:
            type: object
            properties:
                toolsets:
                    type: array
                    items:
                        $ref: '#/components/schemas/RiskMCPPlatformToolset'
                    description: The available Platform MCP policy scope targets.
            required:
                - toolsets
        ListManagedDevicesResult:
            type: object
            properties:
                devices:
                    type: array
                    items:
                        $ref: '#/components/schemas/ManagedDevice'
                    description: Devices, newest first.
                next_cursor:
                    type: string
                    description: Cursor for the next page. Omitted on the last page.
            required:
                - devices
        ListMcpEndpointsResult:
            type: object
            properties:
                mcp_endpoints:
                    type: array
                    items:
                        $ref: '#/components/schemas/McpEndpoint'
            description: Result type for listing MCP endpoints
            required:
                - mcp_endpoints
        ListMcpServerAuthClientChoicesResponseBody:
            type: object
            properties:
                choices:
                    type: array
                    items:
                        $ref: '#/components/schemas/AuthClientChoice'
                    description: The enabled shared credentials the server offers.
                requires_upstream_auth:
                    type: boolean
                    description: 'Whether the upstream needs authentication: true when the server offers at least one enabled auth client.'
                status:
                    type: string
                    description: configured when the server offers at least one enabled auth client; setup_incomplete when no auth client was ever linked to it, live or detached, but it has a live upstream OAuth client or a credential header on its source that no auth client records yet; no_auth_required otherwise.
                    enum:
                        - configured
                        - setup_incomplete
                        - no_auth_required
            required:
                - requires_upstream_auth
                - status
                - choices
        ListMcpServersResult:
            type: object
            properties:
                mcp_servers:
                    type: array
                    items:
                        $ref: '#/components/schemas/McpServer'
            description: Result type for listing MCP servers
            required:
                - mcp_servers
        ListMembersResponseBody:
            type: object
            properties:
                members:
                    type: array
                    items:
                        $ref: '#/components/schemas/SlackDirectoryMember'
                sort_as_of:
                    type: string
                    description: Time the mapping-state sort used. Pass it back to keep the order stable across pages and edits.
                    format: date-time
                total:
                    type: integer
                    description: Matching retained membership rows.
                    format: int64
            required:
                - members
                - total
                - sort_as_of
        ListMembersResult:
            type: object
            properties:
                members:
                    type: array
                    items:
                        $ref: '#/components/schemas/AccessMember'
                    description: The members in your organization.
            required:
                - members
        ListMetaMcpMembersResult:
            type: object
            properties:
                members:
                    type: array
                    items:
                        $ref: '#/components/schemas/MetaMcpMember'
            description: Result type for listing meta MCP members
            required:
                - members
        ListMetaMcpServersResult:
            type: object
            properties:
                meta_mcp_servers:
                    type: array
                    items:
                        $ref: '#/components/schemas/MetaMcpServer'
            description: Result type for listing meta MCP servers
            required:
                - meta_mcp_servers
        ListOktaResourceConnectionsResult:
            type: object
            properties:
                agent_recorded:
                    type: boolean
                    description: Whether the connection has an AI agent recorded; every server needs one first.
                connection_id:
                    type: string
                    description: The organization's identity provider connection.
                    format: uuid
                deep_link:
                    type: string
                    description: Link to the add-resource-connection form of the AI agent in the identity provider console. Omitted until an agent is recorded or when the org uses a custom domain.
                pending_count:
                    type: integer
                    description: Servers that still need a step.
                    format: int64
                servers:
                    type: array
                    items:
                        $ref: '#/components/schemas/OktaResourceConnectionServer'
                    description: Pending servers first, then by name. By default only servers with a step left; include_all adds connected, verified and not-applicable ones.
                total_count:
                    type: integer
                    description: Eligible servers before filtering.
                    format: int64
                undiscovered_count:
                    type: integer
                    description: Servers left out because their authorization server metadata has not been fetched yet.
                    format: int64
            required:
                - servers
                - pending_count
                - total_count
                - undiscovered_count
                - agent_recorded
        ListOktaServerSuggestionsResult:
            type: object
            properties:
                connection_id:
                    type: string
                    description: The organization's identity provider connection the snapshot came from.
                    format: uuid
                open_count:
                    type: integer
                    description: Suggestions the administrator has not acted on.
                    format: int64
                snapshot_at:
                    type: string
                    description: When the applications snapshot was last synced; the suggestions are only as fresh as it.
                    format: date-time
                suggestions:
                    type: array
                    items:
                        $ref: '#/components/schemas/OktaServerSuggestion'
                    description: Open suggestions first, then by server name. By default only open ones; include_all adds dismissed and installed.
                total_count:
                    type: integer
                    description: Matching entries before filtering.
                    format: int64
            required:
                - suggestions
                - open_count
                - total_count
        ListOrgEncryptionKeysResult:
            type: object
            properties:
                keys:
                    type: array
                    items:
                        $ref: '#/components/schemas/OrgEncryptionKey'
                    description: The organization's encryption keys, newest first.
            required:
                - keys
        ListOrganizationMcpServersResult:
            type: object
            properties:
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/OrganizationMcpServer'
            description: Result type for the MCP servers attached to a remote_session_client.
            required:
                - items
        ListOrganizationRemoteSessionClientsResult:
            type: object
            properties:
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/OrganizationRemoteSessionClient'
                next_cursor:
                    type: string
                    description: Cursor for the next page; empty when exhausted.
            description: Result type for the organization-administrator client listing for a single issuer.
            required:
                - items
        ListOrganizationRemoteSessionIssuersResult:
            type: object
            properties:
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/OrganizationRemoteSessionIssuer'
                next_cursor:
                    type: string
                    description: Cursor for the next page; empty when exhausted.
            description: Result type for the organization-administrator issuer listing — organizational and project-specific issuers across the org.
            required:
                - items
        ListOrganizationRemoteSessionsResult:
            type: object
            properties:
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/RemoteSession'
                next_cursor:
                    type: string
                    description: Cursor for the next page; empty when exhausted.
            description: Result type for the remote_sessions minted against a remote_session_client.
            required:
                - items
        ListOrganizationUserSessionIssuersResult:
            type: object
            properties:
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/UserSessionIssuer'
                next_cursor:
                    type: string
                    description: Cursor for the next page; empty when exhausted.
            description: Result type for listing the user_session_issuers in an organization.
            required:
                - items
        ListPackagesResult:
            type: object
            properties:
                packages:
                    type: array
                    items:
                        $ref: '#/components/schemas/Package'
                    description: The list of packages
            required:
                - packages
        ListPersonAccountsResponseBody:
            type: object
            properties:
                accounts:
                    type: array
                    items:
                        $ref: '#/components/schemas/SlackPersonAccount'
                    description: Up to 50 current mappings, one entry per workspace membership.
                next_cursor:
                    type: string
                    description: Cursor for the next page, when present.
            required:
                - accounts
        ListPlatformMcpFeedbackResponseBody:
            type: object
            properties:
                feedback:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminPlatformMCPFeedback'
                    description: Feedback reports, newest first.
            required:
                - feedback
        ListPluginsResult:
            type: object
            properties:
                plugins:
                    type: array
                    items:
                        $ref: '#/components/schemas/Plugin'
                    description: The plugins in the organization.
            required:
                - plugins
        ListPrescriptionsResponseBody:
            type: object
            properties:
                next_after_id:
                    type: string
                    description: Cursor for the next page; empty when exhausted.
                prescriptions:
                    type: array
                    items:
                        $ref: '#/components/schemas/PlatformKillswitchPrescription'
            required:
                - prescriptions
        ListProjectsPayload:
            type: object
            properties:
                apikey_token:
                    type: string
                organization_id:
                    type: string
                    description: The ID of the organization to list projects for
                session_token:
                    type: string
            required:
                - organization_id
        ListProjectsResult:
            type: object
            properties:
                projects:
                    type: array
                    items:
                        $ref: '#/components/schemas/ProjectEntry'
                    description: The list of projects
            required:
                - projects
        ListPromptTemplatesResult:
            type: object
            properties:
                templates:
                    type: array
                    items:
                        $ref: '#/components/schemas/PromptTemplate'
                    description: The created prompt template
            required:
                - templates
        ListRegistriesResponseBody:
            type: object
            properties:
                registries:
                    type: array
                    items:
                        $ref: '#/components/schemas/MCPRegistry'
                    description: List of MCP registries
            required:
                - registries
        ListRemoteSessionClientsResult:
            type: object
            properties:
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/RemoteSessionClient'
                next_cursor:
                    type: string
                    description: Cursor for the next page; empty when exhausted.
            description: Result type for listing remote_session_clients.
            required:
                - items
        ListRemoteSessionIssuersResult:
            type: object
            properties:
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/RemoteSessionIssuer'
                next_cursor:
                    type: string
                    description: Cursor for the next page; empty when exhausted.
            description: Result type for listing remote_session_issuers.
            required:
                - items
        ListRemoteSessionsResult:
            type: object
            properties:
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/RemoteSession'
                next_cursor:
                    type: string
                    description: Cursor for the next page; empty when exhausted.
            description: Result type for listing remote_sessions.
            required:
                - items
        ListResourcesResult:
            type: object
            properties:
                next_cursor:
                    type: string
                    description: The cursor to fetch results from
                resources:
                    type: array
                    items:
                        $ref: '#/components/schemas/Resource'
                    description: The list of resources
            required:
                - resources
        ListResponseBody:
            type: object
            properties:
                authorization_configured:
                    type: boolean
                    description: Whether the deployment can start Slack OAuth.
                connections:
                    type: array
                    items:
                        $ref: '#/components/schemas/SlackDirectoryConnection'
                    description: Workspace connections in creation order.
            required:
                - connections
                - authorization_configured
        ListRiskEvalReviewsResult:
            type: object
            properties:
                reviews:
                    type: array
                    items:
                        $ref: '#/components/schemas/RiskPolicyEvalReview'
                    description: The active review set for the policy.
            required:
                - reviews
        ListRiskExclusionsResult:
            type: object
            properties:
                exclusions:
                    type: array
                    items:
                        $ref: '#/components/schemas/RiskExclusion'
                    description: The list of risk exclusions.
            required:
                - exclusions
        ListRiskPoliciesResult:
            type: object
            properties:
                policies:
                    type: array
                    items:
                        $ref: '#/components/schemas/RiskPolicy'
                    description: The list of risk policies.
            required:
                - policies
        ListRiskPolicyApprovalsResult:
            type: object
            properties:
                approvals:
                    type: array
                    items:
                        $ref: '#/components/schemas/RiskPolicyApproval'
                    description: Approval requests, newest first.
                next_cursor:
                    type: string
                    description: Pass as cursor to fetch the next page. Absent on the last page.
            required:
                - approvals
        ListRiskPolicyBypassRequestsResult:
            type: object
            properties:
                requests:
                    type: array
                    items:
                        $ref: '#/components/schemas/RiskPolicyBypassRequest'
                    description: Current risk policy bypass request records.
            required:
                - requests
        ListRiskResultsByChatResult:
            type: object
            properties:
                chats:
                    type: array
                    items:
                        $ref: '#/components/schemas/RiskChatSummary'
                    description: Risk results grouped by chat.
                next_cursor:
                    type: string
                    description: Cursor for the next page of results.
            required:
                - chats
        ListRiskResultsForAgentResult:
            type: object
            properties:
                next_cursor:
                    type: string
                    description: Cursor for the next page of results.
                results:
                    type: array
                    items:
                        $ref: '#/components/schemas/RiskResultRedacted'
                    description: The list of risk results with match content redacted to opaque fingerprints.
                total_count:
                    type: integer
                    description: Total number of findings matching the filters across all non-deleted policies.
                    format: int64
            required:
                - results
                - total_count
        ListRiskResultsResult:
            type: object
            properties:
                next_cursor:
                    type: string
                    description: Cursor for the next page of results.
                results:
                    type: array
                    items:
                        $ref: '#/components/schemas/RiskResult'
                    description: The list of risk results.
                total_count:
                    type: integer
                    description: Total number of findings matching the filters across all non-deleted policies.
                    format: int64
            required:
                - results
                - total_count
        ListRoleGrant:
            type: object
            properties:
                direct_selectors:
                    type: array
                    items:
                        $ref: '#/components/schemas/Selector'
                    description: The subset of this scope's selectors granted to the calling user by name rather than through a role or everyone. For allow scopes it holds only selectors naming a concrete resource, which outrank blocks inherited from roles or everyone on that resource. For blocked scopes it holds the caller's own blocks, which always apply. Omitted when empty.
                scope:
                    type: string
                    description: The scope slug this grant applies to.
                    enum:
                        - org:read
                        - org:blocked_read
                        - org:admin
                        - org:blocked_admin
                        - org:device_agent_sync
                        - org:hooks_ingest
                        - project:read
                        - project:blocked_read
                        - project:write
                        - project:blocked_write
                        - mcp:read
                        - mcp:blocked_read
                        - mcp:write
                        - mcp:blocked_write
                        - mcp:connect
                        - mcp:blocked_connect
                        - mcp:auth
                        - mcp:blocked_auth
                        - environment:read
                        - environment:blocked_read
                        - environment:write
                        - environment:blocked_write
                        - skill:read
                        - skill:blocked_read
                        - skill:write
                        - skill:blocked_write
                        - plugin:write
                        - plugin:blocked_write
                        - assistant:read
                        - assistant:blocked_read
                        - assistant:write
                        - assistant:blocked_write
                        - risk_policy:evaluate
                        - risk_policy:bypass
                        - risk_policy:block
                        - chat:read
                        - chat:write
                        - inference:execute
                        - log:read
                        - agent:read
                        - agent:write
                        - agent:authorize
                        - agent:transfer
                        - workload:read
                        - workload:blocked_read
                        - workload:write
                        - workload:blocked_write
                selectors:
                    type: array
                    items:
                        $ref: '#/components/schemas/Selector'
                    description: Selector constraints. Null means unrestricted.
                sub_scopes:
                    type: array
                    items:
                        type: string
                        enum:
                            - org:read
                            - org:blocked_read
                            - org:admin
                            - org:blocked_admin
                            - org:device_agent_sync
                            - org:hooks_ingest
                            - project:read
                            - project:blocked_read
                            - project:write
                            - project:blocked_write
                            - mcp:read
                            - mcp:blocked_read
                            - mcp:write
                            - mcp:blocked_write
                            - mcp:connect
                            - mcp:blocked_connect
                            - mcp:auth
                            - mcp:blocked_auth
                            - environment:read
                            - environment:blocked_read
                            - environment:write
                            - environment:blocked_write
                            - skill:read
                            - skill:blocked_read
                            - skill:write
                            - skill:blocked_write
                            - plugin:write
                            - plugin:blocked_write
                            - assistant:read
                            - assistant:blocked_read
                            - assistant:write
                            - assistant:blocked_write
                            - risk_policy:evaluate
                            - risk_policy:bypass
                            - risk_policy:block
                            - chat:read
                            - chat:write
                            - inference:execute
                            - log:read
                            - agent:read
                            - agent:write
                            - agent:authorize
                            - agent:transfer
                            - workload:read
                            - workload:blocked_read
                            - workload:write
                            - workload:blocked_write
                    description: The inherited scopes the primary scope grants.
            required:
                - scope
        ListRolesResult:
            type: object
            properties:
                roles:
                    type: array
                    items:
                        $ref: '#/components/schemas/Role'
                    description: The roles in your organization.
            required:
                - roles
        ListRootMcpServersResponseBody:
            type: object
            properties:
                mcp_servers:
                    type: array
                    items:
                        $ref: '#/components/schemas/RootMcpServerOption'
            required:
                - mcp_servers
        ListScopesResult:
            type: object
            properties:
                scopes:
                    type: array
                    items:
                        $ref: '#/components/schemas/ScopeDefinition'
                    description: The scopes available in access control.
                tasks:
                    type: array
                    items:
                        $ref: '#/components/schemas/ScopeTask'
                    description: Tasks that need more than one scope, so a missing scope can be explained in context.
            required:
                - scopes
                - tasks
        ListServerClientAssociationsResult:
            type: object
            properties:
                associations:
                    type: array
                    items:
                        $ref: '#/components/schemas/ServerClientAssociation'
                    description: The server's associated upstream OAuth clients, oldest first.
                required_client_ids:
                    type: array
                    items:
                        type: string
                        format: uuid
                    description: The remote_session_client_id of each client bound to the server's user session issuer that its callers need to sign in through. These are its associated clients, or when it has none, the bound clients no other server claims and it has not explicitly detached. Empty when the server requires no upstream sign-in.
            required:
                - associations
                - required_client_ids
        ListServerHeadersResult:
            type: object
            properties:
                headers:
                    type: array
                    items:
                        $ref: '#/components/schemas/RemoteMcpServerHeader'
            description: Result type for listing the headers of a remote MCP server
            required:
                - headers
        ListServersResult:
            type: object
            properties:
                remote_mcp_servers:
                    type: array
                    items:
                        $ref: '#/components/schemas/RemoteMcpServer'
            description: Result type for listing remote MCP servers
            required:
                - remote_mcp_servers
        ListSessionLinksResult:
            type: object
            properties:
                links:
                    type: array
                    items:
                        $ref: '#/components/schemas/ChatSessionLink'
                    description: Links touching the requested chats, newest first.
            required:
                - links
        ListSessionQuarantinesResult:
            type: object
            properties:
                quarantines:
                    type: array
                    items:
                        $ref: '#/components/schemas/SessionQuarantine'
                    description: Active session quarantines.
            required:
                - quarantines
        ListSessionsPayload:
            type: object
            properties:
                cursor:
                    type: string
                    description: Opaque cursor for pagination
                filters:
                    type: array
                    items:
                        $ref: '#/components/schemas/QueryFilter'
                    description: Optional filters; all filters are ANDed together.
                from:
                    type: string
                    description: Start time in ISO 8601 format
                    example: "2025-12-19T10:00:00Z"
                    format: date-time
                limit:
                    type: integer
                    description: Number of sessions to return (1-1000)
                    default: 50
                    format: int64
                    minimum: 1
                    maximum: 1000
                sort_by:
                    type: string
                    description: Measure used to rank sessions. Defaults to total_cost.
                    default: total_cost
                    enum:
                        - total_cost
                        - total_tokens
                        - total_input_tokens
                        - total_output_tokens
                        - tool_call_count
                        - message_count
                        - duration_seconds
                to:
                    type: string
                    description: End time in ISO 8601 format
                    example: "2025-12-26T10:00:00Z"
                    format: date-time
            description: Payload for listing org-scoped chat sessions
            required:
                - from
                - to
        ListSessionsResponseBody:
            type: object
            properties:
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/AgentSession'
                next_cursor:
                    type: string
            required:
                - items
        ListSessionsResult:
            type: object
            properties:
                next_cursor:
                    type: string
                    description: Cursor for next page
                sessions:
                    type: array
                    items:
                        $ref: '#/components/schemas/SessionSummary'
                    description: List of chat session summaries
            description: Result of listing org-scoped chat sessions
            required:
                - sessions
        ListSetupTasksResult:
            type: object
            properties:
                tasks:
                    type: array
                    items:
                        $ref: '#/components/schemas/SetupTask'
                    description: Setup tasks in catalog order. A group precedes the cards under it.
            required:
                - tasks
        ListShadowMCPInventoryResult:
            type: object
            properties:
                next_cursor:
                    type: string
                    description: Cursor for the next page of results.
                servers:
                    type: array
                    items:
                        $ref: '#/components/schemas/ShadowMCPInventoryServer'
            required:
                - servers
        ListShadowMCPInventoryUsersResult:
            type: object
            properties:
                next_cursor:
                    type: string
                    description: Cursor for the next page of results.
                users:
                    type: array
                    items:
                        $ref: '#/components/schemas/ShadowMCPInventoryUser'
            required:
                - users
        ListSigintSensorsResult:
            type: object
            properties:
                next_cursor:
                    type: string
                    description: Final returned sensor ID when another page exists
                    format: uuid
                sensors:
                    type: array
                    items:
                        $ref: '#/components/schemas/SigintSensor'
                    description: Sensors in this page
            required:
                - sensors
        ListSigintSignalsResult:
            type: object
            properties:
                next_cursor:
                    type: string
                    description: Final returned signal ID when another page exists
                    format: uuid
                signals:
                    type: array
                    items:
                        $ref: '#/components/schemas/SigintSignal'
                    description: Signals in this page
            required:
                - signals
        ListSignupOffersResponseBody:
            type: object
            properties:
                offers:
                    type: array
                    items:
                        $ref: '#/components/schemas/AdminSignupOffer'
            required:
                - offers
        ListSkillDistributionsResult:
            type: object
            properties:
                distributions:
                    type: array
                    items:
                        $ref: '#/components/schemas/PluginSkillDistribution'
                    description: The active plugin skill distributions in this page.
                next_cursor:
                    type: string
                    description: Cursor for the next page; absent when exhausted.
            description: A page of active plugin skill distributions for the current project.
            required:
                - distributions
        ListSkillFeedbackResult:
            type: object
            properties:
                counts:
                    $ref: '#/components/schemas/SkillFeedbackCounts'
                feedback:
                    type: array
                    items:
                        $ref: '#/components/schemas/SkillFeedback'
                metrics:
                    $ref: '#/components/schemas/SkillFeedbackMetrics'
                next_cursor:
                    type: string
                    description: Cursor for the next page; absent when exhausted.
                timeline:
                    type: array
                    items:
                        $ref: '#/components/schemas/SkillFeedbackTimelinePoint'
            description: Outcome counts, collection metrics, a 30-day timeline, and a newest-first page of feedback for a skill.
            required:
                - counts
                - metrics
                - timeline
                - feedback
        ListSkillLinksResult:
            type: object
            properties:
                links:
                    type: array
                    items:
                        $ref: '#/components/schemas/SkillLink'
                    description: The live skill links in this page.
                next_cursor:
                    type: string
                    description: Cursor for the next page; absent when exhausted.
            description: A page of live skill links for the current project.
            required:
                - links
        ListSkillSuggestionFeedbackResult:
            type: object
            properties:
                feedback:
                    type: array
                    items:
                        $ref: '#/components/schemas/SkillFeedback'
                    description: The feedback records linked to the suggestion.
            description: The agent feedback a suggestion was generated from, newest first.
            required:
                - feedback
        ListSkillSuggestionsResult:
            type: object
            properties:
                next_cursor:
                    type: string
                    description: Cursor for the next page; absent when exhausted.
                suggestions:
                    type: array
                    items:
                        $ref: '#/components/schemas/SkillEditSuggestion'
                    description: The open suggestions in this page.
                total_open_count:
                    type: integer
                    description: The total number of matching open suggestions, independent of pagination.
                    format: int64
            description: A page of open skill edit suggestions.
            required:
                - suggestions
                - total_open_count
        ListSkillTagsResult:
            type: object
            properties:
                tags:
                    type: array
                    items:
                        type: string
                    description: Distinct tags used by active skills in the project, sorted lexicographically.
            required:
                - tags
        ListSkillVersionsResult:
            type: object
            properties:
                next_cursor:
                    type: string
                    description: Cursor for the next page; absent when exhausted.
                versions:
                    type: array
                    items:
                        $ref: '#/components/schemas/SkillVersion'
                    description: The skill versions in this page.
            description: A page of immutable skill versions.
            required:
                - versions
        ListSkillsResult:
            type: object
            properties:
                next_cursor:
                    type: string
                    description: Cursor for the next page; absent when exhausted.
                skills:
                    type: array
                    items:
                        $ref: '#/components/schemas/Skill'
                    description: The active skills in this page.
                total_count:
                    type: integer
                    description: The total number of active skills matching the filters.
                    format: int64
            description: A page of active project skills.
            required:
                - skills
                - total_count
        ListSourcesResult:
            type: object
            properties:
                sources:
                    type: array
                    items:
                        type: string
                    description: The distinct agent sources present in this project's chats (raw source strings such as 'claude-code', 'Codex', 'playground').
            required:
                - sources
        ListSpendRuleEventsResult:
            type: object
            properties:
                events:
                    type: array
                    items:
                        $ref: '#/components/schemas/SpendRuleEvent'
                    description: The list of budget rule events, most recent first.
                next_cursor:
                    type: string
                    description: Cursor for the next page of events.
            required:
                - events
        ListSpendRulesResult:
            type: object
            properties:
                rules:
                    type: array
                    items:
                        $ref: '#/components/schemas/SpendRule'
                    description: The list of budget rules.
            required:
                - rules
        ListSyncedUsersResult:
            type: object
            properties:
                users:
                    type: array
                    items:
                        $ref: '#/components/schemas/SyncedAgentUser'
                    description: Emails seen syncing the device agent, most recently active first.
            required:
                - users
        ListTemporaryGrantsResult:
            type: object
            properties:
                grants:
                    type: array
                    items:
                        $ref: '#/components/schemas/TemporaryGrant'
                    description: Temporary grants, soonest deadline first. At most 500 are returned.
            required:
                - grants
        ListToolFiltersResult:
            type: object
            properties:
                excluded:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolFilterTool'
                    description: 'Tools whose effective tag set is empty: reachable only without a ?tags= filter.'
                filtering_enabled:
                    type: boolean
                    description: Whether tool filtering is enabled, i.e. the resolution chain (mcp_servers then toolsets) yields a non-null tool variations group. When false, scopes and excluded are empty. A project-default (source-level) variations group is not treated as filtering here.
                scopes:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolFilterScope'
                    description: The available filter scopes (tags), each with its member tools. Union of effective tags across the server's tools.
                tool_variations_group_id:
                    type: string
                    description: The ID of the resolved tool variations group, if filtering is enabled.
                    format: uuid
                tool_variations_group_name:
                    type: string
                    description: The name of the resolved tool variations group, if filtering is enabled.
            description: 'The tool filtering configuration in effect for an MCP server: the resolved tool variations group, the available filter scopes (tags), and the tools excluded from all filters. Read-only. Filtering is reported as enabled only when an explicit tool variations group is configured on the MCP server or its toolset; the per-group effective-tag derivation matches the runtime ?tags= filter for that group.'
            required:
                - filtering_enabled
                - scopes
                - excluded
        ListToolMetadataResult:
            type: object
            properties:
                tools:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolMetadata'
                    description: The stored tool metadata for the MCP server
            description: Result type for listing tool metadata
            required:
                - tools
        ListToolSchemaStaticValuesResult:
            type: object
            properties:
                tools:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolSchemaStaticValues'
                    description: Per-tool static values for tools whose input schemas contain at least one matching keyword
            required:
                - tools
        ListToolUsageTracesPayload:
            type: object
            properties:
                account_type:
                    type: string
                    description: Optional account type filter ('team' or 'personal'). 'team' includes unclassified traces.
                agent_ids:
                    type: array
                    items:
                        type: string
                    description: Agent identities to include. Combined with user_filters by AND, so an agent and a person select the calls that agent made on that person's behalf.
                client_keys:
                    type: array
                    items:
                        type: string
                    description: MCP client keys (lowercased self-reported client names; 'unattributed' selects calls Speakeasy never saw an initialize handshake for) to include
                cursor:
                    type: string
                    description: Cursor for pagination
                filters:
                    type: array
                    items:
                        $ref: '#/components/schemas/LogFilter'
                    description: Arbitrary attribute filter conditions from the af URL param
                from:
                    type: string
                    description: Start time in ISO 8601 format
                    example: "2025-12-19T10:00:00Z"
                    format: date-time
                hook_sources:
                    type: array
                    items:
                        type: string
                    description: Hook plugin sources to include. Direct hosted MCP calls have no hook source and are excluded when this filter is set.
                hosted_toolset_slugs:
                    type: array
                    items:
                        type: string
                    description: 'Deprecated: use mcp_server_ids. Hosted MCP toolset slugs to include'
                limit:
                    type: integer
                    description: Number of traces to return
                    default: 100
                    format: int64
                    minimum: 1
                    maximum: 1000
                mcp_server_ids:
                    type: array
                    items:
                        type: string
                        format: uuid
                    description: MCP server ids to include. Matches calls served by the server, including calls recorded before they carried a server id.
                    maxItems: 100
                meta_mcp_server_ids:
                    type: array
                    items:
                        type: string
                    description: 'Gateway (meta MCP server) ids to include: calls dispatched through the gateway to its members plus calls observed against the gateway itself'
                query:
                    type: string
                    description: Free-text attribute search string from the q URL param. Matches useful identifier attributes such as Speakeasy URN, conversation ID, and trigger instance ID.
                shadow_server_names:
                    type: array
                    items:
                        type: string
                    description: Shadow MCP server names to include
                sort:
                    type: string
                    description: Sort order
                    default: desc
                    enum:
                        - asc
                        - desc
                statuses:
                    type: array
                    items:
                        type: string
                        description: Tool usage trace outcome
                        enum:
                            - error
                            - success
                            - blocked
                            - pending
                    description: Trace outcomes to include (error, success, blocked, pending). Empty means all.
                target_types:
                    type: array
                    items:
                        type: string
                        description: Tool usage target type
                        enum:
                            - hosted_mcp_server
                            - tunneled_mcp_server
                            - meta_mcp_server
                            - shadow_mcp_server
                            - local_tool
                            - skill
                    description: Target types to include. Empty means all target types.
                to:
                    type: string
                    description: End time in ISO 8601 format
                    example: "2025-12-19T11:00:00Z"
                    format: date-time
                user_filters:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolUsageUserFilter'
                    description: Typed user identities to include. An email also matches the calls an agent made on that person's behalf.
            description: Payload for listing target-aware MCP and tool usage traces
            required:
                - from
                - to
        ListToolUsageTracesResult:
            type: object
            properties:
                next_cursor:
                    type: string
                    description: Cursor for next page
                traces:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolUsageTraceSummary'
                    description: Target-aware tool usage trace rows
            description: Result of listing target-aware MCP and tool usage traces
            required:
                - traces
        ListToolVariationGroupsResult:
            type: object
            properties:
                groups:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolVariationGroup'
            required:
                - groups
        ListToolsResult:
            type: object
            properties:
                next_cursor:
                    type: string
                    description: The cursor to fetch results from
                tools:
                    type: array
                    items:
                        $ref: '#/components/schemas/Tool'
                    description: The list of tools (polymorphic union of HTTP tools and prompt templates)
            required:
                - tools
        ListToolsetSummariesResult:
            type: object
            properties:
                toolsets:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolsetSummary'
                    description: The list of toolset summaries
            required:
                - toolsets
        ListToolsetsResult:
            type: object
            properties:
                toolsets:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolsetEntry'
                    description: The list of toolsets
            required:
                - toolsets
        ListTriggerDefinitionsResult:
            type: object
            properties:
                definitions:
                    type: array
                    items:
                        $ref: '#/components/schemas/TriggerDefinition'
                    description: The available trigger definitions.
            required:
                - definitions
        ListTriggerEventsResult:
            type: object
            properties:
                events:
                    type: array
                    items:
                        $ref: '#/components/schemas/TriggerEvent'
                    description: The dispatch events for the trigger instance, most recent first.
            required:
                - events
        ListTriggerInstancesResult:
            type: object
            properties:
                triggers:
                    type: array
                    items:
                        $ref: '#/components/schemas/TriggerInstance'
                    description: The trigger instances for the current project.
            required:
                - triggers
        ListTunneledMcpServersResult:
            type: object
            properties:
                tunneled_mcp_servers:
                    type: array
                    items:
                        $ref: '#/components/schemas/TunneledMcpServer'
            description: Result type for listing tunneled MCP servers
            required:
                - tunneled_mcp_servers
        ListUnknownSkillActivationsResult:
            type: object
            properties:
                activations:
                    type: array
                    items:
                        $ref: '#/components/schemas/UnknownSkillActivation'
                    description: Unknown activations in this page.
                next_cursor:
                    type: string
                    description: Cursor for the next page; absent when exhausted.
            description: A page of terminal skill activations without exact version attribution.
            required:
                - activations
        ListUnproxiedMcpServersResult:
            type: object
            properties:
                unproxied_mcp_servers:
                    type: array
                    items:
                        $ref: '#/components/schemas/UnproxiedMcpServer'
            description: Result type for listing unproxied MCP servers
            required:
                - unproxied_mcp_servers
        ListUserGrantsResult:
            type: object
            properties:
                grants:
                    type: array
                    items:
                        $ref: '#/components/schemas/ListRoleGrant'
                    description: The user's effective grants in this organization.
            required:
                - grants
        ListUserSessionClientsResult:
            type: object
            properties:
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/UserSessionClient'
                next_cursor:
                    type: string
                    description: Cursor for the next page; empty when exhausted.
            description: Result type for listing user_session_clients.
            required:
                - items
        ListUserSessionConsentsResult:
            type: object
            properties:
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/UserSessionConsent'
                next_cursor:
                    type: string
                    description: Cursor for the next page; empty when exhausted.
            description: Result type for listing user_session_consents.
            required:
                - items
        ListUserSessionFacetsResult:
            type: object
            properties:
                clients:
                    type: array
                    items:
                        $ref: '#/components/schemas/UserSessionFacetOption'
                    description: Connecting client facets.
                servers:
                    type: array
                    items:
                        $ref: '#/components/schemas/UserSessionFacetOption'
                    description: Issuer/server facets.
                users:
                    type: array
                    items:
                        $ref: '#/components/schemas/UserSessionFacetOption'
                    description: Subject (user) facets.
            required:
                - clients
                - users
                - servers
        ListUserSessionIssuerCimdClientsResult:
            type: object
            properties:
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/UserSessionIssuerCimdClient'
                next_cursor:
                    type: string
                    description: Cursor for the next page; empty when exhausted.
            description: Result type for listing an issuer's custom CIMD document URLs.
            required:
                - items
        ListUserSessionIssuerMcpServersResult:
            type: object
            properties:
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/UserSessionIssuerMcpServer'
                next_cursor:
                    type: string
                    description: Cursor for the next page; empty when exhausted.
            description: Result type for listing the MCP servers attached to a user_session_issuer.
            required:
                - items
        ListUserSessionIssuersResult:
            type: object
            properties:
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/UserSessionIssuer'
                next_cursor:
                    type: string
                    description: Cursor for the next page; empty when exhausted.
            description: Result type for listing user_session_issuers.
            required:
                - items
        ListUserSessionsResult:
            type: object
            properties:
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/UserSession'
                next_cursor:
                    type: string
                    description: Cursor for the next page; empty when exhausted.
            description: Result type for listing user_sessions.
            required:
                - items
        ListUsersResult:
            type: object
            properties:
                users:
                    type: array
                    items:
                        $ref: '#/components/schemas/OrganizationUser'
                    description: Users linked to the organization in Speakeasy.
            required:
                - users
        ListVariationsResult:
            type: object
            properties:
                variations:
                    type: array
                    items:
                        $ref: '#/components/schemas/ToolVariation'
            required:
                - variations
        ListVersionsForm:
            type: object
            properties:
                name:
                    type: string
                    description: The name of the package
            required:
                - name
        ListVersionsResult:
            type: object
            properties:
                package:
                    $ref: '#/components/schemas/Package'
                versions:
                    type: array
                    items:
                        $ref: '#/components/schemas/PackageVersion'
            required:
                - package
                - versions
        ListWidgetsResult:
            type: object
            properties:
                widgets:
                    type: array
                    items:
                        $ref: '#/components/schemas/Widget'
                    description: Widgets in the project, most recently updated first
            required:
                - widgets
        LiteLLMInstance:
            type: object
            properties:
                active:
                    type: boolean
                created_at:
                    type: string
                    format: date-time
                created_by_user_id:
                    type: string
                diagnostics:
                    $ref: '#/components/schemas/LiteLLMInstanceDiagnostics'
                failure_posture:
                    type: string
                    description: How LiteLLM behaves when Speakeasy cannot evaluate a request.
                    enum:
                        - fail_closed
                        - fail_open
                id:
                    type: string
                    format: uuid
                key_prefix:
                    type: string
                last_used_at:
                    type: string
                    format: date-time
                name:
                    type: string
                organization_id:
                    type: string
                project:
                    $ref: '#/components/schemas/ProjectEntry'
                updated_at:
                    type: string
                    format: date-time
            description: A provisioned LiteLLM integration and its project-bound ingestion credential metadata.
            required:
                - id
                - organization_id
                - project
                - name
                - failure_posture
                - key_prefix
                - created_by_user_id
                - created_at
                - updated_at
                - active
                - diagnostics
        LiteLLMInstanceDiagnostics:
            type: object
            properties:
                last_error_at:
                    type: string
                    format: date-time
                last_error_kind:
                    type: string
                    description: Safe category for the latest observed ingest error.
                    enum:
                        - auth_failure
                        - decode_failure
                        - limit_exceeded
                last_guardrail_event_at:
                    type: string
                    format: date-time
                last_otel_event_at:
                    type: string
                    format: date-time
                platform_user_pct_24h:
                    type: number
                    description: Percentage of model requests in the last 24 hours that resolved to a Speakeasy user.
                    format: double
                    minimum: 0
                    maximum: 100
                reported_litellm_version:
                    type: string
                    maxLength: 128
                status:
                    type: string
                    description: Derived health of a LiteLLM integration's latest ingest activity.
                    enum:
                        - pending
                        - success
                        - failed
                virtual_key_email_pct_24h:
                    type: number
                    description: Percentage of model requests in the last 24 hours that supplied a virtual-key email.
                    format: double
                    minimum: 0
                    maximum: 100
            description: Health and identity-attribution diagnostics for a LiteLLM integration. No prompt, credential, or identity values are returned.
            required:
                - status
        LiteLLMRequestData:
            type: object
            properties:
                user_api_key_alias:
                    type: string
                user_api_key_end_user_id:
                    type: string
                user_api_key_hash:
                    type: string
                user_api_key_org_id:
                    type: string
                user_api_key_team_alias:
                    type: string
                user_api_key_team_id:
                    type: string
                user_api_key_user_email:
                    type: string
                user_api_key_user_id:
                    type: string
            description: Sanitized metadata bound to the LiteLLM virtual key and request.
        LiteLLMStructuredMessage:
            type: object
            properties:
                content: {}
                role:
                    type: string
            description: A message supplied to LiteLLM for the guarded model request.
            required:
                - role
        LitellmIngestResult:
            type: object
            properties:
                action:
                    enum:
                        - BLOCKED
                        - NONE
                        - GUARDRAIL_INTERVENED
                    type: string
                    x-speakeasy-name-override: LiteLLMGuardrailAction
                blocked_reason:
                    type: string
                images:
                    type: array
                    items:
                        type: string
                stream_holdback_chars:
                    type: array
                    items:
                        type: integer
                        format: int64
                texts:
                    type: array
                    items:
                        type: string
                tools:
                    type: array
                    items: {}
            description: LiteLLM Generic Guardrail decision.
            required:
                - action
        LitellmInstanceKeyResult:
            type: object
            properties:
                instance:
                    $ref: '#/components/schemas/LiteLLMInstance'
                key:
                    type: string
            description: A LiteLLM instance and its newly minted plaintext key. The key is shown only once.
            required:
                - instance
                - key
        LogFilter:
            type: object
            properties:
                operator:
                    type: string
                    description: Comparison operator
                    default: eq
                    enum:
                        - eq
                        - not_eq
                        - contains
                        - exists
                        - not_exists
                        - in
                path:
                    type: string
                    description: Attribute path. Use @ prefix for custom attributes (e.g. '@user.region'), or bare path for system attributes (e.g. 'http.route').
                    example: '@user.region'
                    pattern: ^@?[a-zA-Z_][a-zA-Z0-9_]*(\.[a-zA-Z_][a-zA-Z0-9_]*)*$
                    minLength: 1
                    maxLength: 256
                values:
                    type: array
                    items:
                        type: string
                    description: Values to compare against. Pass one value for single-value operators (eq, not_eq, contains) and multiple for 'in'. Ignored for 'exists' and 'not_exists'.
                    maxItems: 256
            description: A single filter condition for a log search query.
            required:
                - path
        MCPRegistry:
            type: object
            properties:
                id:
                    type: string
                    description: Registry ID
                    format: uuid
                name:
                    type: string
                    description: Display name for the registry
                url:
                    type: string
                    description: URL of the registry
            description: An MCP registry
            required:
                - id
                - name
                - url
        MCPSetupGuide:
            type: object
            properties:
                add_server_flow:
                    type: string
                    description: How the server is meant to be added in Speakeasy, when the guide states one (e.g., 'catalog', 'custom-remote')
                aliases:
                    type: array
                    items:
                        type: string
                    description: Registry identifiers the guide is also published under
                external_markdown:
                    type: string
                    description: Markdown instructions for the setup work that happens in the upstream provider
                match_kind:
                    type: string
                    description: How the lookup matched this guide. The most specific kind, when both lookup keys matched it.
                    enum:
                        - endpoint
                        - alias
                matched_remote_id:
                    type: string
                    description: ID of the documented endpoint the lookup matched. Absent when the lookup identified the guide and not a specific endpoint, which is always the case for an 'alias' match.
                    example: hosted
                remotes:
                    type: array
                    items:
                        $ref: '#/components/schemas/MCPSetupGuideRemote'
                    description: Endpoints documented by the guide
                slug:
                    type: string
                    description: Stable identifier of the guide
                    example: box
                speakeasy_markdown:
                    type: string
                    description: Markdown instructions for the setup work that happens in Speakeasy
                summary:
                    type: string
                    description: One-line summary of what the guide covers
                title:
                    type: string
                    description: Display title of the guide
                    example: Box
            description: Published setup documentation for an upstream MCP server
            required:
                - slug
                - title
                - summary
                - aliases
                - remotes
                - match_kind
                - external_markdown
                - speakeasy_markdown
        MCPSetupGuideRemote:
            type: object
            properties:
                id:
                    type: string
                    description: Stable identifier of the endpoint within the guide
                    example: hosted
                tenanted:
                    type: boolean
                    description: Whether the endpoint URL is customer-specific and has to be filled in per tenant
                transport_type:
                    type: string
                    description: Transport type as published by the guide (e.g., 'streamable-http', 'sse')
                    example: streamable-http
                url:
                    type: string
                    description: URL of the endpoint
                    format: uri
            description: An MCP server endpoint documented by a setup guide
            required:
                - id
                - url
                - transport_type
                - tenanted
        ManagedAgent:
            type: object
            properties:
                connection_needs_refresh:
                    type: boolean
                    description: An assigned connection has expired or is no longer available; an authorized editor must reconnect their own account and assign it again
                created_at:
                    type: string
                    format: date-time
                id:
                    type: string
                    format: uuid
                lifecycle:
                    type: string
                    enum:
                        - active
                        - suspended
                        - revoked
                name:
                    type: string
                owner_profile:
                    $ref: '#/components/schemas/AgentOwnerProfile'
                owner_reassignment_reason:
                    type: string
                    description: Stable reason that explicit reassignment is required
                owner_reassignment_required_at:
                    type: string
                    description: When owner loss durably blocked this agent
                    format: date-time
                owner_user_id:
                    type: string
                permissions:
                    $ref: '#/components/schemas/AgentPermissions'
                project_id:
                    type: string
                    description: The optional project this agent is scoped to; absent for an organization-wide agent
                    format: uuid
                updated_at:
                    type: string
                    format: date-time
            required:
                - id
                - owner_user_id
                - name
                - lifecycle
                - permissions
                - created_at
                - updated_at
        ManagedDevice:
            type: object
            properties:
                agent_last_seen_at:
                    type: string
                    description: 'The latest sign of life that classified this device, a policy poll or a state report: the machine''s own under device-level matching, otherwise its assigned user''s. Omitted when no agent has ever synced.'
                    format: date-time
                agent_state:
                    $ref: '#/components/schemas/ManagedDeviceAgentState'
                coverage_bucket:
                    type: string
                    description: Coverage classification for the device. What agent_active attests depends on the org's matching mode and on whether this device matched by serial or by assigned-user email.
                    enum:
                        - agent_active
                        - agent_stale
                        - agent_other_device
                        - no_agent
                        - no_email
                        - unresolved_email
                        - missing
                external_id:
                    type: string
                    description: The MDM's identifier for the device.
                first_seen_at:
                    type: string
                    format: date-time
                hostname:
                    type: string
                    description: Device hostname.
                id:
                    type: string
                    description: Device row ID.
                last_seen_at:
                    type: string
                    format: date-time
                mdm_last_check_in_at:
                    type: string
                    description: Last device check-in as reported by the MDM.
                    format: date-time
                missing_since:
                    type: string
                    description: When the device went absent from the MDM inventory. Omitted while present.
                    format: date-time
                os_name:
                    type: string
                    description: Operating system name.
                os_version:
                    type: string
                    description: Operating system version.
                policy_state:
                    type: string
                    description: 'Whether the agent that answers for an agent_active device verifiably applies its policy; agent_state.attestation says whether that agent runs on this machine. attested: its latest report applies the policy last served to the reporting user. outdated: it reports a different policy, or none. unreported: no report within the window, from an agent that predates reporting or has stopped sending. halted: the reporting agent''s kill switch stopped enforcement on a blocked build. Omitted for every other bucket.'
                    enum:
                        - attested
                        - outdated
                        - unreported
                        - halted
                provider:
                    type: string
                    description: Provider the device was synced from.
                serial_number:
                    type: string
                    description: Hardware serial number as reported by the MDM.
                user_email:
                    type: string
                    description: Assigned user's email exactly as the MDM reported it. Omitted when the MDM has no assignment.
                user_id:
                    type: string
                    description: Resolved Speakeasy user for the assigned email. Omitted when the email is missing or does not resolve to an org member.
            description: 'One device from a connected MDM''s inventory, annotated with its agent-coverage bucket. What that bucket attests depends on the organization''s matching mode: under device-level matching a device may be classified by its own hardware serial (this machine ran the agent) or, when no serial heartbeat exists for it, by its assigned-user email (only that user ran the agent somewhere). Under user-level matching only the latter applies.'
            required:
                - id
                - provider
                - external_id
                - coverage_bucket
                - first_seen_at
                - last_seen_at
        ManagedDeviceAgentState:
            type: object
            properties:
                applied_at:
                    type: string
                    description: When the agent first applied that etag.
                    format: date-time
                applied_etag:
                    type: string
                    description: Etag of the policy the agent last applied.
                arch:
                    type: string
                    description: CPU architecture, e.g. arm64.
                attestation:
                    type: string
                    description: device when this machine's own agent sent the report, matched by serial. user when the assigned user's agent sent it, which may run on another machine.
                    enum:
                        - device
                        - user
                auto_update:
                    type: string
                    description: 'Resolved update mode: automatic, notify, or disabled.'
                current_blocked:
                    type: boolean
                    description: True when the agent build is in blocked_versions.
                drift_counting_since:
                    type: string
                    description: Start of the window tools[].drift_corrections counts over. Omitted when no tool measures drift.
                    format: date-time
                enforcement_halted:
                    type: boolean
                    description: True when the kill switch has halted policy enforcement.
                last_rollback:
                    $ref: '#/components/schemas/ManagedDeviceRollback'
                os:
                    type: string
                    description: Operating system, e.g. darwin.
                pinned_target:
                    type: string
                    description: Version the organization pinned the fleet to, when set.
                reported_at:
                    type: string
                    description: When the control plane received the report.
                    format: date-time
                speakeasy_ui_version:
                    type: string
                    description: Version of the menu bar app.
                speakeasy_version:
                    type: string
                    description: Version of the speakeasy CLI.
                speakeasyd_version:
                    type: string
                    description: Version of the speakeasyd daemon.
                tools:
                    type: array
                    items:
                        $ref: '#/components/schemas/ManagedDeviceTool'
                    description: Each managed tool's outcome from the agent's last reconcile.
                update_channel:
                    type: string
                    description: Update channel the agent follows, e.g. stable.
            description: What a device's agent last reported it enforces. Carries no error text or user-facing message.
            required:
                - reported_at
                - attestation
                - enforcement_halted
                - current_blocked
                - tools
        ManagedDeviceRollback:
            type: object
            properties:
                at:
                    type: string
                    description: When the rollback happened.
                    format: date-time
                from:
                    type: string
                    description: Version the agent rolled back from.
                to:
                    type: string
                    description: Version the agent rolled back to.
            description: 'A self-rollback: the updated build failed to start, so the agent restored the previous one.'
            required:
                - at
        ManagedDeviceTool:
            type: object
            properties:
                action_required:
                    type: boolean
                    description: True when a problem the user can fix is blocking this tool.
                drift_corrections:
                    type: integer
                    description: Times the agent restored what it owns in this tool since drift_counting_since. Omitted when not measured.
                    format: int64
                error_kind:
                    type: string
                    description: 'Class of a reconcile error: permission_denied, not_found, invalid_config, or unknown.'
                layer:
                    type: string
                    description: 'Enforcement layer: user, managed, off, or unknown.'
                outcome:
                    type: string
                    description: 'Reconcile outcome: armed, pending, skipped (tool not installed), error, unmanaged, or unknown.'
                pending_reason:
                    type: string
                    description: 'Why a pending tool is not enforcing yet: privileged_writer_not_ready, plugin_bundle_not_cloned, or unknown.'
                restart_required:
                    type: boolean
                    description: True when the tool loads the agent's changes only after it restarts.
                tool:
                    type: string
                    description: Stable tool id, e.g. claude_code.
            description: One managed tool's enforcement state on a device.
            required:
                - tool
                - layer
                - outcome
                - restart_required
                - action_required
        MarkEnterpriseTrialConvertedRequestBody:
            type: object
            properties:
                id:
                    type: string
                    description: Organization ID.
                    minLength: 1
            required:
                - id
        MarkEnterpriseTrialConvertedResult:
            type: object
            properties:
                converted_at:
                    type: string
                    description: The time at which the enterprise trial was recorded as converted.
                    format: date-time
                organization_id:
                    type: string
                    description: The converted organization ID.
            description: Privacy-minimal result of recording an enterprise trial conversion.
            required:
                - organization_id
                - converted_at
        MarkRiskResultsFalsePositiveRequestBody:
            type: object
            properties:
                reason:
                    type: string
                    description: Optional free-text reason for the dismissal.
                result_ids:
                    type: array
                    items:
                        type: string
                    description: IDs of the risk results to mark as false positive.
                    minItems: 1
                    maxItems: 500
            required:
                - result_ids
        MarketplaceSettingsResult:
            type: object
            properties:
                default_name:
                    type: string
                    description: The default marketplace name used when no override is configured.
                effective_name:
                    type: string
                    description: The marketplace name that will be used at publish time (override if set, otherwise default).
                marketplace_name:
                    type: string
                    description: User-provided override for the marketplace name. Absent when no override is configured.
                observability_enabled:
                    type: boolean
                    description: Whether this project's observability plugin is included in the published marketplace and installed by the device agent. Defaults to true when unset.
            required:
                - default_name
                - effective_name
                - observability_enabled
        McpEndpoint:
            type: object
            properties:
                created_at:
                    type: string
                    description: When the MCP endpoint was created
                    format: date-time
                custom_domain_id:
                    type: string
                    description: The ID of the custom domain this endpoint slug is registered under. Null for platform-domain endpoints.
                    format: uuid
                id:
                    type: string
                    description: The ID of the MCP endpoint
                    format: uuid
                is_domain_root:
                    type: boolean
                    description: Whether this endpoint is mapped to its custom-domain root
                mcp_server_id:
                    type: string
                    description: The ID of the MCP server this endpoint addresses. Null for meta-MCP-backed endpoints.
                    format: uuid
                meta_mcp_server_id:
                    type: string
                    description: The ID of the meta MCP server this endpoint addresses. Null for MCP-server-backed endpoints.
                    format: uuid
                project_id:
                    type: string
                    description: The project ID this MCP endpoint belongs to
                    format: uuid
                slug:
                    type: string
                    description: A url-friendly label (up to 128 characters) that addresses an MCP server through a slug-based URL. Platform-domain slugs (no custom domain) must be prefixed with the organization slug.
                    pattern: ^[a-z0-9_-]{1,128}$
                    maxLength: 128
                updated_at:
                    type: string
                    description: When the MCP endpoint was last updated
                    format: date-time
            description: 'An MCP endpoint: a url-friendly slug identifier that addresses an MCP server or a meta MCP server. Exactly one of mcp_server_id and meta_mcp_server_id is set.'
            required:
                - id
                - project_id
                - slug
                - is_domain_root
                - created_at
                - updated_at
        McpEnvironmentConfig:
            type: object
            properties:
                created_at:
                    type: string
                    description: When the config was created
                    format: date-time
                header_display_name:
                    type: string
                    description: Custom display name for the variable in MCP headers
                id:
                    type: string
                    description: The ID of the environment config
                provided_by:
                    type: string
                    description: 'How the variable is provided: ''user'', ''system'', or ''none'''
                updated_at:
                    type: string
                    description: When the config was last updated
                    format: date-time
                variable_name:
                    type: string
                    description: The name of the environment variable
            description: Represents an environment variable configured for an MCP server.
            required:
                - id
                - variable_name
                - provided_by
                - created_at
                - updated_at
        McpEnvironmentConfigInput:
            type: object
            properties:
                header_display_name:
                    type: string
                    description: Custom display name for the variable in MCP headers
                provided_by:
                    type: string
                    description: 'How the variable is provided: ''user'', ''system'', or ''none'''
                variable_name:
                    type: string
                    description: The name of the environment variable
            description: Input for configuring an environment variable for an MCP server.
            required:
                - variable_name
                - provided_by
        McpExport:
            type: object
            properties:
                authentication:
                    $ref: '#/components/schemas/McpExportAuthentication'
                description:
                    type: string
                    description: Description of the MCP server
                documentation_url:
                    type: string
                    description: Link to external documentation
                instructions:
                    type: string
                    description: Server instructions for users
                logo_url:
                    type: string
                    description: URL to the server logo
                name:
                    type: string
                    description: The MCP server name
                server_url:
                    type: string
                    description: The MCP server URL
                slug:
                    type: string
                    description: The MCP server slug
                tools:
                    type: array
                    items:
                        $ref: '#/components/schemas/McpExportTool'
                    description: Available tools on this MCP server
            description: Complete MCP server export for documentation and integration
            required:
                - name
                - slug
                - server_url
                - tools
                - authentication
        McpExportAuthHeader:
            type: object
            properties:
                display_name:
                    type: string
                    description: User-friendly display name (e.g., API Key)
                name:
                    type: string
                    description: The HTTP header name (e.g., Authorization)
            description: An authentication header required by the MCP server
            required:
                - name
                - display_name
        McpExportAuthentication:
            type: object
            properties:
                headers:
                    type: array
                    items:
                        $ref: '#/components/schemas/McpExportAuthHeader'
                    description: Required authentication headers
                required:
                    type: boolean
                    description: Whether authentication is required
            description: Authentication requirements for the MCP server
            required:
                - required
                - headers
        McpExportTool:
            type: object
            properties:
                description:
                    type: string
                    description: Description of what the tool does
                input_schema:
                    description: JSON Schema for the tool's input parameters
                name:
                    type: string
                    description: The tool name
            description: A tool definition in the MCP export
            required:
                - name
                - description
                - input_schema
        McpMetadata:
            type: object
            properties:
                created_at:
                    type: string
                    description: When the metadata entry was created
                    format: date-time
                default_environment_id:
                    type: string
                    description: The default environment to load variables from
                    format: uuid
                environment_configs:
                    type: array
                    items:
                        $ref: '#/components/schemas/McpEnvironmentConfig'
                    description: The list of environment variables configured for this MCP
                external_documentation_text:
                    type: string
                    description: A blob of text for the button on the MCP server page
                external_documentation_url:
                    type: string
                    description: A link to external documentation for the MCP install page
                    format: uri
                id:
                    type: string
                    description: The ID of the metadata record
                installation_override_url:
                    type: string
                    description: URL to redirect to instead of showing the default installation page
                    format: uri
                instructions:
                    type: string
                    description: Server instructions returned in the MCP initialize response
                logo_asset_id:
                    type: string
                    description: The asset ID for the MCP install page logo
                    format: uuid
                mcp_server_id:
                    type: string
                    description: The MCP server associated with this install page metadata. Also set with toolset_id, to the same id, for a hosted MCP server with a live canonical MCP server.
                    format: uuid
                toolset_id:
                    type: string
                    description: The toolset associated with this install page metadata. Also set with mcp_server_id, to the same id, for a hosted MCP server with a live canonical MCP server.
                    format: uuid
                updated_at:
                    type: string
                    description: When the metadata entry was last updated
                    format: date-time
            description: Metadata used to configure the MCP install page. toolset_id or mcp_server_id identifies which backend the metadata belongs to; a hosted MCP server with a live canonical MCP server carries both, set to the same id.
            required:
                - id
                - created_at
                - updated_at
        McpNetworkTrafficPoint:
            type: object
            properties:
                bucket_start:
                    type: string
                    description: Start of the UTC hour
                    format: date-time
                private_requests:
                    type: integer
                    description: Observed private requests
                    format: int64
                public_requests:
                    type: integer
                    description: Observed public requests
                    format: int64
            required:
                - bucket_start
                - public_requests
                - private_requests
        McpServer:
            type: object
            properties:
                created_at:
                    type: string
                    description: When the MCP server was created
                    format: date-time
                environment_id:
                    type: string
                    description: The ID of the environment associated with the server
                    format: uuid
                has_endpoint:
                    type: boolean
                    description: Whether any endpoint routes to this server, including one on a custom domain that is not live yet. Absent when it could not be read.
                id:
                    type: string
                    description: The ID of the MCP server
                    format: uuid
                legacy_platform_slug:
                    type: string
                    description: 'The slug of an older Speakeasy-hosted address of this hosted server: its legacy custom-domain address, which the Speakeasy domain also answers under the same access rules. Absent when a platform endpoint or another alias holds that slug.'
                name:
                    type: string
                    description: A human-readable display name for the server
                network_access_mode:
                    type: string
                    description: The network surfaces through which a Speakeasy-hosted MCP server may be reached.
                    enum:
                        - public_only
                        - dual
                        - private_only
                platform_endpoint_slug:
                    type: string
                    description: The slug of this server's primary platform endpoint, the oldest one. Absent when no platform endpoint exists; never a custom-domain slug.
                primary_endpoint_id:
                    type: string
                    description: 'The ID of the endpoint that stands for this server when a single address must be chosen: domain-root custom-domain endpoints first, then other custom-domain endpoints, then platform endpoints. Absent when the server has no addressable endpoint.'
                    format: uuid
                primary_endpoint_url:
                    type: string
                    description: The public MCP URL of the primary endpoint. Absent when the server has no addressable endpoint.
                project_id:
                    type: string
                    description: The project ID this MCP server belongs to
                    format: uuid
                remote_mcp_server_id:
                    type: string
                    description: The ID of the remote MCP server used as the backend
                    format: uuid
                slug:
                    type: string
                    description: A URL-safe, project-unique slug derived server-side from the name and ID
                tool_variations_group_id:
                    type: string
                    description: The ID of the tool variations group enabling MCP tool filtering for this server, if any.
                    format: uuid
                toolset:
                    $ref: '#/components/schemas/McpServerToolsetSummary'
                toolset_id:
                    type: string
                    description: The ID of the toolset used as the backend
                    format: uuid
                tunneled_mcp_server_id:
                    type: string
                    description: The ID of the tunneled MCP server used as the backend
                    format: uuid
                unproxied_mcp_server_id:
                    type: string
                    description: The ID of the unproxied MCP server used as the backend, if any. A server backed by an unproxied MCP server is never proxied by Speakeasy.
                    format: uuid
                updated_at:
                    type: string
                    description: When the MCP server was last updated
                    format: date-time
                user_session_issuer_id:
                    type: string
                    description: The ID of the user session issuer that gates OAuth-based MCP client authentication for this server, if any.
                    format: uuid
                visibility:
                    type: string
                    description: The visibility of an MCP server
                    enum:
                        - disabled
                        - private
                        - public
            description: 'An MCP server configuration: authentication, environment, and backend selection for an MCP server.'
            required:
                - id
                - project_id
                - visibility
                - network_access_mode
                - created_at
                - updated_at
        McpServerActivity:
            type: object
            properties:
                last_tool_call_at:
                    type: string
                    description: ISO 8601 timestamp of the most recent tool call
                    format: date-time
                recent_tool_calls:
                    type: integer
                    description: Number of tool calls observed inside the recent-activity window
                    format: int64
                target_id:
                    type: string
                    description: 'Stable target identifier: toolset slug for hosted servers, MCP server slug for tunneled/remote servers, meta MCP server id for gateways'
                target_label:
                    type: string
                    description: User-facing label for the target. Gateway rows carry the gateway name, falling back to the meta MCP server id when the gateway no longer exists
                target_type:
                    type: string
                    description: MCP server activity target type. Only the server-backed kinds this endpoint reports are valid, unlike the broader tool-usage target types.
                    enum:
                        - hosted_mcp_server
                        - tunneled_mcp_server
                        - meta_mcp_server
                total_tool_calls:
                    type: integer
                    description: Number of tool calls observed across the whole lookback window
                    format: int64
            description: Tool-call activity for one MCP server, keyed by the same target identifier used elsewhere (toolset slug for hosted servers, MCP server slug for tunneled/remote servers, meta MCP server id for gateways)
            required:
                - target_type
                - target_id
                - target_label
                - total_tool_calls
                - recent_tool_calls
        McpServerAuthentication:
            type: object
            properties:
                clients:
                    type: array
                    items:
                        $ref: '#/components/schemas/AuthClient'
                    description: The auth clients the server offers.
                mcp_server_id:
                    type: string
                    description: The MCP server id.
                    format: uuid
                project_id:
                    type: string
                    description: The MCP server's project.
                    format: uuid
                public:
                    type: boolean
                    description: Whether the MCP server is public.
                requires_upstream_auth:
                    type: boolean
                    description: 'Whether the upstream needs authentication: true when the server offers at least one enabled auth client.'
                status:
                    type: string
                    description: configured when the server offers at least one enabled auth client; setup_incomplete when no auth client was ever linked to it, live or detached, but it has a live upstream OAuth client or a credential header on its source that no auth client records yet; no_auth_required otherwise.
                    enum:
                        - configured
                        - setup_incomplete
                        - no_auth_required
            description: How an MCP server authenticates to its upstream.
            required:
                - mcp_server_id
                - project_id
                - public
                - requires_upstream_auth
                - status
                - clients
        McpServerToolsetSummary:
            type: object
            properties:
                description:
                    type: string
                    description: The toolset's description, if any
                external_mcp_proxy_only:
                    type: boolean
                    description: Whether every configured tool is an external MCP proxy tool, so the real tool count is unknown until a user signs in
                external_mcp_slugs:
                    type: array
                    items:
                        type: string
                    description: The distinct slugs of the external MCP sources the toolset's configured tools come from, sorted
                external_oauth_server_id:
                    type: string
                    description: The ID of the external OAuth server attached to the toolset, if any
                    format: uuid
                hosting_mcp_server_id:
                    type: string
                    description: 'The ID of the MCP server that stands in for the toolset: its canonical server, whose ID is the toolset''s, or when it has none, its oldest live server with a live endpoint. Absent when it has neither.'
                    format: uuid
                id:
                    type: string
                    description: The ID of the toolset
                    format: uuid
                name:
                    type: string
                    description: The name of the toolset
                registry_specifier:
                    type: string
                    description: The registry specifier the toolset originated from, if any
                slug:
                    type: string
                    description: The slug of the toolset
                tool_count:
                    type: integer
                    description: 'Number of tools the toolset serves: deployment-backed tools (HTTP, function, external MCP) that resolve in the project''s latest completed deployment, plus its prompt templates and registered platform tools. External MCP proxy tools are excluded.'
                    format: int64
                tool_selection_mode:
                    type: string
                    description: The toolset's tool selection mode
            description: A summary of the toolset backing a hosted MCP server.
            required:
                - id
                - slug
                - name
                - tool_count
                - tool_selection_mode
                - external_mcp_slugs
                - external_mcp_proxy_only
        McpServerUsageImpact:
            type: object
            properties:
                active_connection_count:
                    type: integer
                    description: Unexpired, unrevoked sessions that can reach this server.
                    format: int64
                active_subject_count:
                    type: integer
                    description: Distinct subjects (people, API keys, agents, workloads, anonymous callers) holding those sessions.
                    format: int64
                last_used_at:
                    type: string
                    description: Most recent use across all those sessions, accurate to within five minutes. Absent when none has a recorded use.
                    format: date-time
                server_name:
                    type: string
                    description: The server's display name, which confirmations ask the operator to type.
                shared_connection_count:
                    type: integer
                    description: Of active_connection_count, the sessions issued for the whole shared sign-in rather than this server's address. Always zero when shared_sign_in is false.
                    format: int64
                shared_sign_in:
                    type: boolean
                    description: Whether the server's user session issuer also serves other MCP servers or gateways. Connections not bound to this server's address may then be using one of those instead.
                sign_in_required:
                    type: boolean
                    description: 'Whether the server has a user session issuer. When false nothing is counted: callers are not signed in, so their usage is unknown.'
                subjects:
                    type: array
                    items:
                        $ref: '#/components/schemas/McpServerUsageSubject'
                    description: Subjects holding active sessions, most recently used first.
                subjects_truncated:
                    type: boolean
                    description: Whether more subjects exist than are listed.
            description: Active signed-in usage of an MCP server, for confirming a breaking change.
            required:
                - server_name
                - sign_in_required
                - shared_sign_in
                - active_connection_count
                - active_subject_count
                - shared_connection_count
                - subjects
                - subjects_truncated
        McpServerUsageSubject:
            type: object
            properties:
                client_names:
                    type: array
                    items:
                        type: string
                    description: Self-reported names of the MCP clients behind the sessions. Unverified.
                connection_count:
                    type: integer
                    description: Active sessions this subject holds.
                    format: int64
                display_name:
                    type: string
                    description: Resolved human-readable name of the subject, if known.
                email:
                    type: string
                    description: Email of the subject when it is a Speakeasy user.
                last_used_at:
                    type: string
                    description: Most recent use across this subject's sessions, accurate to within five minutes. Absent when unknown.
                    format: date-time
                photo_url:
                    type: string
                    description: Avatar URL of the subject when it is a Speakeasy user with one.
                shared_sign_in:
                    type: boolean
                    description: Whether every one of this subject's sessions was issued for the whole shared sign-in rather than this server, so the subject may be using another serve