# Generated public contract; edit the source and localization catalog.
openapi: 3.1.0
jsonSchemaDialect: https://json-schema.org/draft/2020-12/schema
info:
  title: OrbitSpace Events and integrations API
  version: 1.0.0
  description: Public v1 application contract for events and integrations. Protocol lifecycle and capability availability are documented in the integration guides.
servers:
  - url: https://api.orbitspace.dev
security:
  - bearerAuth: []
paths:
  /api/v1/automation-adapters:
    get:
      tags:
        - AutomationService
      operationId: AutomationService_ListAutomationAdapters
      parameters:
        - name: policy_scope_id
          in: query
          schema:
            type: string
          description: Policy scope id.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListAutomationAdaptersResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List automation adapters
      description: List automation adapters.
  /api/v1/automation-events/{id}:
    get:
      tags:
        - AutomationService
      operationId: AutomationService_GetAutomationEvent
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AutomationEventReceipt"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get automation event
      description: Get automation event.
  /api/v1/automation-schedules:preview:
    post:
      tags:
        - AutomationService
      operationId: AutomationService_PreviewAutomationSchedule
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/PreviewAutomationScheduleRequest"
        required: true
        description: Request body for preview automation schedule.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PreviewAutomationScheduleResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Preview automation schedule
      description: Preview automation schedule. Supply the fields defined in the request schema.
  /api/v1/automation-sources:
    get:
      tags:
        - AutomationService
      operationId: AutomationService_ListAutomationSources
      parameters:
        - name: policy_scope_id
          in: query
          schema:
            type: string
          description: Policy scope id.
        - name: include_inactive
          in: query
          schema:
            type: boolean
          description: Include inactive.
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: Requested page size, subject to the endpoint limits.
        - name: page_token
          in: query
          schema:
            type: string
          description: Opaque pagination token returned by the previous page. Do not construct or modify it.
        - name: status_filter
          in: query
          description: active (default), current (active and paused), history (archived), all.
          schema:
            type: string
        - name: category
          in: query
          description: channels, automations (excluding channels), or empty (legacy combined list).
          schema:
            type: string
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListAutomationSourcesResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List automation sources
      description: List automation sources. Use the declared pagination parameters to continue through results.
    post:
      tags:
        - AutomationService
      operationId: AutomationService_CreateAutomationSource
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateAutomationSourceRequest"
        required: true
        description: Request body for create automation source.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AutomationSource"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Create automation source
      description: Create automation source. Supply the fields defined in the request schema.
  /api/v1/automation-sources/{id}:
    get:
      tags:
        - AutomationService
      operationId: AutomationService_GetAutomationSource
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AutomationSource"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get automation source
      description: Get automation source.
  /api/v1/automation-sources/{id}:setStatus:
    post:
      tags:
        - AutomationService
      operationId: AutomationService_SetAutomationSourceStatus
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/SetAutomationSourceStatusRequest"
        required: true
        description: Request body for set automation source status.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AutomationSource"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Set automation source status
      description: Set automation source status. Supply the fields defined in the request schema.
  /api/v1/automation-sources/{source_id}/automations:
    get:
      tags:
        - AutomationService
      operationId: AutomationService_ListAutomations
      parameters:
        - name: source_id
          in: path
          required: true
          schema:
            type: string
          description: Source id.
        - name: include_inactive
          in: query
          schema:
            type: boolean
          description: Include inactive.
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: Requested page size, subject to the endpoint limits.
        - name: page_token
          in: query
          schema:
            type: string
          description: Opaque pagination token returned by the previous page. Do not construct or modify it.
        - name: status_filter
          in: query
          schema:
            type: string
          description: Status filter.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListAutomationsResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List automations
      description: List automations. Use the declared pagination parameters to continue through results.
  /api/v1/automation-sources/{source_id}/automations:publish:
    post:
      tags:
        - AutomationService
      operationId: AutomationService_PublishAutomation
      parameters:
        - name: source_id
          in: path
          required: true
          schema:
            type: string
          description: Source id.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/PublishAutomationRequest"
        required: true
        description: Request body for publish automation.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Automation"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Publish automation
      description: Publish automation. Supply the fields defined in the request schema.
  /api/v1/automation-sources/{source_id}/channel-access:
    get:
      tags:
        - AutomationService
      operationId: AutomationService_ListChannelAccess
      parameters:
        - name: source_id
          in: path
          required: true
          schema:
            type: string
          description: Source id.
        - name: status_filter
          in: query
          description: current (pending and approved), history, all.
          schema:
            type: string
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: Requested page size, subject to the endpoint limits.
        - name: page_token
          in: query
          schema:
            type: string
          description: Opaque pagination token returned by the previous page. Do not construct or modify it.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListChannelAccessResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List channel access
      description: List channel access. Use the declared pagination parameters to continue through results.
  /api/v1/automation-sources/{source_id}/channel-access/{id}:resetConversation:
    post:
      tags:
        - AutomationService
      operationId: AutomationService_ResetChannelConversation
      parameters:
        - name: source_id
          in: path
          required: true
          schema:
            type: string
          description: Source id.
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ResetChannelConversationRequest"
        required: true
        description: Request body for reset channel conversation.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ChannelAccess"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Reset channel conversation
      description: Reset channel conversation. Supply the fields defined in the request schema.
  /api/v1/automation-sources/{source_id}/channel-access:set:
    post:
      tags:
        - AutomationService
      operationId: AutomationService_SetChannelAccess
      parameters:
        - name: source_id
          in: path
          required: true
          schema:
            type: string
          description: Source id.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/SetChannelAccessRequest"
        required: true
        description: Request body for set channel access.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ChannelAccess"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Set channel access
      description: Set channel access. Supply the fields defined in the request schema.
  /api/v1/automation-sources/{source_id}/channel:disconnect:
    post:
      tags:
        - AutomationService
      operationId: AutomationService_DisconnectAutomationChannel
      parameters:
        - name: source_id
          in: path
          required: true
          schema:
            type: string
          description: Source id.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DisconnectAutomationChannelRequest"
        required: true
        description: Request body for disconnect automation channel.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AutomationSource"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Disconnect automation channel
      description: Disconnect automation channel. Supply the fields defined in the request schema.
  /api/v1/automation-sources/{source_id}/channel:inspect:
    post:
      tags:
        - AutomationService
      operationId: AutomationService_InspectAutomationChannel
      parameters:
        - name: source_id
          in: path
          required: true
          schema:
            type: string
          description: Source id.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/InspectAutomationChannelRequest"
        required: true
        description: Request body for inspect automation channel.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/InspectAutomationChannelResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Inspect automation channel
      description: Inspect automation channel. Supply the fields defined in the request schema.
  /api/v1/automation-sources/{source_id}/events:
    get:
      tags:
        - AutomationService
      operationId: AutomationService_ListAutomationEvents
      parameters:
        - name: source_id
          in: path
          required: true
          schema:
            type: string
          description: Source id.
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: Requested page size, subject to the endpoint limits.
        - name: page_token
          in: query
          schema:
            type: string
          description: Opaque pagination token returned by the previous page. Do not construct or modify it.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListAutomationEventsResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List automation events
      description: List automation events. Use the declared pagination parameters to continue through results.
    post:
      tags:
        - AutomationService
      operationId: AutomationService_AcceptAutomationEvent
      parameters:
        - name: source_id
          in: path
          required: true
          schema:
            type: string
          description: Source id.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/AcceptAutomationEventRequest"
        required: true
        description: Request body for accept automation event.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AcceptAutomationEventResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Accept automation event
      description: Accept automation event. Supply the fields defined in the request schema.
  /api/v1/automation-sources/{source_id}/schedule:
    get:
      tags:
        - AutomationService
      operationId: AutomationService_GetAutomationSchedule
      parameters:
        - name: source_id
          in: path
          required: true
          schema:
            type: string
          description: Source id.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AutomationSchedule"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get automation schedule
      description: Get automation schedule.
  /api/v1/automation-sources/{source_id}/schedule:publish:
    post:
      tags:
        - AutomationService
      operationId: AutomationService_PublishAutomationSchedule
      parameters:
        - name: source_id
          in: path
          required: true
          schema:
            type: string
          description: Source id.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/PublishAutomationScheduleRequest"
        required: true
        description: Request body for publish automation schedule.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AutomationSchedule"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Publish automation schedule
      description: Publish automation schedule. Supply the fields defined in the request schema.
  /api/v1/automation-sources/{source_id}/webhook:
    get:
      tags:
        - AutomationService
      operationId: AutomationService_GetAutomationWebhook
      parameters:
        - name: source_id
          in: path
          required: true
          schema:
            type: string
          description: Source id.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AutomationWebhook"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get automation Webhook
      description: Get automation Webhook.
  /api/v1/automation-sources/{source_id}/webhook:publish:
    post:
      tags:
        - AutomationService
      operationId: AutomationService_PublishAutomationWebhook
      parameters:
        - name: source_id
          in: path
          required: true
          schema:
            type: string
          description: Source id.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/PublishAutomationWebhookRequest"
        required: true
        description: Request body for publish automation webhook.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AutomationWebhook"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Publish automation Webhook
      description: Publish automation Webhook. Supply the fields defined in the request schema.
  /api/v1/automation-sources/{source_id}:preview:
    post:
      tags:
        - AutomationService
      operationId: AutomationService_PreviewAutomationRule
      parameters:
        - name: source_id
          in: path
          required: true
          schema:
            type: string
          description: Source id.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/PreviewAutomationRuleRequest"
        required: true
        description: Request body for preview automation rule.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PreviewAutomationRuleResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Preview automation rule
      description: Preview automation rule. Supply the fields defined in the request schema.
  /api/v1/automations/{automation_id}/occurrences:
    get:
      tags:
        - AutomationService
      operationId: AutomationService_ListAutomationOccurrences
      parameters:
        - name: automation_id
          in: path
          required: true
          schema:
            type: string
          description: Automation id.
        - name: include_history
          in: query
          schema:
            type: boolean
          description: Include history.
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: Requested page size, subject to the endpoint limits.
        - name: page_token
          in: query
          schema:
            type: string
          description: Opaque pagination token returned by the previous page. Do not construct or modify it.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListAutomationOccurrencesResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List automation occurrences
      description: List automation occurrences. Use the declared pagination parameters to continue through results.
  /api/v1/automations/{id}:
    get:
      tags:
        - AutomationService
      operationId: AutomationService_GetAutomation
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Automation"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get automation
      description: Get automation.
  /api/v1/automations/{id}:setStatus:
    post:
      tags:
        - AutomationService
      operationId: AutomationService_SetAutomationStatus
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/SetAutomationStatusRequest"
        required: true
        description: Request body for set automation status.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Automation"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Set automation status
      description: Set automation status. Supply the fields defined in the request schema.
  /api/v1/edge-resource-handles:
    get:
      tags:
        - EdgeResourceService
      operationId: EdgeResourceService_ListEdgeResourceHandles
      parameters:
        - name: policy_scope_id
          in: query
          schema:
            type: string
          description: Policy scope id.
        - name: host_id
          in: query
          schema:
            type: string
          description: Host id.
        - name: include_inactive
          in: query
          schema:
            type: boolean
          description: Include inactive.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListEdgeResourceHandlesResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List edge resource handles
      description: List edge resource handles.
    post:
      tags:
        - EdgeResourceService
      operationId: EdgeResourceService_CreateEdgeResourceHandle
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateEdgeResourceHandleRequest"
        required: true
        description: Request body for create edge resource handle.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/EdgeResourceHandle"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Create edge resource handle
      description: Create edge resource handle. Supply the fields defined in the request schema.
  /api/v1/edge-resource-handles/{id}:revoke:
    post:
      tags:
        - EdgeResourceService
      operationId: EdgeResourceService_RevokeEdgeResourceHandle
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RevokeEdgeResourceHandleRequest"
        required: true
        description: Request body for revoke edge resource handle.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/EdgeResourceHandle"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Revoke edge resource handle
      description: Revoke edge resource handle. Supply the fields defined in the request schema.
  /api/v1/integration-clients:
    get:
      tags:
        - IntegrationService
      operationId: IntegrationService_ListIntegrationClients
      parameters:
        - name: include_disabled
          in: query
          schema:
            type: boolean
          description: Include disabled.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListIntegrationClientsResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List integration clients
      description: List integration clients.
    post:
      tags:
        - IntegrationService
      operationId: IntegrationService_CreateIntegrationClient
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateIntegrationClientRequest"
        required: true
        description: Request body for create integration client.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateIntegrationClientResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Create integration client
      description: Create integration client. Supply the fields defined in the request schema.
  /api/v1/integration-clients/{id}:
    get:
      tags:
        - IntegrationService
      operationId: IntegrationService_GetIntegrationClient
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IntegrationClient"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get integration client
      description: Get integration client.
    patch:
      tags:
        - IntegrationService
      operationId: IntegrationService_UpdateIntegrationClient
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateIntegrationClientRequest"
        required: true
        description: Request body for update integration client.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IntegrationClient"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Update integration client
      description: Update integration client. Supply the fields defined in the request schema.
  /api/v1/integration-clients/{id}/credentials:
    get:
      tags:
        - IntegrationService
      operationId: IntegrationService_ListIntegrationClientCredentials
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListIntegrationClientCredentialsResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List integration client credentials
      description: List integration client credentials.
  /api/v1/integration-clients/{id}/credentials/{credential_id}:revoke:
    post:
      tags:
        - IntegrationService
      operationId: IntegrationService_RevokeIntegrationClientCredential
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
        - name: credential_id
          in: path
          required: true
          schema:
            type: string
          description: Credential id.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RevokeIntegrationClientCredentialRequest"
        required: true
        description: Request body for revoke integration client credential.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IntegrationClientCredential"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Revoke integration client credential
      description: Revoke integration client credential. Supply the fields defined in the request schema.
  /api/v1/integration-clients/{id}/credentials:rotate:
    post:
      tags:
        - IntegrationService
      operationId: IntegrationService_RotateIntegrationClientSecret
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RotateIntegrationClientSecretRequest"
        required: true
        description: Request body for rotate integration client secret.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RotateIntegrationClientSecretResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Rotate integration client secret
      description: Rotate integration client secret. Supply the fields defined in the request schema.
  /api/v1/integration-clients/{id}/quota/status:
    get:
      tags:
        - IntegrationService
      operationId: IntegrationService_GetIntegrationClientQuotaStatus
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IntegrationClientQuotaStatus"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get integration client quota status
      description: Get integration client quota status.
  /api/v1/integration-clients/{id}:disable:
    post:
      tags:
        - IntegrationService
      operationId: IntegrationService_DisableIntegrationClient
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DisableIntegrationClientRequest"
        required: true
        description: Request body for disable integration client.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IntegrationClient"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Disable integration client
      description: Disable integration client. Supply the fields defined in the request schema.
  /api/v1/oauth-consent-grants:
    get:
      tags:
        - IntegrationService
      operationId: IntegrationService_ListOAuthConsentGrants
      parameters:
        - name: include_inactive
          in: query
          schema:
            type: boolean
          description: Include inactive.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListOAuthConsentGrantsResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List OAuth consent grants
      description: List OAuth consent grants.
  /api/v1/oauth-consent-grants/{id}:revoke:
    post:
      tags:
        - IntegrationService
      operationId: IntegrationService_RevokeOAuthConsentGrant
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RevokeOAuthConsentGrantRequest"
        required: true
        description: Request body for revoke oauth consent grant.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OAuthConsentGrant"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Revoke OAuth consent grant
      description: Revoke OAuth consent grant. Supply the fields defined in the request schema.
  /api/v1/repository-publications/{id}:
    get:
      tags:
        - SourceControlService
      operationId: SourceControlService_GetRepositoryPublication
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RepositoryPublication"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get repository publication
      description: Get repository publication.
  /api/v1/repository-publications/{id}:retry-maintenance:
    post:
      tags:
        - SourceControlService
      operationId: SourceControlService_RetryRepositoryPublicationMaintenance
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RetryRepositoryPublicationMaintenanceRequest"
        required: true
        description: Request body for retry repository publication maintenance.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RepositoryPublication"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Retry repository publication maintenance
      description: Retry repository publication maintenance. Supply the fields defined in the request schema.
  /api/v1/source-control/actions:
    get:
      tags:
        - SourceControlService
      operationId: SourceControlService_ListSourceActions
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSourceActionsResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List source actions
      description: List source actions.
  /api/v1/source-control/connections:
    get:
      tags:
        - SourceControlService
      operationId: SourceControlService_ListSourceControlConnections
      parameters:
        - name: include_revoked
          in: query
          schema:
            type: boolean
          description: Include revoked.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSourceControlConnectionsResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List source control connections
      description: List source control connections.
    post:
      tags:
        - SourceControlService
      operationId: SourceControlService_CreateSourceControlConnection
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateSourceControlConnectionRequest"
        required: true
        description: Request body for create source control connection.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SourceControlConnection"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Create source control connection
      description: Register a source control connection and its credential reference. Repository discovery, repository access grants and Workspace repository bindings are separate steps.
  /api/v1/source-control/connections/{connection_id}/repositories:
    post:
      tags:
        - SourceControlService
      operationId: SourceControlService_CreateSourceRepository
      parameters:
        - name: connection_id
          in: path
          required: true
          schema:
            type: string
          description: Connection id.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateSourceRepositoryRequest"
        required: true
        description: Request body for create source repository.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SourceRepository"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Create source repository
      description: Create source repository. Supply the fields defined in the request schema.
  /api/v1/source-control/connections/{id}:
    get:
      tags:
        - SourceControlService
      operationId: SourceControlService_GetSourceControlConnection
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SourceControlConnection"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get source control connection
      description: Get source control connection.
  /api/v1/source-control/connections/{id}/available-repositories:
    get:
      tags:
        - SourceControlService
      description: Discover repositories without registering them or granting Workspace access.
      operationId: SourceControlService_ListSourceControlConnectionRepositories
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
        - name: page
          in: query
          schema:
            type: integer
            format: int32
          description: Page.
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: Requested page size, subject to the endpoint limits.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSourceControlConnectionRepositoriesResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List source control connection repositories
  /api/v1/source-control/connections/{id}:revoke:
    post:
      tags:
        - SourceControlService
      operationId: SourceControlService_RevokeSourceControlConnection
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RevokeSourceControlConnectionRequest"
        required: true
        description: Request body for revoke source control connection.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SourceControlConnection"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Revoke source control connection
      description: Revoke source control connection. Supply the fields defined in the request schema.
  /api/v1/source-control/connections/{id}:updateProviderCredential:
    post:
      tags:
        - SourceControlService
      operationId: SourceControlService_UpdateSourceControlProviderCredential
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateSourceControlProviderCredentialRequest"
        required: true
        description: Request body for update source control provider credential.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SourceControlConnection"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Update source control provider credential
      description: Update source control provider credential. Supply the fields defined in the request schema.
  /api/v1/source-control/connections/{id}:verifyProviderAccess:
    post:
      tags:
        - SourceControlService
      operationId: SourceControlService_VerifySourceControlProviderAccess
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/VerifySourceControlProviderAccessRequest"
        required: true
        description: Request body for verify source control provider access.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SourceControlConnection"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Verify source control provider access
      description: Verify source control provider access. Supply the fields defined in the request schema.
  /api/v1/source-control/repositories:
    get:
      tags:
        - SourceControlService
      operationId: SourceControlService_ListSourceRepositories
      parameters:
        - name: connection_id
          in: query
          schema:
            type: string
          description: Connection id.
        - name: policy_scope_id
          in: query
          schema:
            type: string
          description: Policy scope id.
        - name: include_archived
          in: query
          schema:
            type: boolean
          description: Include archived.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSourceRepositoriesResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List source repositories
      description: List source repositories.
  /api/v1/source-control/repositories/{id}:
    get:
      tags:
        - SourceControlService
      operationId: SourceControlService_GetSourceRepository
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SourceRepository"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get source repository
      description: Get source repository.
  /api/v1/source-control/repositories/{id}:archive:
    post:
      tags:
        - SourceControlService
      operationId: SourceControlService_ArchiveSourceRepository
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ArchiveSourceRepositoryRequest"
        required: true
        description: Request body for archive source repository.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SourceRepository"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Archive source repository
      description: Archive source repository. Supply the fields defined in the request schema.
  /api/v1/source-control/repositories/{id}:restore:
    post:
      tags:
        - SourceControlService
      operationId: SourceControlService_RestoreSourceRepository
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RestoreSourceRepositoryRequest"
        required: true
        description: Request body for restore source repository.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SourceRepository"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Restore source repository
      description: Restore source repository. Supply the fields defined in the request schema.
  /api/v1/source-control/repositories/{id}:verify:
    post:
      tags:
        - SourceControlService
      operationId: SourceControlService_VerifySourceRepository
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/VerifySourceRepositoryRequest"
        required: true
        description: Request body for verify source repository.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ResolvedRepositoryReference"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Verify source repository
      description: Verify source repository. Supply the fields defined in the request schema.
  /api/v1/source-control/repositories/{repository_id}/grants:
    post:
      tags:
        - SourceControlService
      operationId: SourceControlService_CreateSourceRepositoryGrant
      parameters:
        - name: repository_id
          in: path
          required: true
          schema:
            type: string
          description: Repository id.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateSourceRepositoryGrantRequest"
        required: true
        description: Request body for create source repository grant.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SourceRepositoryGrant"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Create source repository grant
      description: Create source repository grant. Supply the fields defined in the request schema.
  /api/v1/source-control/repositories/{repository_id}:resolve:
    post:
      tags:
        - SourceControlService
      operationId: SourceControlService_ResolveRepositoryReference
      parameters:
        - name: repository_id
          in: path
          required: true
          schema:
            type: string
          description: Repository id.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ResolveRepositoryReferenceRequest"
        required: true
        description: Request body for resolve repository reference.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ResolvedRepositoryReference"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Resolve repository reference
      description: Resolve repository reference. Supply the fields defined in the request schema.
  /api/v1/source-control/repository-grants:
    get:
      tags:
        - SourceControlService
      operationId: SourceControlService_ListSourceRepositoryGrants
      parameters:
        - name: repository_id
          in: query
          schema:
            type: string
          description: Repository id.
        - name: policy_scope_id
          in: query
          schema:
            type: string
          description: Policy scope id.
        - name: include_revoked
          in: query
          schema:
            type: boolean
          description: Include revoked.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSourceRepositoryGrantsResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List source repository grants
      description: List source repository grants.
  /api/v1/source-control/repository-grants/{id}:
    get:
      tags:
        - SourceControlService
      operationId: SourceControlService_GetSourceRepositoryGrant
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SourceRepositoryGrant"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get source repository grant
      description: Get source repository grant.
    post:
      tags:
        - SourceControlService
      operationId: SourceControlService_UpdateSourceRepositoryGrant
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateSourceRepositoryGrantRequest"
        required: true
        description: Request body for update source repository grant.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SourceRepositoryGrant"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Update source repository grant
      description: Update source repository grant. Supply the fields defined in the request schema.
  /api/v1/source-control/repository-grants/{id}:revoke:
    post:
      tags:
        - SourceControlService
      operationId: SourceControlService_RevokeSourceRepositoryGrant
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RevokeSourceRepositoryGrantRequest"
        required: true
        description: Request body for revoke source repository grant.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SourceRepositoryGrant"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Revoke source repository grant
      description: Revoke source repository grant. Supply the fields defined in the request schema.
  /api/v1/webhook-deliveries:
    get:
      tags:
        - WebhookService
      operationId: WebhookService_ListWebhookDeliveries
      parameters:
        - name: subscription_id
          in: query
          schema:
            type: string
          description: Subscription id.
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: Requested page size, subject to the endpoint limits.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWebhookDeliveriesResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List Webhook deliveries
      description: List Webhook deliveries.
  /api/v1/webhook-deliveries/{id}:
    get:
      tags:
        - WebhookService
      operationId: WebhookService_GetWebhookDelivery
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebhookDelivery"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get Webhook delivery
      description: Get Webhook delivery.
  /api/v1/webhook-deliveries/{id}:retry:
    post:
      tags:
        - WebhookService
      operationId: WebhookService_RetryWebhookDelivery
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RetryWebhookDeliveryRequest"
        required: true
        description: Request body for retry webhook delivery.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebhookDelivery"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Retry Webhook delivery
      description: Request another attempt for the existing webhook delivery. The receiver must deduplicate using the stable event or delivery identity and still verify the signature.
  /api/v1/webhook-event-types:
    get:
      tags:
        - WebhookService
      operationId: WebhookService_ListWebhookEventTypes
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWebhookEventTypesResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List Webhook event types
      description: List Webhook event types.
  /api/v1/webhook-resources:
    get:
      tags:
        - WebhookService
      operationId: WebhookService_ListWebhookResources
      parameters:
        - name: policy_scope_id
          in: query
          schema:
            type: string
          description: Policy scope id.
        - name: resource_type
          in: query
          schema:
            type: string
          description: Resource type.
        - name: query
          in: query
          schema:
            type: string
          description: Query.
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: Requested page size, subject to the endpoint limits.
        - name: workspace_id
          in: query
          schema:
            type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        - name: page_token
          in: query
          schema:
            type: string
          description: Opaque pagination token returned by the previous page. Do not construct or modify it.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWebhookResourcesResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List Webhook resources
      description: List Webhook resources. Use the declared pagination parameters to continue through results.
  /api/v1/webhook-subscriptions:
    get:
      tags:
        - WebhookService
      operationId: WebhookService_ListWebhookSubscriptions
      parameters:
        - name: include_disabled
          in: query
          schema:
            type: boolean
          description: Include disabled.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWebhookSubscriptionsResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List Webhook subscriptions
      description: List Webhook subscriptions.
    post:
      tags:
        - WebhookService
      operationId: WebhookService_CreateWebhookSubscription
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWebhookSubscriptionRequest"
        required: true
        description: Request body for create webhook subscription.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebhookSubscription"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Create Webhook subscription
      description: Subscribe an HTTPS endpoint to the selected public event types and resource scope. Configure a signing credential reference and verify signatures at the receiver. Delivery records track each attempt.
  /api/v1/webhook-subscriptions/{id}:endKeyOverlap:
    post:
      tags:
        - WebhookService
      operationId: WebhookService_EndWebhookKeyOverlap
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/EndWebhookKeyOverlapRequest"
        required: true
        description: Request body for end webhook key overlap.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebhookSubscription"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: End Webhook key overlap
      description: End Webhook key overlap. Supply the fields defined in the request schema.
  /api/v1/webhook-subscriptions/{id}:rotateSigningKey:
    post:
      tags:
        - WebhookService
      operationId: WebhookService_RotateWebhookSigningKey
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RotateWebhookSigningKeyRequest"
        required: true
        description: Request body for rotate webhook signing key.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebhookSigningCredential"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Rotate Webhook signing key
      description: Rotate Webhook signing key. Supply the fields defined in the request schema.
  /api/v1/webhook-subscriptions/{id}:setStatus:
    post:
      tags:
        - WebhookService
      operationId: WebhookService_SetWebhookSubscriptionStatus
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/SetWebhookSubscriptionStatusRequest"
        required: true
        description: Request body for set webhook subscription status.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebhookSubscription"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Set Webhook subscription status
      description: Set Webhook subscription status. Supply the fields defined in the request schema.
  /api/v1/webhook-subscriptions/{id}:test:
    post:
      tags:
        - WebhookService
      operationId: WebhookService_TestWebhookSubscription
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/TestWebhookSubscriptionRequest"
        required: true
        description: Request body for test webhook subscription.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebhookDelivery"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Test Webhook subscription
      description: Test Webhook subscription. Supply the fields defined in the request schema.
  /api/v1/webhook-subscriptions:provision:
    post:
      tags:
        - WebhookService
      operationId: WebhookService_ProvisionWebhookSubscription
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ProvisionWebhookSubscriptionRequest"
        required: true
        description: Request body for provision webhook subscription.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebhookSigningCredential"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Provision Webhook subscription
      description: Provision Webhook subscription. Supply the fields defined in the request schema.
  /api/v1/workspaces/{workspace_id}/repositories:
    get:
      tags:
        - SourceControlService
      operationId: SourceControlService_ListWorkspaceRepositories
      parameters:
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        - name: include_removed
          in: query
          schema:
            type: boolean
          description: Include removed.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorkspaceRepositoriesResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List workspace repositories
      description: List workspace repositories.
    post:
      tags:
        - SourceControlService
      operationId: SourceControlService_BindWorkspaceRepository
      parameters:
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/BindWorkspaceRepositoryRequest"
        required: true
        description: Request body for bind workspace repository.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorkspaceRepositoryBinding"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Bind workspace repository
      description: Bind workspace repository. Supply the fields defined in the request schema.
  /api/v1/workspaces/{workspace_id}/repositories/{id}:refresh:
    post:
      tags:
        - SourceControlService
      operationId: SourceControlService_RefreshWorkspaceRepository
      parameters:
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RefreshWorkspaceRepositoryRequest"
        required: true
        description: Request body for refresh workspace repository.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorkspaceRepositoryBinding"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Refresh workspace repository
      description: Refresh workspace repository. Supply the fields defined in the request schema.
  /api/v1/workspaces/{workspace_id}/repositories/{id}:remove:
    post:
      tags:
        - SourceControlService
      operationId: SourceControlService_RemoveWorkspaceRepository
      parameters:
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RemoveWorkspaceRepositoryRequest"
        required: true
        description: Request body for remove workspace repository.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorkspaceRepositoryBinding"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Remove workspace repository
      description: Remove workspace repository. Supply the fields defined in the request schema.
  /api/v1/workspaces/{workspace_id}/repository-publications:
    get:
      tags:
        - SourceControlService
      operationId: SourceControlService_ListRepositoryPublications
      parameters:
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        - name: run_id
          in: query
          schema:
            type: string
          description: Identifier of an execution Run associated with a Task.
        - name: kind
          in: query
          schema:
            enum:
              - REPOSITORY_PUBLICATION_KIND_UNSPECIFIED
              - REPOSITORY_PUBLICATION_KIND_COMMIT
              - REPOSITORY_PUBLICATION_KIND_PUSH_BRANCH
              - REPOSITORY_PUBLICATION_KIND_CREATE_PULL_REQUEST
              - REPOSITORY_PUBLICATION_KIND_UPDATE_PULL_REQUEST
              - REPOSITORY_PUBLICATION_KIND_MERGE_PULL_REQUEST
              - REPOSITORY_PUBLICATION_KIND_TAG
              - REPOSITORY_PUBLICATION_KIND_CLOSE_PULL_REQUEST
            type: string
            format: enum
            description: Kind.
            x-enum-descriptions:
              REPOSITORY_PUBLICATION_KIND_UNSPECIFIED: unspecified
              REPOSITORY_PUBLICATION_KIND_COMMIT: commit
              REPOSITORY_PUBLICATION_KIND_PUSH_BRANCH: push branch
              REPOSITORY_PUBLICATION_KIND_CREATE_PULL_REQUEST: create pull request
              REPOSITORY_PUBLICATION_KIND_UPDATE_PULL_REQUEST: update pull request
              REPOSITORY_PUBLICATION_KIND_MERGE_PULL_REQUEST: merge pull request
              REPOSITORY_PUBLICATION_KIND_TAG: tag
              REPOSITORY_PUBLICATION_KIND_CLOSE_PULL_REQUEST: close pull request
          description: Kind.
        - name: status
          in: query
          schema:
            enum:
              - REPOSITORY_PUBLICATION_STATUS_UNSPECIFIED
              - REPOSITORY_PUBLICATION_STATUS_PENDING
              - REPOSITORY_PUBLICATION_STATUS_RUNNING
              - REPOSITORY_PUBLICATION_STATUS_SUCCEEDED
              - REPOSITORY_PUBLICATION_STATUS_FAILED
            type: string
            format: enum
            description: Status.
            x-enum-descriptions:
              REPOSITORY_PUBLICATION_STATUS_UNSPECIFIED: unspecified
              REPOSITORY_PUBLICATION_STATUS_PENDING: pending
              REPOSITORY_PUBLICATION_STATUS_RUNNING: running
              REPOSITORY_PUBLICATION_STATUS_SUCCEEDED: succeeded
              REPOSITORY_PUBLICATION_STATUS_FAILED: failed
          description: Status.
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: Requested page size, subject to the endpoint limits.
        - name: page_token
          in: query
          schema:
            type: string
          description: Opaque pagination token returned by the previous page. Do not construct or modify it.
        - name: task_id
          in: query
          schema:
            type: string
          description: Identifier of the durable Task; do not substitute an execution Run ID.
        - name: status_group
          in: query
          description: Optional current (pending/running) or historical (succeeded/failed) group.
          schema:
            type: string
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListRepositoryPublicationsResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List repository publications
      description: List repository publications. Use the declared pagination parameters to continue through results.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
  schemas:
    AcceptAutomationEventRequest:
      type: object
      properties:
        source_id:
          type: string
          description: Source id.
        event_json:
          type: string
          description: A CloudEvents 1.0 JSON envelope with object data. Payload is capped at 1 MiB.
      description: Accept automation event request.
    AcceptAutomationEventResponse:
      type: object
      properties:
        receipt:
          $ref: "#/components/schemas/AutomationEventReceipt"
          description: Receipt.
        duplicate:
          type: boolean
          description: Duplicate.
      description: Accept automation event response.
    ApplicationQuotaPolicy:
      type: object
      properties:
        monthly_runs:
          type: string
          description: Monthly runs.
        max_active_runs:
          type: integer
          format: int32
          description: Max active runs.
        total_tokens:
          type: string
          description: Total tokens.
        model_cost_microunits:
          type: string
          description: Model cost microunits.
        compute_ms:
          type: string
          description: Compute ms.
        gpu_ms:
          type: string
          description: Gpu ms.
        currency:
          type: string
          description: Currency.
      description: |-
        UTC calendar-month limits. Zero inherits the tenant limit without adding
         an application limit. Every Agent Run, including delegates and retries,
         belongs to the initiating application. Cache tokens remain input tokens.
    ArchiveSourceRepositoryRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
      description: Archive source repository request.
    Automation:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        source_id:
          type: string
          description: Source id.
        policy_scope_id:
          type: string
          description: Policy scope id.
        name:
          type: string
          description: Name.
        status:
          enum:
            - AUTOMATION_STATUS_UNSPECIFIED
            - AUTOMATION_STATUS_ACTIVE
            - AUTOMATION_STATUS_PAUSED
            - AUTOMATION_STATUS_ARCHIVED
          type: string
          format: enum
          description: Status.
          x-enum-descriptions:
            AUTOMATION_STATUS_UNSPECIFIED: unspecified
            AUTOMATION_STATUS_ACTIVE: active
            AUTOMATION_STATUS_PAUSED: paused
            AUTOMATION_STATUS_ARCHIVED: archived
        state_version:
          type: string
          description: State revision used for optimistic concurrency. Preserve its exact decimal representation.
        current_version_id:
          type: string
          description: Current version id.
        current_version:
          type: integer
          format: int32
          description: Current version.
        definition_json:
          type: string
          description: Immutable server-pinned definition, including exact target revision.
        input_mapping_json:
          type: string
          description: Input mapping json.
        created_by:
          type: string
          description: Created by.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
      description: Automation representation.
    AutomationAdapter:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        config_schema_json:
          type: string
          description: Config schema json.
      description: Automation adapter representation.
    AutomationChannelCandidate:
      type: object
      properties:
        actor_id:
          type: string
          description: Actor id.
        actor_label:
          type: string
          description: Actor label.
        chat_id:
          type: string
          description: Chat id.
        chat_label:
          type: string
          description: Chat label.
        private_chat:
          type: boolean
          description: Private chat.
      description: Automation channel candidate representation.
    AutomationChannelVerificationChallenge:
      type: object
      properties:
        kind:
          type: string
          description: Kind.
        value:
          type: string
          description: Value.
        expires_at:
          type: string
          format: date-time
          description: Expires at as an RFC 3339 timestamp.
      description: Automation channel verification challenge representation.
    AutomationEventReceipt:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        source_id:
          type: string
          description: Source id.
        source_event_id:
          type: string
          description: Source event id.
        event_type:
          type: string
          description: Event type.
        subject:
          type: string
          description: Subject.
        content_sha256:
          type: string
          description: Content sha256.
        status:
          type: string
          description: Status.
        match_count:
          type: integer
          format: int32
          description: Match count.
        received_by:
          type: string
          description: Received by.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        payload_expires_at:
          type: string
          format: date-time
          description: Payload expires at as an RFC 3339 timestamp.
      description: Automation event receipt representation.
    AutomationOccurrence:
      type: object
      properties:
        result_delivery_json:
          type: string
          description: Public delivery summary; excludes credentials, claims and result payload.
        execution_json:
          type: string
          description: Public execution/resource association; excludes input, credentials and claims.
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        automation_id:
          type: string
          description: Automation id.
        automation_version_id:
          type: string
          description: Automation version id.
        event_id:
          type: string
          description: Event id.
        status:
          type: string
          description: queued/admitted/blocked describes trigger admission, not Task completion.
        invocation_id:
          type: string
          description: Invocation id.
        attempts:
          type: integer
          format: int32
          description: Attempts.
        error_code:
          type: string
          description: Error code.
        available_at:
          type: string
          format: date-time
          description: Available at as an RFC 3339 timestamp.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
      description: Automation occurrence representation.
    AutomationResultAdapter:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        output_schema_json:
          type: string
          description: Output schema json.
      description: Automation result adapter representation.
    AutomationSchedule:
      type: object
      properties:
        source_id:
          type: string
          description: Source id.
        version_id:
          type: string
          description: Version id.
        version:
          type: integer
          format: int32
          description: Version.
        state_version:
          type: string
          description: State revision used for optimistic concurrency. Preserve its exact decimal representation.
        definition_json:
          type: string
          description: Definition json.
        next_fire_at:
          type: string
          format: date-time
          description: Next fire at as an RFC 3339 timestamp.
        created_by:
          type: string
          description: Created by.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
      description: Automation schedule representation.
    AutomationScheduleTime:
      type: object
      properties:
        utc:
          type: string
          format: date-time
          description: Utc as an RFC 3339 timestamp.
        local:
          type: string
          description: Local.
      description: Automation schedule time representation.
    AutomationSource:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        policy_scope_id:
          type: string
          description: Policy scope id.
        name:
          type: string
          description: Name.
        kind:
          type: string
          description: Kind.
        status:
          enum:
            - AUTOMATION_STATUS_UNSPECIFIED
            - AUTOMATION_STATUS_ACTIVE
            - AUTOMATION_STATUS_PAUSED
            - AUTOMATION_STATUS_ARCHIVED
          type: string
          format: enum
          description: Status.
          x-enum-descriptions:
            AUTOMATION_STATUS_UNSPECIFIED: unspecified
            AUTOMATION_STATUS_ACTIVE: active
            AUTOMATION_STATUS_PAUSED: paused
            AUTOMATION_STATUS_ARCHIVED: archived
        state_version:
          type: string
          description: State revision used for optimistic concurrency. Preserve its exact decimal representation.
        max_backlog:
          type: integer
          format: int32
          description: Max backlog.
        retention_hours:
          type: integer
          format: int32
          description: Retention hours.
        created_by:
          type: string
          description: Created by.
        event_source_uri:
          type: string
          description: Event source uri.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
        schedule_version:
          type: integer
          format: int32
          description: Schedule version.
        next_fire_at:
          type: string
          format: date-time
          description: Next fire at as an RFC 3339 timestamp.
        schedule_error_code:
          type: string
          description: Schedule error code.
        webhook_version:
          type: integer
          format: int32
          description: Webhook version.
        channel_status:
          type: string
          description: Channel connection state is separate from source event admission.
        channel_error_code:
          type: string
          description: Channel error code.
        channel_adapter_id:
          type: string
          description: Channel adapter id.
      description: Automation source representation.
    AutomationWebhook:
      type: object
      properties:
        source_id:
          type: string
          description: Source id.
        version_id:
          type: string
          description: Version id.
        version:
          type: integer
          format: int32
          description: Version.
        state_version:
          type: string
          description: State revision used for optimistic concurrency. Preserve its exact decimal representation.
        signing_secret_ref:
          type: string
          description: Signing secret ref.
        github_repository_id:
          type: string
          description: Github repository id.
        requests_per_minute:
          type: integer
          format: int32
          description: Requests per minute.
        ingress_path:
          type: string
          description: Ingress path.
        created_by:
          type: string
          description: Created by.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        adapter_id:
          type: string
          description: Adapter id.
        adapter_config_json:
          type: string
          description: Adapter config json.
        ingress_url:
          type: string
          description: Absolute public callback URL. May differ from the Console origin.
      description: Automation webhook representation.
    BindWorkspaceRepositoryRequest:
      type: object
      properties:
        workspace_id:
          type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        repository_grant_id:
          type: string
          description: Repository grant id.
        key:
          type: string
          description: Key.
        mount_path:
          type: string
          description: Mount path.
        ref:
          type: string
          description: Ref.
        primary:
          type: boolean
          description: Primary.
        access_mode:
          enum:
            - REPOSITORY_ACCESS_MODE_UNSPECIFIED
            - REPOSITORY_ACCESS_MODE_READ
            - REPOSITORY_ACCESS_MODE_WRITE
            - REPOSITORY_ACCESS_MODE_PUBLISH
          type: string
          format: enum
          description: Access mode.
          x-enum-descriptions:
            REPOSITORY_ACCESS_MODE_UNSPECIFIED: unspecified
            REPOSITORY_ACCESS_MODE_READ: read
            REPOSITORY_ACCESS_MODE_WRITE: write
            REPOSITORY_ACCESS_MODE_PUBLISH: publish
      description: Bind workspace repository request.
    ChannelAccess:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        actor_id:
          type: string
          description: Actor id.
        chat_id:
          type: string
          description: Chat id.
        actor_label:
          type: string
          description: Actor label.
        chat_label:
          type: string
          description: Chat label.
        private_chat:
          type: boolean
          description: Private chat.
        status:
          type: string
          description: Status.
        pairing_code:
          type: string
          description: Pairing code.
        expires_at:
          type: string
          format: date-time
          description: Expires at as an RFC 3339 timestamp.
        state_version:
          type: string
          description: State revision used for optimistic concurrency. Preserve its exact decimal representation.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        notification_status:
          type: string
          description: Notification status.
        notification_error:
          type: string
          description: Notification error.
        conversation_generation:
          type: string
          description: Conversation generation.
      description: |-
        Administrators manage access independently of immutable connection versions.
         Expired pending requests are shown as expired; approved grants have no code TTL.
    CreateAutomationSourceRequest:
      type: object
      properties:
        policy_scope_id:
          type: string
          description: Policy scope id.
        name:
          type: string
          description: Name.
        max_backlog:
          type: integer
          format: int32
          description: Max backlog.
        retention_hours:
          type: integer
          format: int32
          description: Retention hours.
        kind:
          type: string
          description: api (default), schedule, webhook (Standard Webhooks), github. Non-API Sources start paused.
        channel_adapter_id:
          type: string
          description: Channel adapter id.
      description: Create automation source request.
    CreateEdgeResourceHandleRequest:
      type: object
      properties:
        policy_scope_id:
          type: string
          description: Policy scope id.
        host_id:
          type: string
          description: Host id.
        opaque_resource_key:
          type: string
          description: Opaque resource key.
        digest_sha256:
          type: string
          description: Digest sha256.
        content_type:
          type: string
          description: Content type.
        size_bytes:
          type: string
          description: Size bytes.
        allowed_operations:
          type: array
          items:
            type: string
          description: Allowed operations list.
        expires_at:
          type: string
          format: date-time
          description: Expires at as an RFC 3339 timestamp.
      description: Create edge resource handle request.
    CreateIntegrationClientRequest:
      type: object
      properties:
        name:
          type: string
          description: Name.
        description:
          type: string
          description: Description.
        client_type:
          enum:
            - INTEGRATION_CLIENT_TYPE_UNSPECIFIED
            - INTEGRATION_CLIENT_TYPE_PUBLIC
            - INTEGRATION_CLIENT_TYPE_CONFIDENTIAL
            - INTEGRATION_CLIENT_TYPE_MACHINE
          type: string
          format: enum
          description: Client type.
          x-enum-descriptions:
            INTEGRATION_CLIENT_TYPE_UNSPECIFIED: unspecified
            INTEGRATION_CLIENT_TYPE_PUBLIC: public
            INTEGRATION_CLIENT_TYPE_CONFIDENTIAL: confidential
            INTEGRATION_CLIENT_TYPE_MACHINE: machine
        grant_types:
          type: array
          items:
            enum:
              - OAUTH_GRANT_TYPE_UNSPECIFIED
              - OAUTH_GRANT_TYPE_AUTHORIZATION_CODE
              - OAUTH_GRANT_TYPE_CLIENT_CREDENTIALS
              - OAUTH_GRANT_TYPE_REFRESH_TOKEN
            type: string
            format: enum
            description: Grant types.
            x-enum-descriptions:
              OAUTH_GRANT_TYPE_UNSPECIFIED: unspecified
              OAUTH_GRANT_TYPE_AUTHORIZATION_CODE: authorization code
              OAUTH_GRANT_TYPE_CLIENT_CREDENTIALS: client credentials
              OAUTH_GRANT_TYPE_REFRESH_TOKEN: refresh token
          description: Grant types list.
        redirect_uris:
          type: array
          items:
            type: string
          description: Redirect uris list.
        allowed_origins:
          type: array
          items:
            type: string
          description: Allowed origins list.
        scopes:
          type: array
          items:
            type: string
          description: Scopes list.
        token_endpoint_auth_method:
          enum:
            - TOKEN_ENDPOINT_AUTH_METHOD_UNSPECIFIED
            - TOKEN_ENDPOINT_AUTH_METHOD_NONE
            - TOKEN_ENDPOINT_AUTH_METHOD_CLIENT_SECRET_BASIC
            - TOKEN_ENDPOINT_AUTH_METHOD_PRIVATE_KEY_JWT
          type: string
          format: enum
          description: Token endpoint auth method.
          x-enum-descriptions:
            TOKEN_ENDPOINT_AUTH_METHOD_UNSPECIFIED: unspecified
            TOKEN_ENDPOINT_AUTH_METHOD_NONE: none
            TOKEN_ENDPOINT_AUTH_METHOD_CLIENT_SECRET_BASIC: client secret basic
            TOKEN_ENDPOINT_AUTH_METHOD_PRIVATE_KEY_JWT: private key jwt
        service_identity_id:
          type: string
          description: Service identity id.
        client_secret_ttl:
          pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$
          type: string
          description: Client secret ttl.
        jwks:
          $ref: "#/components/schemas/OAuthClientJWKSet"
          description: JSON Web Key Set.
        network_policy:
          $ref: "#/components/schemas/IPAccessPolicy"
          description: Network policy.
        quota_policy:
          $ref: "#/components/schemas/ApplicationQuotaPolicy"
          description: Quota policy.
      description: Create integration client request.
    CreateIntegrationClientResponse:
      type: object
      properties:
        client:
          $ref: "#/components/schemas/IntegrationClient"
          description: Client.
        credential:
          $ref: "#/components/schemas/IntegrationClientCredential"
          description: Credential.
        client_secret:
          type: string
          description: Client secret.
      description: Create integration client response.
    CreateSourceControlConnectionRequest:
      type: object
      properties:
        name:
          type: string
          description: Name.
        provider:
          enum:
            - SOURCE_CONTROL_PROVIDER_UNSPECIFIED
            - SOURCE_CONTROL_PROVIDER_GENERIC_GIT
            - SOURCE_CONTROL_PROVIDER_GITHUB
            - SOURCE_CONTROL_PROVIDER_GITLAB
            - SOURCE_CONTROL_PROVIDER_BITBUCKET
          type: string
          format: enum
          description: Provider.
          x-enum-descriptions:
            SOURCE_CONTROL_PROVIDER_UNSPECIFIED: unspecified
            SOURCE_CONTROL_PROVIDER_GENERIC_GIT: generic git
            SOURCE_CONTROL_PROVIDER_GITHUB: GitHub
            SOURCE_CONTROL_PROVIDER_GITLAB: gitlab
            SOURCE_CONTROL_PROVIDER_BITBUCKET: bitbucket
        auth_mode:
          enum:
            - SOURCE_CONTROL_AUTH_MODE_UNSPECIFIED
            - SOURCE_CONTROL_AUTH_MODE_ANONYMOUS
            - SOURCE_CONTROL_AUTH_MODE_APP
            - SOURCE_CONTROL_AUTH_MODE_OAUTH
            - SOURCE_CONTROL_AUTH_MODE_TOKEN
            - SOURCE_CONTROL_AUTH_MODE_SSH_DEPLOY_KEY
          type: string
          format: enum
          description: Auth mode.
          x-enum-descriptions:
            SOURCE_CONTROL_AUTH_MODE_UNSPECIFIED: unspecified
            SOURCE_CONTROL_AUTH_MODE_ANONYMOUS: anonymous
            SOURCE_CONTROL_AUTH_MODE_APP: app
            SOURCE_CONTROL_AUTH_MODE_OAUTH: OAuth
            SOURCE_CONTROL_AUTH_MODE_TOKEN: token
            SOURCE_CONTROL_AUTH_MODE_SSH_DEPLOY_KEY: ssh deploy key
        config:
          type: object
          additionalProperties:
            type: string
          description: Config map.
        credential_binding_reference:
          type: string
          description: |-
            A Secret Broker reference selected by an administrator. The reference is
             accepted on write but never returned by SourceControlConnection.
        provider_api_credential_binding_reference:
          type: string
          description: |-
            Optional provider API token reference. Token-based Git connections reuse
             credential_binding_reference when this is empty. SSH connections need an
             independent value before provider API operations are available.
      description: Create source control connection request.
    CreateSourceRepositoryGrantRequest:
      type: object
      properties:
        repository_id:
          type: string
          description: Repository id.
        policy_scope_id:
          type: string
          description: Policy scope id.
        access_mode:
          enum:
            - REPOSITORY_ACCESS_MODE_UNSPECIFIED
            - REPOSITORY_ACCESS_MODE_READ
            - REPOSITORY_ACCESS_MODE_WRITE
            - REPOSITORY_ACCESS_MODE_PUBLISH
          type: string
          format: enum
          description: Access mode.
          x-enum-descriptions:
            REPOSITORY_ACCESS_MODE_UNSPECIFIED: unspecified
            REPOSITORY_ACCESS_MODE_READ: read
            REPOSITORY_ACCESS_MODE_WRITE: write
            REPOSITORY_ACCESS_MODE_PUBLISH: publish
        allowed_ref_patterns:
          type: array
          items:
            type: string
          description: Allowed ref patterns list.
        denied_ref_patterns:
          type: array
          items:
            type: string
          description: Denied ref patterns list.
        allow_submodules:
          type: boolean
          description: Allow submodules.
        allow_lfs:
          type: boolean
          description: Allow lfs.
        publication_policy_ref:
          type: string
          description: Publication policy ref.
      description: Create source repository grant request.
    CreateSourceRepositoryRequest:
      type: object
      properties:
        connection_id:
          type: string
          description: Connection id.
        name:
          type: string
          description: Name.
        remote_url:
          type: string
          description: Remote url.
        default_ref:
          type: string
          description: Default ref.
      description: Create source repository request.
    CreateWebhookSubscriptionRequest:
      type: object
      properties:
        policy_scope_id:
          type: string
          description: Policy scope id.
        name:
          type: string
          description: Name.
        endpoint_url:
          type: string
          description: Endpoint url.
        event_types:
          type: array
          items:
            type: string
          description: Event types list.
        secret_ref:
          type: string
          description: Opaque Secret reference. This is a reference, not the credential plaintext.
        deployment_id:
          type: string
          description: Agent service deployment identifier; this refers to an application service configuration.
        goal_id:
          type: string
          description: Goal id.
        tenant_wide:
          type: boolean
          description: Tenant wide.
        workspace_id:
          type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        resource_type:
          type: string
          description: Resource type.
        resource_id:
          type: string
          description: Resource id.
      description: Create Webhook subscription request.
    DisableIntegrationClientRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        expected_state_version:
          type: string
          description: Expected state revision for optimistic concurrency. Copy the current revision exactly; do not round it through a JavaScript Number.
      description: Disable integration client request.
    DisconnectAutomationChannelRequest:
      type: object
      properties:
        source_id:
          type: string
          description: Source id.
        expected_state_version:
          type: string
          description: Expected state revision for optimistic concurrency. Copy the current revision exactly; do not round it through a JavaScript Number.
      description: Disconnect automation channel request.
    EdgeResourceHandle:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        policy_scope_id:
          type: string
          description: Policy scope id.
        host_id:
          type: string
          description: Host id.
        digest_sha256:
          type: string
          description: Digest sha256.
        content_type:
          type: string
          description: Content type.
        size_bytes:
          type: string
          description: Size bytes.
        allowed_operations:
          type: array
          items:
            type: string
          description: Allowed operations list.
        expires_at:
          type: string
          format: date-time
          description: Expires at as an RFC 3339 timestamp.
        status:
          enum:
            - EDGE_RESOURCE_HANDLE_STATUS_UNSPECIFIED
            - EDGE_RESOURCE_HANDLE_STATUS_ACTIVE
            - EDGE_RESOURCE_HANDLE_STATUS_REVOKED
            - EDGE_RESOURCE_HANDLE_STATUS_EXPIRED
          type: string
          format: enum
          description: Status.
          x-enum-descriptions:
            EDGE_RESOURCE_HANDLE_STATUS_UNSPECIFIED: unspecified
            EDGE_RESOURCE_HANDLE_STATUS_ACTIVE: active
            EDGE_RESOURCE_HANDLE_STATUS_REVOKED: revoked
            EDGE_RESOURCE_HANDLE_STATUS_EXPIRED: expired
        created_by:
          type: string
          description: Created by.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
      description: Edge resource handle representation.
    EndWebhookKeyOverlapRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        expected_state_version:
          type: string
          description: Expected state revision for optimistic concurrency. Copy the current revision exactly; do not round it through a JavaScript Number.
      description: End Webhook key overlap request.
    IPAccessPolicy:
      type: object
      properties:
        allowed_ip_ranges:
          type: array
          items:
            type: string
          description: Allowed ip ranges list.
      description: Optional source restriction for machine clients; empty is unrestricted.
    InspectAutomationChannelRequest:
      type: object
      properties:
        source_id:
          type: string
          description: Source id.
        adapter_id:
          type: string
          description: Adapter id.
        credential_ref:
          type: string
          description: Credential ref.
        discover_chats:
          type: boolean
          description: |-
            Reads recent sender/chat metadata only while no webhook is installed.
             It neither confirms update offsets nor starts polling or Agent execution.
        callback_url:
          type: string
          description: Callback url.
        retrieve_verification:
          type: boolean
          description: Administrator-only bootstrap inspection. Does not return stored Secrets.
      description: Inspect automation channel request.
    InspectAutomationChannelResponse:
      type: object
      properties:
        account_id:
          type: string
          description: Account id.
        username:
          type: string
          description: Username.
        display_name:
          type: string
          description: Display name.
        webhook_present:
          type: boolean
          description: Webhook present.
        callback_matches:
          type: boolean
          description: Callback matches.
        candidates:
          type: array
          items:
            $ref: "#/components/schemas/AutomationChannelCandidate"
          description: Candidates list.
        verification_challenge:
          $ref: "#/components/schemas/AutomationChannelVerificationChallenge"
          description: Verification challenge.
      description: Inspect automation channel response.
    IntegrationClient:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        service_identity_id:
          type: string
          description: Service identity id.
        client_id:
          type: string
          description: Client id.
        name:
          type: string
          description: Name.
        description:
          type: string
          description: Description.
        client_type:
          enum:
            - INTEGRATION_CLIENT_TYPE_UNSPECIFIED
            - INTEGRATION_CLIENT_TYPE_PUBLIC
            - INTEGRATION_CLIENT_TYPE_CONFIDENTIAL
            - INTEGRATION_CLIENT_TYPE_MACHINE
          type: string
          format: enum
          description: Client type.
          x-enum-descriptions:
            INTEGRATION_CLIENT_TYPE_UNSPECIFIED: unspecified
            INTEGRATION_CLIENT_TYPE_PUBLIC: public
            INTEGRATION_CLIENT_TYPE_CONFIDENTIAL: confidential
            INTEGRATION_CLIENT_TYPE_MACHINE: machine
        grant_types:
          type: array
          items:
            enum:
              - OAUTH_GRANT_TYPE_UNSPECIFIED
              - OAUTH_GRANT_TYPE_AUTHORIZATION_CODE
              - OAUTH_GRANT_TYPE_CLIENT_CREDENTIALS
              - OAUTH_GRANT_TYPE_REFRESH_TOKEN
            type: string
            format: enum
            description: Grant types.
            x-enum-descriptions:
              OAUTH_GRANT_TYPE_UNSPECIFIED: unspecified
              OAUTH_GRANT_TYPE_AUTHORIZATION_CODE: authorization code
              OAUTH_GRANT_TYPE_CLIENT_CREDENTIALS: client credentials
              OAUTH_GRANT_TYPE_REFRESH_TOKEN: refresh token
          description: Grant types list.
        redirect_uris:
          type: array
          items:
            type: string
          description: Redirect uris list.
        allowed_origins:
          type: array
          items:
            type: string
          description: Allowed origins list.
        scopes:
          type: array
          items:
            type: string
          description: Scopes list.
        token_endpoint_auth_method:
          x-extensible-enum:
            - TOKEN_ENDPOINT_AUTH_METHOD_UNSPECIFIED
            - TOKEN_ENDPOINT_AUTH_METHOD_NONE
            - TOKEN_ENDPOINT_AUTH_METHOD_CLIENT_SECRET_BASIC
            - TOKEN_ENDPOINT_AUTH_METHOD_PRIVATE_KEY_JWT
          type: string
          format: enum
          description: Token endpoint auth method.
        status:
          enum:
            - INTEGRATION_CLIENT_STATUS_UNSPECIFIED
            - INTEGRATION_CLIENT_STATUS_ACTIVE
            - INTEGRATION_CLIENT_STATUS_DISABLED
          type: string
          format: enum
          description: Status.
          x-enum-descriptions:
            INTEGRATION_CLIENT_STATUS_UNSPECIFIED: unspecified
            INTEGRATION_CLIENT_STATUS_ACTIVE: active
            INTEGRATION_CLIENT_STATUS_DISABLED: disabled
        state_version:
          type: string
          description: State revision used for optimistic concurrency. Preserve its exact decimal representation.
        created_by:
          type: string
          description: Created by.
        disabled_by:
          type: string
          description: Disabled by.
        disabled_at:
          type: string
          format: date-time
          description: Disabled at as an RFC 3339 timestamp.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
        jwks:
          $ref: "#/components/schemas/OAuthClientJWKSet"
          description: JSON Web Key Set.
        network_policy:
          $ref: "#/components/schemas/IPAccessPolicy"
          description: Network policy.
        quota_policy:
          $ref: "#/components/schemas/ApplicationQuotaPolicy"
          description: Quota policy.
      description: Integration client representation.
    IntegrationClientCredential:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        integration_client_id:
          type: string
          description: Integration client id.
        secret_hint:
          type: string
          description: Secret hint.
        expires_at:
          type: string
          format: date-time
          description: Expires at as an RFC 3339 timestamp.
        last_used_at:
          type: string
          format: date-time
          description: Last used at as an RFC 3339 timestamp.
        revoked_at:
          type: string
          format: date-time
          description: Revoked at as an RFC 3339 timestamp.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
      description: Integration client credential representation.
    IntegrationClientQuotaStatus:
      type: object
      properties:
        model_spending:
          $ref: "#/components/schemas/ModelChargeSpending"
          description: Model spending.
        integration_client_id:
          type: string
          description: Integration client id.
        policy:
          $ref: "#/components/schemas/ApplicationQuotaPolicy"
          description: Policy.
        period_start:
          type: string
          format: date-time
          description: Period start as an RFC 3339 timestamp.
        period_end:
          type: string
          format: date-time
          description: Period end as an RFC 3339 timestamp.
        admitted_runs:
          type: string
          description: Admitted runs.
        active_runs:
          type: string
          description: Active runs.
        used:
          $ref: "#/components/schemas/UsageQuotaAmounts"
          description: Used.
        reserved:
          $ref: "#/components/schemas/UsageQuotaAmounts"
          description: Reserved.
        exhausted_dimensions:
          type: array
          items:
            type: string
          description: Exhausted dimensions list.
      description: Integration client quota status representation.
    ListAutomationAdaptersResponse:
      type: object
      properties:
        ingress_adapters:
          type: array
          items:
            $ref: "#/components/schemas/AutomationAdapter"
          description: Ingress adapters list.
        target_adapters:
          type: array
          items:
            type: string
          description: Target adapters list.
        repository_adapters:
          type: array
          items:
            type: string
          description: Repository adapters list.
        result_adapters:
          type: array
          items:
            $ref: "#/components/schemas/AutomationResultAdapter"
          description: Result adapters list.
      description: List automation adapters response.
    ListAutomationEventsResponse:
      type: object
      properties:
        events:
          type: array
          items:
            $ref: "#/components/schemas/AutomationEventReceipt"
          description: Events list.
        next_page_token:
          type: string
          description: Pagination token for the next page. An empty value indicates there is no next page.
      description: List automation events response.
    ListAutomationOccurrencesResponse:
      type: object
      properties:
        occurrences:
          type: array
          items:
            $ref: "#/components/schemas/AutomationOccurrence"
          description: Occurrences list.
        next_page_token:
          type: string
          description: Pagination token for the next page. An empty value indicates there is no next page.
      description: List automation occurrences response.
    ListAutomationSourcesResponse:
      type: object
      properties:
        sources:
          type: array
          items:
            $ref: "#/components/schemas/AutomationSource"
          description: Sources list.
        next_page_token:
          type: string
          description: Pagination token for the next page. An empty value indicates there is no next page.
      description: List automation sources response.
    ListAutomationsResponse:
      type: object
      properties:
        automations:
          type: array
          items:
            $ref: "#/components/schemas/Automation"
          description: Automations list.
        next_page_token:
          type: string
          description: Pagination token for the next page. An empty value indicates there is no next page.
      description: List automations response.
    ListChannelAccessResponse:
      type: object
      properties:
        access:
          type: array
          items:
            $ref: "#/components/schemas/ChannelAccess"
          description: Access list.
        next_page_token:
          type: string
          description: Pagination token for the next page. An empty value indicates there is no next page.
      description: List channel access response.
    ListEdgeResourceHandlesResponse:
      type: object
      properties:
        handles:
          type: array
          items:
            $ref: "#/components/schemas/EdgeResourceHandle"
          description: Handles list.
      description: List edge resource handles response.
    ListIntegrationClientCredentialsResponse:
      type: object
      properties:
        credentials:
          type: array
          items:
            $ref: "#/components/schemas/IntegrationClientCredential"
          description: Credentials list.
      description: List integration client credentials response.
    ListIntegrationClientsResponse:
      type: object
      properties:
        clients:
          type: array
          items:
            $ref: "#/components/schemas/IntegrationClient"
          description: Clients list.
      description: List integration clients response.
    ListOAuthConsentGrantsResponse:
      type: object
      properties:
        grants:
          type: array
          items:
            $ref: "#/components/schemas/OAuthConsentGrant"
          description: Grants list.
      description: List OAuth consent grants response.
    ListRepositoryPublicationsResponse:
      type: object
      properties:
        publications:
          type: array
          items:
            $ref: "#/components/schemas/RepositoryPublication"
          description: Publications list.
        next_page_token:
          type: string
          description: Pagination token for the next page. An empty value indicates there is no next page.
      description: List repository publications response.
    ListSourceActionsResponse:
      type: object
      properties:
        actions:
          type: array
          items:
            $ref: "#/components/schemas/SourceActionDescriptor"
          description: Actions list.
      description: List source actions response.
    ListSourceControlConnectionRepositoriesResponse:
      type: object
      properties:
        installation:
          $ref: "#/components/schemas/SourceControlInstallation"
          description: Installation.
        repositories:
          type: array
          items:
            $ref: "#/components/schemas/SourceControlRepositoryCandidate"
          description: Repositories list.
        next_page:
          type: integer
          format: int32
          description: Next page.
      description: List source control connection repositories response.
    ListSourceControlConnectionsResponse:
      type: object
      properties:
        connections:
          type: array
          items:
            $ref: "#/components/schemas/SourceControlConnection"
          description: Connections list.
      description: List source control connections response.
    ListSourceRepositoriesResponse:
      type: object
      properties:
        repositories:
          type: array
          items:
            $ref: "#/components/schemas/SourceRepository"
          description: Repositories list.
      description: List source repositories response.
    ListSourceRepositoryGrantsResponse:
      type: object
      properties:
        grants:
          type: array
          items:
            $ref: "#/components/schemas/SourceRepositoryGrant"
          description: Grants list.
      description: List source repository grants response.
    ListWebhookDeliveriesResponse:
      type: object
      properties:
        deliveries:
          type: array
          items:
            $ref: "#/components/schemas/WebhookDelivery"
          description: Deliveries list.
      description: List Webhook deliveries response.
    ListWebhookEventTypesResponse:
      type: object
      properties:
        event_types:
          type: array
          items:
            $ref: "#/components/schemas/WebhookEventType"
          description: Event types list.
      description: List Webhook event types response.
    ListWebhookResourcesResponse:
      type: object
      properties:
        resources:
          type: array
          items:
            $ref: "#/components/schemas/WebhookResource"
          description: Resources list.
        next_page_token:
          type: string
          description: Pagination token for the next page. An empty value indicates there is no next page.
      description: List Webhook resources response.
    ListWebhookSubscriptionsResponse:
      type: object
      properties:
        subscriptions:
          type: array
          items:
            $ref: "#/components/schemas/WebhookSubscription"
          description: Subscriptions list.
      description: List Webhook subscriptions response.
    ListWorkspaceRepositoriesResponse:
      type: object
      properties:
        bindings:
          type: array
          items:
            $ref: "#/components/schemas/WorkspaceRepositoryBinding"
          description: Bindings list.
      description: List workspace repositories response.
    ModelChargeSpending:
      type: object
      properties:
        currency:
          type: string
          description: Currency.
        period_start:
          type: string
          format: date-time
          description: Period start as an RFC 3339 timestamp.
        period_end:
          type: string
          format: date-time
          description: Period end as an RFC 3339 timestamp.
        limit_microunits:
          type: string
          description: Limit microunits.
        posted_microunits:
          type: string
          description: Posted microunits.
        reserved_microunits:
          type: string
          description: Reserved microunits.
        available_microunits:
          type: string
          description: Available microunits.
        unknown_runs:
          type: string
          description: Unknown runs.
        uncertain_requests:
          type: string
          description: Uncertain requests.
        status:
          type: string
          description: Status.
        next_change_at:
          type: string
          format: date-time
          description: Next change at as an RFC 3339 timestamp.
      description: |-
        Exact money and unsettled exposure shared by tenant/application quotas.
         A nil legacy quota limit means unlimited; an unknown available amount never
         becomes a zero balance. Monetary sums do not have an int64 aggregate ceiling.
    OAuthClientJWK:
      type: object
      properties:
        kid:
          type: string
          description: Kid.
        kty:
          type: string
          description: Kty.
        use:
          type: string
          description: Use.
        alg:
          type: string
          description: Alg.
        n:
          type: string
          description: N.
        e:
          type: string
          description: E.
      description: |-
        OAuthClientJWK is a public signing key registered by a confidential or
         machine client. OrbitSpace currently accepts RSA signing keys with
         alg=RS256. Private key material must never be sent in this message.
    OAuthClientJWKSet:
      type: object
      properties:
        keys:
          type: array
          items:
            $ref: "#/components/schemas/OAuthClientJWK"
          description: Keys list.
      description: Oauth client jwk set representation.
    OAuthConsentGrant:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        integration_client_id:
          type: string
          description: Integration client id.
        identity_id:
          type: string
          description: Identity id.
        audience:
          type: string
          description: Audience.
        scopes:
          type: array
          items:
            type: string
          description: Scopes list.
        status:
          enum:
            - OAUTH_CONSENT_GRANT_STATUS_UNSPECIFIED
            - OAUTH_CONSENT_GRANT_STATUS_ACTIVE
            - OAUTH_CONSENT_GRANT_STATUS_EXPIRED
            - OAUTH_CONSENT_GRANT_STATUS_REVOKED
          type: string
          format: enum
          description: Status.
          x-enum-descriptions:
            OAUTH_CONSENT_GRANT_STATUS_UNSPECIFIED: unspecified
            OAUTH_CONSENT_GRANT_STATUS_ACTIVE: active
            OAUTH_CONSENT_GRANT_STATUS_EXPIRED: expired
            OAUTH_CONSENT_GRANT_STATUS_REVOKED: revoked
        auth_time:
          type: string
          format: date-time
          description: Auth time as an RFC 3339 timestamp.
        expires_at:
          type: string
          format: date-time
          description: Expires at as an RFC 3339 timestamp.
        revoked_at:
          type: string
          format: date-time
          description: Revoked at as an RFC 3339 timestamp.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
      description: |-
        OAuthConsentGrant is an application-safe projection of durable delegated
         access. It never contains authorization codes, access tokens or refresh
         tokens. Revoking it invalidates every token for the same user, client and
         resource audience.
    PreviewAutomationRuleRequest:
      type: object
      properties:
        source_id:
          type: string
          description: Source id.
        rule_json:
          type: string
          description: Rule json.
        event_json:
          type: string
          description: Event json.
        input_mapping_json:
          type: string
          description: Input mapping json.
        deployment_id:
          type: string
          description: Agent service deployment identifier; this refers to an application service configuration.
      description: Preview automation rule request.
    PreviewAutomationRuleResponse:
      type: object
      properties:
        matched:
          type: boolean
          description: Matched.
        reason:
          type: string
          description: Reason.
        condition_index:
          type: integer
          format: int32
          description: Condition index.
        mapped_input_json:
          type: string
          description: Mapped input json.
        target_input_validated:
          type: boolean
          description: Target input validated.
      description: Preview automation rule response.
    PreviewAutomationScheduleRequest:
      type: object
      properties:
        policy_scope_id:
          type: string
          description: Policy scope id.
        definition_json:
          type: string
          description: Definition json.
        after:
          type: string
          format: date-time
          description: After as an RFC 3339 timestamp.
      description: Preview automation schedule request.
    PreviewAutomationScheduleResponse:
      type: object
      properties:
        times:
          type: array
          items:
            $ref: "#/components/schemas/AutomationScheduleTime"
          description: Times list.
        missing_time:
          type: string
          description: Missing time.
        repeated_time:
          type: string
          description: Repeated time.
      description: Preview automation schedule response.
    ProblemDetails:
      type: object
      description: RFC 9457 Problem Details with OrbitSpace correlation extensions.
      required:
        - type
        - title
        - status
        - detail
        - request_id
      properties:
        type:
          type: string
          format: uri
          description: Type.
        title:
          type: string
          description: Title.
        status:
          type: integer
          minimum: 400
          maximum: 599
          description: Status.
        detail:
          type: string
          description: Detail.
        instance:
          type: string
          format: uri-reference
          description: Instance.
        code:
          type: string
          pattern: ^[A-Z][A-Z0-9_]*$
          description: Code.
        request_id:
          type: string
          format: uuid
          description: Request id.
    ProvisionWebhookSubscriptionRequest:
      type: object
      properties:
        policy_scope_id:
          type: string
          description: Policy scope id.
        name:
          type: string
          description: Name.
        endpoint_url:
          type: string
          description: Endpoint url.
        event_types:
          type: array
          items:
            type: string
          description: Event types list.
        secret_ref:
          type: string
          description: Opaque Secret reference. This is a reference, not the credential plaintext.
        deployment_id:
          type: string
          description: Agent service deployment identifier; this refers to an application service configuration.
        goal_id:
          type: string
          description: Goal id.
        tenant_wide:
          type: boolean
          description: Tenant wide.
        workspace_id:
          type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        resource_type:
          type: string
          description: Resource type.
        resource_id:
          type: string
          description: Resource id.
      description: Provision Webhook subscription request.
    PublishAutomationRequest:
      type: object
      properties:
        source_id:
          type: string
          description: Source id.
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        name:
          type: string
          description: Name.
        deployment_id:
          type: string
          description: Agent service deployment identifier; this refers to an application service configuration.
        execution_identity_id:
          type: string
          description: Execution identity id.
        rule_json:
          type: string
          description: JSON encodes typed rule values without double-precision ID truncation.
        max_concurrency:
          type: integer
          format: int32
          description: Max concurrency.
        expected_state_version:
          type: string
          description: Expected state revision for optimistic concurrency. Copy the current revision exactly; do not round it through a JavaScript Number.
        overlap_policy:
          type: string
          description: queue (default) or skip when this rule has reached max_concurrency.
        input_mapping_json:
          type: string
          description: Omitted mapping preserves the legacy event wrapper.
        target_adapter:
          type: string
          description: Omitted means agent-deployment.task.v1. Unsupported adapters are rejected.
        repository_input_json:
          type: string
          description: Optional trusted source-revision adapter and fixed Workspace binding.
        result_delivery_json:
          type: string
          description: Optional result adapter. github.review.v1 requires a PR-only event rule.
      description: Publish automation request.
    PublishAutomationScheduleRequest:
      type: object
      properties:
        source_id:
          type: string
          description: Source id.
        definition_json:
          type: string
          description: Definition json.
        expected_state_version:
          type: string
          description: Expected state revision for optimistic concurrency. Copy the current revision exactly; do not round it through a JavaScript Number.
      description: Publish automation schedule request.
    PublishAutomationWebhookRequest:
      type: object
      properties:
        source_id:
          type: string
          description: Source id.
        expected_state_version:
          type: string
          description: Expected state revision for optimistic concurrency. Copy the current revision exactly; do not round it through a JavaScript Number.
        signing_secret_ref:
          type: string
          description: Signing secret ref.
        github_repository_id:
          type: string
          description: Required for github. Decimal ID, never a floating point JSON number.
        requests_per_minute:
          type: integer
          format: int32
          description: Requests per minute.
        adapter_id:
          type: string
          description: Adapter id.
        adapter_config_json:
          type: string
          description: Adapter config json.
      description: Publish automation Webhook request.
    RefreshWorkspaceRepositoryRequest:
      type: object
      properties:
        workspace_id:
          type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        ref:
          type: string
          description: Ref.
        expected_state_version:
          type: string
          description: Expected state revision for optimistic concurrency. Copy the current revision exactly; do not round it through a JavaScript Number.
      description: Refresh workspace repository request.
    RemoveWorkspaceRepositoryRequest:
      type: object
      properties:
        workspace_id:
          type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
      description: Remove workspace repository request.
    RepositoryPublication:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        policy_scope_id:
          type: string
          description: Policy scope id.
        workspace_id:
          type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        repository_id:
          type: string
          description: Repository id.
        binding_id:
          type: string
          description: Binding id.
        task_id:
          type: string
          description: Identifier of the durable Task; do not substitute an execution Run ID.
        run_id:
          type: string
          description: Identifier of an execution Run associated with a Task.
        tool_call_id:
          type: string
          description: Tool call id.
        runtime_host_id:
          type: string
          description: Runtime host id.
        kind:
          x-extensible-enum:
            - REPOSITORY_PUBLICATION_KIND_UNSPECIFIED
            - REPOSITORY_PUBLICATION_KIND_COMMIT
            - REPOSITORY_PUBLICATION_KIND_PUSH_BRANCH
            - REPOSITORY_PUBLICATION_KIND_CREATE_PULL_REQUEST
            - REPOSITORY_PUBLICATION_KIND_UPDATE_PULL_REQUEST
            - REPOSITORY_PUBLICATION_KIND_MERGE_PULL_REQUEST
            - REPOSITORY_PUBLICATION_KIND_TAG
            - REPOSITORY_PUBLICATION_KIND_CLOSE_PULL_REQUEST
          type: string
          format: enum
          description: Kind.
        status:
          enum:
            - REPOSITORY_PUBLICATION_STATUS_UNSPECIFIED
            - REPOSITORY_PUBLICATION_STATUS_PENDING
            - REPOSITORY_PUBLICATION_STATUS_RUNNING
            - REPOSITORY_PUBLICATION_STATUS_SUCCEEDED
            - REPOSITORY_PUBLICATION_STATUS_FAILED
          type: string
          format: enum
          description: Status.
          x-enum-descriptions:
            REPOSITORY_PUBLICATION_STATUS_UNSPECIFIED: unspecified
            REPOSITORY_PUBLICATION_STATUS_PENDING: pending
            REPOSITORY_PUBLICATION_STATUS_RUNNING: running
            REPOSITORY_PUBLICATION_STATUS_SUCCEEDED: succeeded
            REPOSITORY_PUBLICATION_STATUS_FAILED: failed
        idempotency_key:
          type: string
          description: Idempotency key for this operation. Reuse it only when retrying the same submission with the same payload.
        request_hash:
          type: string
          description: Request hash.
        base_commit:
          type: string
          description: Base commit.
        head_commit:
          type: string
          description: Head commit.
        destination_ref:
          type: string
          description: Destination ref.
        expected_remote_commit:
          type: string
          description: Expected remote commit.
        provider_resource_id:
          type: string
          description: Provider resource id.
        provider_url:
          type: string
          description: Provider url.
        result:
          type: object
          description: Result.
        error_code:
          type: string
          description: Error code.
        error_message:
          type: string
          description: Error message.
        approval_id:
          type: string
          description: Approval id.
        created_by:
          type: string
          description: Created by.
        completed_at:
          type: string
          format: date-time
          description: Completed at as an RFC 3339 timestamp.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
        repository_grant_id:
          type: string
          description: Repository grant id.
        grant_state_version:
          type: string
          description: Grant state version.
        binding_state_version:
          type: string
          description: Binding state version.
        source_ref:
          type: string
          description: Source ref.
        goal_id:
          type: string
          description: Goal id.
        release_id:
          type: string
          description: Release id.
        related_publication_id:
          type: string
          description: Related publication id.
        state_version:
          type: string
          description: State revision used for optimistic concurrency. Preserve its exact decimal representation.
        maintenance_attempts:
          type: integer
          format: int32
          description: Maintenance attempts.
        next_attempt_at:
          type: string
          format: date-time
          description: Next attempt at as an RFC 3339 timestamp.
      description: Repository publication representation.
    ResetChannelConversationRequest:
      type: object
      properties:
        source_id:
          type: string
          description: Source id.
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        expected_state_version:
          type: string
          description: Expected state revision for optimistic concurrency. Copy the current revision exactly; do not round it through a JavaScript Number.
        expected_conversation_generation:
          type: string
          description: Expected conversation generation.
      description: Reset channel conversation request.
    ResolveRepositoryReferenceRequest:
      type: object
      properties:
        repository_id:
          type: string
          description: Repository id.
        ref:
          type: string
          description: Ref.
      description: Resolve repository reference request.
    ResolvedRepositoryReference:
      type: object
      properties:
        repository_id:
          type: string
          description: Repository id.
        requested_ref:
          type: string
          description: Requested ref.
        resolved_ref:
          type: string
          description: Resolved ref.
        commit:
          type: string
          description: Commit.
        resolved_at:
          type: string
          format: date-time
          description: Resolved at as an RFC 3339 timestamp.
      description: Resolved repository reference representation.
    RestoreSourceRepositoryRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
      description: Restore source repository request.
    RetryRepositoryPublicationMaintenanceRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        expected_state_version:
          type: string
          description: Expected state revision for optimistic concurrency. Copy the current revision exactly; do not round it through a JavaScript Number.
      description: Retry repository publication maintenance request.
    RetryWebhookDeliveryRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
      description: Retry Webhook delivery request.
    RevokeEdgeResourceHandleRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
      description: Revoke edge resource handle request.
    RevokeIntegrationClientCredentialRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        credential_id:
          type: string
          description: Credential id.
      description: Revoke integration client credential request.
    RevokeOAuthConsentGrantRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
      description: Revoke OAuth consent grant request.
    RevokeSourceControlConnectionRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
      description: Revoke source control connection request.
    RevokeSourceRepositoryGrantRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        expected_state_version:
          type: string
          description: Expected state revision for optimistic concurrency. Copy the current revision exactly; do not round it through a JavaScript Number.
      description: Revoke source repository grant request.
    RotateIntegrationClientSecretRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        ttl:
          pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$
          type: string
          description: Ttl.
      description: Rotate integration client secret request.
    RotateIntegrationClientSecretResponse:
      type: object
      properties:
        credential:
          $ref: "#/components/schemas/IntegrationClientCredential"
          description: Credential.
        client_secret:
          type: string
          description: Client secret.
      description: Rotate integration client secret response.
    RotateWebhookSigningKeyRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        expected_state_version:
          type: string
          description: Expected state revision for optimistic concurrency. Copy the current revision exactly; do not round it through a JavaScript Number.
      description: Rotate Webhook signing key request.
    SetAutomationSourceStatusRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        status:
          enum:
            - AUTOMATION_STATUS_UNSPECIFIED
            - AUTOMATION_STATUS_ACTIVE
            - AUTOMATION_STATUS_PAUSED
            - AUTOMATION_STATUS_ARCHIVED
          type: string
          format: enum
          description: Status.
          x-enum-descriptions:
            AUTOMATION_STATUS_UNSPECIFIED: unspecified
            AUTOMATION_STATUS_ACTIVE: active
            AUTOMATION_STATUS_PAUSED: paused
            AUTOMATION_STATUS_ARCHIVED: archived
        expected_state_version:
          type: string
          description: Expected state revision for optimistic concurrency. Copy the current revision exactly; do not round it through a JavaScript Number.
      description: Set automation source status request.
    SetAutomationStatusRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        status:
          enum:
            - AUTOMATION_STATUS_UNSPECIFIED
            - AUTOMATION_STATUS_ACTIVE
            - AUTOMATION_STATUS_PAUSED
            - AUTOMATION_STATUS_ARCHIVED
          type: string
          format: enum
          description: Status.
          x-enum-descriptions:
            AUTOMATION_STATUS_UNSPECIFIED: unspecified
            AUTOMATION_STATUS_ACTIVE: active
            AUTOMATION_STATUS_PAUSED: paused
            AUTOMATION_STATUS_ARCHIVED: archived
        expected_state_version:
          type: string
          description: Expected state revision for optimistic concurrency. Copy the current revision exactly; do not round it through a JavaScript Number.
      description: Set automation status request.
    SetChannelAccessRequest:
      type: object
      properties:
        source_id:
          type: string
          description: Source id.
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        expected_state_version:
          type: string
          description: Expected state revision for optimistic concurrency. Copy the current revision exactly; do not round it through a JavaScript Number.
        status:
          type: string
          description: approved, denied or revoked; no role or execution authority is granted.
        actor_id:
          type: string
          description: Omit id to grant/revoke an exact actor/chat pair, including legacy access.
        chat_id:
          type: string
          description: Chat id.
        private_chat:
          type: boolean
          description: Private chat.
      description: Set channel access request.
    SetWebhookSubscriptionStatusRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        expected_state_version:
          type: string
          description: Expected state revision for optimistic concurrency. Copy the current revision exactly; do not round it through a JavaScript Number.
        status:
          enum:
            - WEBHOOK_SUBSCRIPTION_STATUS_UNSPECIFIED
            - WEBHOOK_SUBSCRIPTION_STATUS_ACTIVE
            - WEBHOOK_SUBSCRIPTION_STATUS_DISABLED
          type: string
          format: enum
          description: Status.
          x-enum-descriptions:
            WEBHOOK_SUBSCRIPTION_STATUS_UNSPECIFIED: unspecified
            WEBHOOK_SUBSCRIPTION_STATUS_ACTIVE: active
            WEBHOOK_SUBSCRIPTION_STATUS_DISABLED: disabled
      description: Set Webhook subscription status request.
    SourceActionDescriptor:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        binding:
          type: string
          description: Binding.
        name:
          type: string
          description: Name.
        description:
          type: string
          description: Description.
        mutating:
          type: boolean
          description: Mutating.
        resource:
          type: string
          description: Resource.
        operation:
          type: string
          description: Operation.
        input_schema:
          type: object
          description: Input schema.
        permissions:
          type: object
          additionalProperties:
            type: string
          description: Permissions map.
      description: Source action descriptor representation.
    SourceControlConnection:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        name:
          type: string
          description: Name.
        provider:
          enum:
            - SOURCE_CONTROL_PROVIDER_UNSPECIFIED
            - SOURCE_CONTROL_PROVIDER_GENERIC_GIT
            - SOURCE_CONTROL_PROVIDER_GITHUB
            - SOURCE_CONTROL_PROVIDER_GITLAB
            - SOURCE_CONTROL_PROVIDER_BITBUCKET
          type: string
          format: enum
          description: Provider.
          x-enum-descriptions:
            SOURCE_CONTROL_PROVIDER_UNSPECIFIED: unspecified
            SOURCE_CONTROL_PROVIDER_GENERIC_GIT: generic git
            SOURCE_CONTROL_PROVIDER_GITHUB: GitHub
            SOURCE_CONTROL_PROVIDER_GITLAB: gitlab
            SOURCE_CONTROL_PROVIDER_BITBUCKET: bitbucket
        auth_mode:
          enum:
            - SOURCE_CONTROL_AUTH_MODE_UNSPECIFIED
            - SOURCE_CONTROL_AUTH_MODE_ANONYMOUS
            - SOURCE_CONTROL_AUTH_MODE_APP
            - SOURCE_CONTROL_AUTH_MODE_OAUTH
            - SOURCE_CONTROL_AUTH_MODE_TOKEN
            - SOURCE_CONTROL_AUTH_MODE_SSH_DEPLOY_KEY
          type: string
          format: enum
          description: Auth mode.
          x-enum-descriptions:
            SOURCE_CONTROL_AUTH_MODE_UNSPECIFIED: unspecified
            SOURCE_CONTROL_AUTH_MODE_ANONYMOUS: anonymous
            SOURCE_CONTROL_AUTH_MODE_APP: app
            SOURCE_CONTROL_AUTH_MODE_OAUTH: OAuth
            SOURCE_CONTROL_AUTH_MODE_TOKEN: token
            SOURCE_CONTROL_AUTH_MODE_SSH_DEPLOY_KEY: ssh deploy key
        status:
          enum:
            - SOURCE_CONTROL_CONNECTION_STATUS_UNSPECIFIED
            - SOURCE_CONTROL_CONNECTION_STATUS_ACTIVE
            - SOURCE_CONTROL_CONNECTION_STATUS_DEGRADED
            - SOURCE_CONTROL_CONNECTION_STATUS_REVOKED
          type: string
          format: enum
          description: Status.
          x-enum-descriptions:
            SOURCE_CONTROL_CONNECTION_STATUS_UNSPECIFIED: unspecified
            SOURCE_CONTROL_CONNECTION_STATUS_ACTIVE: active
            SOURCE_CONTROL_CONNECTION_STATUS_DEGRADED: degraded
            SOURCE_CONTROL_CONNECTION_STATUS_REVOKED: revoked
        config:
          type: object
          additionalProperties:
            type: string
          description: Config map.
        last_verified_at:
          type: string
          format: date-time
          description: Last verified at as an RFC 3339 timestamp.
        last_error:
          type: string
          description: Last error.
        created_by:
          type: string
          description: Created by.
        revoked_at:
          type: string
          format: date-time
          description: Revoked at as an RFC 3339 timestamp.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
        credential_configured:
          type: boolean
          description: Credential configured.
        credential_kind:
          type: string
          description: Credential kind.
        credential_expires_at:
          type: string
          format: date-time
          description: Credential expires at as an RFC 3339 timestamp.
        credential_generation:
          type: string
          description: Credential generation.
        provider_api_credential_configured:
          type: boolean
          description: |-
            Provider API credentials are used by the Control Plane for pull requests,
             checks and releases. Git transport credentials remain operation-scoped to
             Runtime workloads and never cross this boundary.
        provider_api_credential_kind:
          type: string
          description: Provider api credential kind.
        provider_api_credential_generation:
          type: string
          description: Provider api credential generation.
        provider_api_credential_reuses_transport:
          type: boolean
          description: Provider api credential reuses transport.
      description: Source control connection representation.
    SourceControlInstallation:
      type: object
      properties:
        app_id:
          type: string
          description: App id.
        installation_id:
          type: string
          description: Installation id.
        account_id:
          type: string
          description: Account id.
        account_login:
          type: string
          description: Account login.
        account_type:
          type: string
          description: Account type.
        repository_selection:
          type: string
          description: Repository selection.
        permissions:
          type: object
          additionalProperties:
            type: string
          description: Permissions map.
      description: Source control installation representation.
    SourceControlRepositoryCandidate:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        full_name:
          type: string
          description: Full name.
        clone_url:
          type: string
          description: Clone url.
        default_branch:
          type: string
          description: Default branch.
        private:
          type: boolean
          description: Private.
      description: Source control repository candidate representation.
    SourceRepository:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        connection_id:
          type: string
          description: Connection id.
        name:
          type: string
          description: Name.
        remote_url:
          type: string
          description: Remote url.
        canonical_url:
          type: string
          description: Canonical url.
        default_ref:
          type: string
          description: Default ref.
        default_commit:
          type: string
          description: Default commit.
        verification_status:
          enum:
            - SOURCE_REPOSITORY_VERIFICATION_STATUS_UNSPECIFIED
            - SOURCE_REPOSITORY_VERIFICATION_STATUS_PENDING
            - SOURCE_REPOSITORY_VERIFICATION_STATUS_VERIFIED
            - SOURCE_REPOSITORY_VERIFICATION_STATUS_FAILED
          type: string
          format: enum
          description: Verification status.
          x-enum-descriptions:
            SOURCE_REPOSITORY_VERIFICATION_STATUS_UNSPECIFIED: unspecified
            SOURCE_REPOSITORY_VERIFICATION_STATUS_PENDING: pending
            SOURCE_REPOSITORY_VERIFICATION_STATUS_VERIFIED: verified
            SOURCE_REPOSITORY_VERIFICATION_STATUS_FAILED: failed
        last_verified_at:
          type: string
          format: date-time
          description: Last verified at as an RFC 3339 timestamp.
        last_error:
          type: string
          description: Last error.
        created_by:
          type: string
          description: Created by.
        archived_at:
          type: string
          format: date-time
          description: Archived at as an RFC 3339 timestamp.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
      description: Source repository representation.
    SourceRepositoryGrant:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        repository_id:
          type: string
          description: Repository id.
        policy_scope_id:
          type: string
          description: Policy scope id.
        access_mode:
          enum:
            - REPOSITORY_ACCESS_MODE_UNSPECIFIED
            - REPOSITORY_ACCESS_MODE_READ
            - REPOSITORY_ACCESS_MODE_WRITE
            - REPOSITORY_ACCESS_MODE_PUBLISH
          type: string
          format: enum
          description: Access mode.
          x-enum-descriptions:
            REPOSITORY_ACCESS_MODE_UNSPECIFIED: unspecified
            REPOSITORY_ACCESS_MODE_READ: read
            REPOSITORY_ACCESS_MODE_WRITE: write
            REPOSITORY_ACCESS_MODE_PUBLISH: publish
        allowed_ref_patterns:
          type: array
          items:
            type: string
          description: Allowed ref patterns list.
        denied_ref_patterns:
          type: array
          items:
            type: string
          description: Denied ref patterns list.
        allow_submodules:
          type: boolean
          description: Allow submodules.
        allow_lfs:
          type: boolean
          description: Allow lfs.
        publication_policy_ref:
          type: string
          description: Publication policy ref.
        state_version:
          type: string
          description: State revision used for optimistic concurrency. Preserve its exact decimal representation.
        status:
          enum:
            - SOURCE_REPOSITORY_GRANT_STATUS_UNSPECIFIED
            - SOURCE_REPOSITORY_GRANT_STATUS_ACTIVE
            - SOURCE_REPOSITORY_GRANT_STATUS_SUSPENDED
            - SOURCE_REPOSITORY_GRANT_STATUS_REVOKED
          type: string
          format: enum
          description: Status.
          x-enum-descriptions:
            SOURCE_REPOSITORY_GRANT_STATUS_UNSPECIFIED: unspecified
            SOURCE_REPOSITORY_GRANT_STATUS_ACTIVE: active
            SOURCE_REPOSITORY_GRANT_STATUS_SUSPENDED: suspended
            SOURCE_REPOSITORY_GRANT_STATUS_REVOKED: revoked
        created_by:
          type: string
          description: Created by.
        revoked_at:
          type: string
          format: date-time
          description: Revoked at as an RFC 3339 timestamp.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
        repository:
          $ref: "#/components/schemas/SourceRepository"
          description: Repository.
      description: Source repository grant representation.
    TestWebhookSubscriptionRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        event_type:
          type: string
          description: Event type.
      description: Test Webhook subscription request.
    UpdateIntegrationClientRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        name:
          type: string
          description: Name.
        description:
          type: string
          description: Description.
        redirect_uris:
          type: array
          items:
            type: string
          description: Redirect uris list.
        allowed_origins:
          type: array
          items:
            type: string
          description: Allowed origins list.
        scopes:
          type: array
          items:
            type: string
          description: Scopes list.
        expected_state_version:
          type: string
          description: Expected state revision for optimistic concurrency. Copy the current revision exactly; do not round it through a JavaScript Number.
        jwks:
          $ref: "#/components/schemas/OAuthClientJWKSet"
          description: JSON Web Key Set.
        network_policy:
          allOf:
            - $ref: "#/components/schemas/IPAccessPolicy"
          description: Omitted preserves the policy; an empty policy removes the restriction.
        quota_policy:
          allOf:
            - $ref: "#/components/schemas/ApplicationQuotaPolicy"
          description: Omitted preserves the policy; an empty policy removes application limits.
      description: Update integration client request.
    UpdateSourceControlProviderCredentialRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        provider_api_credential_binding_reference:
          type: string
          description: Required when clear is false and accepted only on write.
        expected_provider_api_credential_generation:
          type: string
          description: Expected provider api credential generation.
        clear:
          type: boolean
          description: Clear.
      description: Update source control provider credential request.
    UpdateSourceRepositoryGrantRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        access_mode:
          enum:
            - REPOSITORY_ACCESS_MODE_UNSPECIFIED
            - REPOSITORY_ACCESS_MODE_READ
            - REPOSITORY_ACCESS_MODE_WRITE
            - REPOSITORY_ACCESS_MODE_PUBLISH
          type: string
          format: enum
          description: Access mode.
          x-enum-descriptions:
            REPOSITORY_ACCESS_MODE_UNSPECIFIED: unspecified
            REPOSITORY_ACCESS_MODE_READ: read
            REPOSITORY_ACCESS_MODE_WRITE: write
            REPOSITORY_ACCESS_MODE_PUBLISH: publish
        allowed_ref_patterns:
          type: array
          items:
            type: string
          description: Allowed ref patterns list.
        denied_ref_patterns:
          type: array
          items:
            type: string
          description: Denied ref patterns list.
        allow_submodules:
          type: boolean
          description: Allow submodules.
        allow_lfs:
          type: boolean
          description: Allow lfs.
        publication_policy_ref:
          type: string
          description: Publication policy ref.
        expected_state_version:
          type: string
          description: Expected state revision for optimistic concurrency. Copy the current revision exactly; do not round it through a JavaScript Number.
      description: Update source repository grant request.
    UsageQuotaAmounts:
      type: object
      properties:
        total_tokens:
          type: string
          description: Total tokens.
        model_cost_microunits:
          type: string
          description: Model cost microunits.
        compute_ms:
          type: string
          description: Compute ms.
        gpu_ms:
          type: string
          description: Gpu ms.
        storage_byte_seconds:
          type: string
          description: Storage byte seconds.
        artifact_egress_bytes:
          type: string
          description: Artifact egress bytes.
        network_ingress_bytes:
          type: string
          description: Network ingress bytes.
        network_egress_bytes:
          type: string
          description: Network egress bytes.
        relay_bytes:
          type: string
          description: Relay bytes.
      description: Usage quota amounts representation.
    VerifySourceControlProviderAccessRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
      description: Verify source control provider access request.
    VerifySourceRepositoryRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
      description: Verify source repository request.
    WebhookDelivery:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        subscription_id:
          type: string
          description: Subscription id.
        event_id:
          type: string
          description: Event id.
        event_type:
          type: string
          description: Event type.
        subject:
          type: string
          description: Subject.
        status:
          enum:
            - WEBHOOK_DELIVERY_STATUS_UNSPECIFIED
            - WEBHOOK_DELIVERY_STATUS_PENDING
            - WEBHOOK_DELIVERY_STATUS_DELIVERING
            - WEBHOOK_DELIVERY_STATUS_SUCCEEDED
            - WEBHOOK_DELIVERY_STATUS_FAILED
            - WEBHOOK_DELIVERY_STATUS_DEAD
          type: string
          format: enum
          description: Status.
          x-enum-descriptions:
            WEBHOOK_DELIVERY_STATUS_UNSPECIFIED: unspecified
            WEBHOOK_DELIVERY_STATUS_PENDING: pending
            WEBHOOK_DELIVERY_STATUS_DELIVERING: delivering
            WEBHOOK_DELIVERY_STATUS_SUCCEEDED: succeeded
            WEBHOOK_DELIVERY_STATUS_FAILED: failed
            WEBHOOK_DELIVERY_STATUS_DEAD: dead
        attempts:
          type: integer
          format: int32
          description: Attempts.
        response_status:
          type: integer
          format: int32
          description: Response status.
        last_error:
          type: string
          description: Last error.
        available_at:
          type: string
          format: date-time
          description: Available at as an RFC 3339 timestamp.
        delivered_at:
          type: string
          format: date-time
          description: Delivered at as an RFC 3339 timestamp.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
        is_test:
          type: boolean
          description: Is test.
        event_json:
          type: string
          description: Only populated by GetWebhookDelivery, not the summary list.
        attempt_history:
          type: array
          items:
            $ref: "#/components/schemas/WebhookDeliveryAttempt"
          description: Attempt history list.
        delivery_state:
          type: string
          description: Extensible durable state, including outcome_unknown; legacy status stays compatible.
      description: Webhook delivery representation.
    WebhookDeliveryAttempt:
      type: object
      properties:
        number:
          type: integer
          format: int32
          description: Number.
        status:
          type: string
          description: Status.
        response_status:
          type: integer
          format: int32
          description: Response status.
        error_code:
          type: string
          description: Error code.
        started_at:
          type: string
          format: date-time
          description: Started at as an RFC 3339 timestamp.
        finished_at:
          type: string
          format: date-time
          description: Finished at as an RFC 3339 timestamp.
      description: Webhook delivery attempt representation.
    WebhookEventType:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        label:
          type: string
          description: Label.
        description:
          type: string
          description: Description.
        example_json:
          type: string
          description: Example json.
        family:
          type: string
          description: Family.
        required_permission:
          type: string
          description: Required permission.
        resource_types:
          type: array
          items:
            type: string
          description: Resource types list.
        tenant_only:
          type: boolean
          description: Tenant only.
      description: Webhook event type representation.
    WebhookResource:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        resource_type:
          type: string
          description: Resource type.
        label:
          type: string
          description: Label.
        workspace_id:
          type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
      description: Webhook resource representation.
    WebhookSigningCredential:
      type: object
      properties:
        subscription:
          $ref: "#/components/schemas/WebhookSubscription"
          description: Subscription.
        signing_secret:
          type: string
          description: Returned once on provisioning/rotation; never in list, SSE, audit or delivery data.
      description: Webhook signing credential representation.
    WebhookSubscription:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        policy_scope_id:
          type: string
          description: Policy scope id.
        name:
          type: string
          description: Name.
        endpoint_url:
          type: string
          description: Endpoint url.
        event_types:
          type: array
          items:
            type: string
          description: Event types list.
        secret_ref:
          type: string
          description: Opaque Secret reference. This is a reference, not the credential plaintext.
        deployment_id:
          type: string
          description: Agent service deployment identifier; this refers to an application service configuration.
        status:
          enum:
            - WEBHOOK_SUBSCRIPTION_STATUS_UNSPECIFIED
            - WEBHOOK_SUBSCRIPTION_STATUS_ACTIVE
            - WEBHOOK_SUBSCRIPTION_STATUS_DISABLED
          type: string
          format: enum
          description: Status.
          x-enum-descriptions:
            WEBHOOK_SUBSCRIPTION_STATUS_UNSPECIFIED: unspecified
            WEBHOOK_SUBSCRIPTION_STATUS_ACTIVE: active
            WEBHOOK_SUBSCRIPTION_STATUS_DISABLED: disabled
        state_version:
          type: string
          description: State revision used for optimistic concurrency. Preserve its exact decimal representation.
        created_by:
          type: string
          description: Created by.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
        goal_id:
          type: string
          description: Goal id.
        previous_key_valid_until:
          type: string
          format: date-time
          description: Previous key valid until as an RFC 3339 timestamp.
        tenant_wide:
          type: boolean
          description: Tenant wide.
        workspace_id:
          type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        resource_type:
          type: string
          description: Resource type.
        resource_id:
          type: string
          description: Resource id.
      description: Webhook subscription representation.
    WorkspaceRepositoryBinding:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        workspace_id:
          type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        repository_id:
          type: string
          description: Repository id.
        key:
          type: string
          description: Key.
        mount_path:
          type: string
          description: Mount path.
        source_ref:
          type: string
          description: Source ref.
        resolved_commit:
          type: string
          description: Resolved commit.
        primary:
          type: boolean
          description: Primary.
        state_version:
          type: string
          description: State revision used for optimistic concurrency. Preserve its exact decimal representation.
        resolved_at:
          type: string
          format: date-time
          description: Resolved at as an RFC 3339 timestamp.
        created_by:
          type: string
          description: Created by.
        archived_at:
          type: string
          format: date-time
          description: Archived at as an RFC 3339 timestamp.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
        repository:
          $ref: "#/components/schemas/SourceRepository"
          description: Repository.
        repository_grant_id:
          type: string
          description: Repository grant id.
        access_mode:
          enum:
            - REPOSITORY_ACCESS_MODE_UNSPECIFIED
            - REPOSITORY_ACCESS_MODE_READ
            - REPOSITORY_ACCESS_MODE_WRITE
            - REPOSITORY_ACCESS_MODE_PUBLISH
          type: string
          format: enum
          description: Access mode.
          x-enum-descriptions:
            REPOSITORY_ACCESS_MODE_UNSPECIFIED: unspecified
            REPOSITORY_ACCESS_MODE_READ: read
            REPOSITORY_ACCESS_MODE_WRITE: write
            REPOSITORY_ACCESS_MODE_PUBLISH: publish
        grant_state_version:
          type: string
          description: Grant state version.
        repository_grant:
          $ref: "#/components/schemas/SourceRepositoryGrant"
          description: Repository grant.
        resolved_ref:
          type: string
          description: Resolved ref.
      description: Workspace repository binding representation.
tags:
  - name: AutomationService
    x-displayName: Automation and channels
    description: Automation and channels operations.
  - name: EdgeResourceService
    x-displayName: Edge resources
    description: Edge resources operations.
  - name: IntegrationService
    x-displayName: OAuth applications
    description: OAuth applications operations.
  - name: SourceControlService
    x-displayName: Source control
    description: Source control operations.
  - name: WebhookService
    x-displayName: Outbound webhooks
    description: Outbound webhooks operations.
