# 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 事件与集成 API
  version: 1.0.0
  description: 事件与集成的公开 v1 应用接口契约。协议生命周期与能力可用状态见集成指南。
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: 策略权限范围标识符。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListAutomationAdaptersResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 列出自动化适配器
      description: 列出自动化适配器。
  /api/v1/automation-events/{id}:
    get:
      tags:
        - AutomationService
      operationId: AutomationService_GetAutomationEvent
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AutomationEventReceipt"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 读取自动化事件
      description: 读取自动化事件。
  /api/v1/automation-schedules:preview:
    post:
      tags:
        - AutomationService
      operationId: AutomationService_PreviewAutomationSchedule
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/PreviewAutomationScheduleRequest"
        required: true
        description: 预览定时触发配置的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PreviewAutomationScheduleResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 预览定时触发配置
      description: 预览定时触发配置。 请求字段应遵循下方的 Schema。
  /api/v1/automation-sources:
    get:
      tags:
        - AutomationService
      operationId: AutomationService_ListAutomationSources
      parameters:
        - name: policy_scope_id
          in: query
          schema:
            type: string
          description: 策略权限范围标识符。
        - name: include_inactive
          in: query
          schema:
            type: boolean
          description: 包括未启用。
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: 请求的每页条数，受接口上限约束。
        - name: page_token
          in: query
          schema:
            type: string
          description: 上一页返回的不透明分页令牌，请勿自行构造或修改。
        - name: status_filter
          in: query
          description: active（默认）表示活跃项；current 包括活跃及暂停项；history 表示已归档项；all 表示全部。
          schema:
            type: string
        - name: category
          in: query
          description: channels 表示消息渠道，automations 表示不含消息渠道的自动化；空值保留旧版合并列表。
          schema:
            type: string
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListAutomationSourcesResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 列出触发来源
      description: 列出触发来源。 如需继续读取结果，请使用接口声明的分页参数。
    post:
      tags:
        - AutomationService
      operationId: AutomationService_CreateAutomationSource
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateAutomationSourceRequest"
        required: true
        description: 创建触发来源的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AutomationSource"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 创建触发来源
      description: 创建触发来源。 请求字段应遵循下方的 Schema。
  /api/v1/automation-sources/{id}:
    get:
      tags:
        - AutomationService
      operationId: AutomationService_GetAutomationSource
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AutomationSource"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 读取触发来源
      description: 读取触发来源。
  /api/v1/automation-sources/{id}:setStatus:
    post:
      tags:
        - AutomationService
      operationId: AutomationService_SetAutomationSourceStatus
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/SetAutomationSourceStatusRequest"
        required: true
        description: 设置触发来源状态的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AutomationSource"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 设置触发来源状态
      description: 设置触发来源状态。 请求字段应遵循下方的 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: 来源标识符。
        - name: include_inactive
          in: query
          schema:
            type: boolean
          description: 包括未启用。
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: 请求的每页条数，受接口上限约束。
        - name: page_token
          in: query
          schema:
            type: string
          description: 上一页返回的不透明分页令牌，请勿自行构造或修改。
        - name: status_filter
          in: query
          schema:
            type: string
          description: 状态筛选。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListAutomationsResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 列出自动化规则
      description: 列出自动化规则。 如需继续读取结果，请使用接口声明的分页参数。
  /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: 来源标识符。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/PublishAutomationRequest"
        required: true
        description: 发布自动化规则的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Automation"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 发布自动化规则
      description: 发布自动化规则。 请求字段应遵循下方的 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: 来源标识符。
        - name: status_filter
          in: query
          description: current 包括 pending 和 approved；也可选择 history 或 all。
          schema:
            type: string
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: 请求的每页条数，受接口上限约束。
        - name: page_token
          in: query
          schema:
            type: string
          description: 上一页返回的不透明分页令牌，请勿自行构造或修改。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListChannelAccessResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 列出消息渠道访问授权
      description: 列出消息渠道访问授权。 如需继续读取结果，请使用接口声明的分页参数。
  /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: 来源标识符。
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ResetChannelConversationRequest"
        required: true
        description: 重置消息渠道会话的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ChannelAccess"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 重置消息渠道会话
      description: 重置消息渠道会话。 请求字段应遵循下方的 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: 来源标识符。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/SetChannelAccessRequest"
        required: true
        description: 设置消息渠道访问授权的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ChannelAccess"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 设置消息渠道访问授权
      description: 设置消息渠道访问授权。 请求字段应遵循下方的 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: 来源标识符。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DisconnectAutomationChannelRequest"
        required: true
        description: 断开消息渠道的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AutomationSource"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 断开消息渠道
      description: 断开消息渠道。 请求字段应遵循下方的 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: 来源标识符。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/InspectAutomationChannelRequest"
        required: true
        description: 检查消息渠道的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/InspectAutomationChannelResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 检查消息渠道
      description: 检查消息渠道。 请求字段应遵循下方的 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: 来源标识符。
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: 请求的每页条数，受接口上限约束。
        - name: page_token
          in: query
          schema:
            type: string
          description: 上一页返回的不透明分页令牌，请勿自行构造或修改。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListAutomationEventsResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 列出自动化事件
      description: 列出自动化事件。 如需继续读取结果，请使用接口声明的分页参数。
    post:
      tags:
        - AutomationService
      operationId: AutomationService_AcceptAutomationEvent
      parameters:
        - name: source_id
          in: path
          required: true
          schema:
            type: string
          description: 来源标识符。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/AcceptAutomationEventRequest"
        required: true
        description: 接受自动化事件的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AcceptAutomationEventResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 接受自动化事件
      description: 接受自动化事件。 请求字段应遵循下方的 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: 来源标识符。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AutomationSchedule"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 读取定时触发配置
      description: 读取定时触发配置。
  /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: 来源标识符。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/PublishAutomationScheduleRequest"
        required: true
        description: 发布定时触发配置的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AutomationSchedule"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 发布定时触发配置
      description: 发布定时触发配置。 请求字段应遵循下方的 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: 来源标识符。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AutomationWebhook"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 读取自动化 Webhook 配置
      description: 读取自动化 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: 来源标识符。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/PublishAutomationWebhookRequest"
        required: true
        description: 发布自动化 Webhook 配置的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AutomationWebhook"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 发布自动化 Webhook 配置
      description: 发布自动化 Webhook 配置。 请求字段应遵循下方的 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: 来源标识符。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/PreviewAutomationRuleRequest"
        required: true
        description: 预览自动化规则的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PreviewAutomationRuleResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 预览自动化规则
      description: 预览自动化规则。 请求字段应遵循下方的 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: 自动化标识符。
        - name: include_history
          in: query
          schema:
            type: boolean
          description: 包括历史。
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: 请求的每页条数，受接口上限约束。
        - name: page_token
          in: query
          schema:
            type: string
          description: 上一页返回的不透明分页令牌，请勿自行构造或修改。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListAutomationOccurrencesResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 列出自动化触发记录
      description: 列出自动化触发记录。 如需继续读取结果，请使用接口声明的分页参数。
  /api/v1/automations/{id}:
    get:
      tags:
        - AutomationService
      operationId: AutomationService_GetAutomation
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Automation"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 读取自动化规则
      description: 读取自动化规则。
  /api/v1/automations/{id}:setStatus:
    post:
      tags:
        - AutomationService
      operationId: AutomationService_SetAutomationStatus
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/SetAutomationStatusRequest"
        required: true
        description: 设置自动化规则状态的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Automation"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 设置自动化规则状态
      description: 设置自动化规则状态。 请求字段应遵循下方的 Schema。
  /api/v1/edge-resource-handles:
    get:
      tags:
        - EdgeResourceService
      operationId: EdgeResourceService_ListEdgeResourceHandles
      parameters:
        - name: policy_scope_id
          in: query
          schema:
            type: string
          description: 策略权限范围标识符。
        - name: host_id
          in: query
          schema:
            type: string
          description: 宿主标识符。
        - name: include_inactive
          in: query
          schema:
            type: boolean
          description: 包括未启用。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListEdgeResourceHandlesResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 列出边缘资源句柄
      description: 列出边缘资源句柄。
    post:
      tags:
        - EdgeResourceService
      operationId: EdgeResourceService_CreateEdgeResourceHandle
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateEdgeResourceHandleRequest"
        required: true
        description: 创建边缘资源句柄的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/EdgeResourceHandle"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 创建边缘资源句柄
      description: 创建边缘资源句柄。 请求字段应遵循下方的 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: 当前 Schema 或 URL 所指资源的标识。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RevokeEdgeResourceHandleRequest"
        required: true
        description: 撤销边缘资源句柄的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/EdgeResourceHandle"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 撤销边缘资源句柄
      description: 撤销边缘资源句柄。 请求字段应遵循下方的 Schema。
  /api/v1/integration-clients:
    get:
      tags:
        - IntegrationService
      operationId: IntegrationService_ListIntegrationClients
      parameters:
        - name: include_disabled
          in: query
          schema:
            type: boolean
          description: 包括停用。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListIntegrationClientsResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 列出接入应用
      description: 列出接入应用。
    post:
      tags:
        - IntegrationService
      operationId: IntegrationService_CreateIntegrationClient
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateIntegrationClientRequest"
        required: true
        description: 创建接入应用的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateIntegrationClientResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 创建接入应用
      description: 创建接入应用。 请求字段应遵循下方的 Schema。
  /api/v1/integration-clients/{id}:
    get:
      tags:
        - IntegrationService
      operationId: IntegrationService_GetIntegrationClient
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IntegrationClient"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 读取接入应用
      description: 读取接入应用。
    patch:
      tags:
        - IntegrationService
      operationId: IntegrationService_UpdateIntegrationClient
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateIntegrationClientRequest"
        required: true
        description: 更新接入应用的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IntegrationClient"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 更新接入应用
      description: 更新接入应用。 请求字段应遵循下方的 Schema。
  /api/v1/integration-clients/{id}/credentials:
    get:
      tags:
        - IntegrationService
      operationId: IntegrationService_ListIntegrationClientCredentials
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListIntegrationClientCredentialsResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 列出应用客户端凭据
      description: 列出应用客户端凭据。
  /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: 当前 Schema 或 URL 所指资源的标识。
        - name: credential_id
          in: path
          required: true
          schema:
            type: string
          description: 凭据标识符。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RevokeIntegrationClientCredentialRequest"
        required: true
        description: 撤销应用客户端凭据的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IntegrationClientCredential"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 撤销应用客户端凭据
      description: 撤销应用客户端凭据。 请求字段应遵循下方的 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: 当前 Schema 或 URL 所指资源的标识。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RotateIntegrationClientSecretRequest"
        required: true
        description: 轮换应用客户端密钥的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RotateIntegrationClientSecretResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 轮换应用客户端密钥
      description: 轮换应用客户端密钥。 请求字段应遵循下方的 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: 当前 Schema 或 URL 所指资源的标识。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IntegrationClientQuotaStatus"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 读取应用配额状态
      description: 读取应用配额状态。
  /api/v1/integration-clients/{id}:disable:
    post:
      tags:
        - IntegrationService
      operationId: IntegrationService_DisableIntegrationClient
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DisableIntegrationClientRequest"
        required: true
        description: 停用接入应用的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IntegrationClient"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 停用接入应用
      description: 停用接入应用。 请求字段应遵循下方的 Schema。
  /api/v1/oauth-consent-grants:
    get:
      tags:
        - IntegrationService
      operationId: IntegrationService_ListOAuthConsentGrants
      parameters:
        - name: include_inactive
          in: query
          schema:
            type: boolean
          description: 包括未启用。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListOAuthConsentGrantsResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 列出OAuth 委托授权
      description: 列出OAuth 委托授权。
  /api/v1/oauth-consent-grants/{id}:revoke:
    post:
      tags:
        - IntegrationService
      operationId: IntegrationService_RevokeOAuthConsentGrant
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RevokeOAuthConsentGrantRequest"
        required: true
        description: 撤销OAuth 委托授权的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OAuthConsentGrant"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 撤销OAuth 委托授权
      description: 撤销OAuth 委托授权。 请求字段应遵循下方的 Schema。
  /api/v1/repository-publications/{id}:
    get:
      tags:
        - SourceControlService
      operationId: SourceControlService_GetRepositoryPublication
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RepositoryPublication"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 读取仓库发布记录
      description: 读取仓库发布记录。
  /api/v1/repository-publications/{id}:retry-maintenance:
    post:
      tags:
        - SourceControlService
      operationId: SourceControlService_RetryRepositoryPublicationMaintenance
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RetryRepositoryPublicationMaintenanceRequest"
        required: true
        description: 重试仓库发布维护的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RepositoryPublication"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 重试仓库发布维护
      description: 重试仓库发布维护。 请求字段应遵循下方的 Schema。
  /api/v1/source-control/actions:
    get:
      tags:
        - SourceControlService
      operationId: SourceControlService_ListSourceActions
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSourceActionsResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 列出源码操作目录
      description: 列出源码操作目录。
  /api/v1/source-control/connections:
    get:
      tags:
        - SourceControlService
      operationId: SourceControlService_ListSourceControlConnections
      parameters:
        - name: include_revoked
          in: query
          schema:
            type: boolean
          description: 包括撤销。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSourceControlConnectionsResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 列出源码连接
      description: 列出源码连接。
    post:
      tags:
        - SourceControlService
      operationId: SourceControlService_CreateSourceControlConnection
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateSourceControlConnectionRequest"
        required: true
        description: 创建源码连接的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SourceControlConnection"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 创建源码连接
      description: 登记源码连接及其凭据引用。发现仓库、授予仓库访问权、将仓库绑定到工作空间是后续独立步骤。
  /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: 连接标识符。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateSourceRepositoryRequest"
        required: true
        description: 创建源码仓库的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SourceRepository"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 创建源码仓库
      description: 创建源码仓库。 请求字段应遵循下方的 Schema。
  /api/v1/source-control/connections/{id}:
    get:
      tags:
        - SourceControlService
      operationId: SourceControlService_GetSourceControlConnection
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SourceControlConnection"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 读取源码连接
      description: 读取源码连接。
  /api/v1/source-control/connections/{id}/available-repositories:
    get:
      tags:
        - SourceControlService
      description: 发现可访问的仓库，不注册仓库，也不授予 Workspace 访问权限。
      operationId: SourceControlService_ListSourceControlConnectionRepositories
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        - name: page
          in: query
          schema:
            type: integer
            format: int32
          description: 分页。
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: 请求的每页条数，受接口上限约束。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSourceControlConnectionRepositoriesResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 列出源码连接可发现的仓库
  /api/v1/source-control/connections/{id}:revoke:
    post:
      tags:
        - SourceControlService
      operationId: SourceControlService_RevokeSourceControlConnection
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RevokeSourceControlConnectionRequest"
        required: true
        description: 撤销源码连接的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SourceControlConnection"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 撤销源码连接
      description: 撤销源码连接。 请求字段应遵循下方的 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: 当前 Schema 或 URL 所指资源的标识。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateSourceControlProviderCredentialRequest"
        required: true
        description: 更新源码服务商 API 凭据的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SourceControlConnection"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 更新源码服务商 API 凭据
      description: 更新源码服务商 API 凭据。 请求字段应遵循下方的 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: 当前 Schema 或 URL 所指资源的标识。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/VerifySourceControlProviderAccessRequest"
        required: true
        description: 验证源码服务商访问能力的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SourceControlConnection"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 验证源码服务商访问能力
      description: 验证源码服务商访问能力。 请求字段应遵循下方的 Schema。
  /api/v1/source-control/repositories:
    get:
      tags:
        - SourceControlService
      operationId: SourceControlService_ListSourceRepositories
      parameters:
        - name: connection_id
          in: query
          schema:
            type: string
          description: 连接标识符。
        - name: policy_scope_id
          in: query
          schema:
            type: string
          description: 策略权限范围标识符。
        - name: include_archived
          in: query
          schema:
            type: boolean
          description: 包括归档。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSourceRepositoriesResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 列出源码仓库
      description: 列出源码仓库。
  /api/v1/source-control/repositories/{id}:
    get:
      tags:
        - SourceControlService
      operationId: SourceControlService_GetSourceRepository
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SourceRepository"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 读取源码仓库
      description: 读取源码仓库。
  /api/v1/source-control/repositories/{id}:archive:
    post:
      tags:
        - SourceControlService
      operationId: SourceControlService_ArchiveSourceRepository
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ArchiveSourceRepositoryRequest"
        required: true
        description: 归档源码仓库的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SourceRepository"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 归档源码仓库
      description: 归档源码仓库。 请求字段应遵循下方的 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: 当前 Schema 或 URL 所指资源的标识。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RestoreSourceRepositoryRequest"
        required: true
        description: 恢复源码仓库的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SourceRepository"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 恢复源码仓库
      description: 恢复源码仓库。 请求字段应遵循下方的 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: 当前 Schema 或 URL 所指资源的标识。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/VerifySourceRepositoryRequest"
        required: true
        description: 验证源码仓库的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ResolvedRepositoryReference"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 验证源码仓库
      description: 验证源码仓库。 请求字段应遵循下方的 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: 仓库标识符。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateSourceRepositoryGrantRequest"
        required: true
        description: 创建仓库访问授权的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SourceRepositoryGrant"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 创建仓库访问授权
      description: 创建仓库访问授权。 请求字段应遵循下方的 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: 仓库标识符。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ResolveRepositoryReferenceRequest"
        required: true
        description: 解析仓库引用的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ResolvedRepositoryReference"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 解析仓库引用
      description: 解析仓库引用。 请求字段应遵循下方的 Schema。
  /api/v1/source-control/repository-grants:
    get:
      tags:
        - SourceControlService
      operationId: SourceControlService_ListSourceRepositoryGrants
      parameters:
        - name: repository_id
          in: query
          schema:
            type: string
          description: 仓库标识符。
        - name: policy_scope_id
          in: query
          schema:
            type: string
          description: 策略权限范围标识符。
        - name: include_revoked
          in: query
          schema:
            type: boolean
          description: 包括撤销。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSourceRepositoryGrantsResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 列出仓库访问授权
      description: 列出仓库访问授权。
  /api/v1/source-control/repository-grants/{id}:
    get:
      tags:
        - SourceControlService
      operationId: SourceControlService_GetSourceRepositoryGrant
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SourceRepositoryGrant"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 读取仓库访问授权
      description: 读取仓库访问授权。
    post:
      tags:
        - SourceControlService
      operationId: SourceControlService_UpdateSourceRepositoryGrant
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateSourceRepositoryGrantRequest"
        required: true
        description: 更新仓库访问授权的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SourceRepositoryGrant"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 更新仓库访问授权
      description: 更新仓库访问授权。 请求字段应遵循下方的 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: 当前 Schema 或 URL 所指资源的标识。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RevokeSourceRepositoryGrantRequest"
        required: true
        description: 撤销仓库访问授权的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SourceRepositoryGrant"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 撤销仓库访问授权
      description: 撤销仓库访问授权。 请求字段应遵循下方的 Schema。
  /api/v1/webhook-deliveries:
    get:
      tags:
        - WebhookService
      operationId: WebhookService_ListWebhookDeliveries
      parameters:
        - name: subscription_id
          in: query
          schema:
            type: string
          description: 订阅标识符。
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: 请求的每页条数，受接口上限约束。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWebhookDeliveriesResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 列出Webhook 投递记录
      description: 列出Webhook 投递记录。
  /api/v1/webhook-deliveries/{id}:
    get:
      tags:
        - WebhookService
      operationId: WebhookService_GetWebhookDelivery
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebhookDelivery"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 读取Webhook 投递
      description: 读取Webhook 投递。
  /api/v1/webhook-deliveries/{id}:retry:
    post:
      tags:
        - WebhookService
      operationId: WebhookService_RetryWebhookDelivery
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RetryWebhookDeliveryRequest"
        required: true
        description: 重试Webhook 投递的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebhookDelivery"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 重试Webhook 投递
      description: 为已有 Webhook 投递请求再次尝试。接收端仍须验证签名，并使用稳定的事件或投递标识去重。
  /api/v1/webhook-event-types:
    get:
      tags:
        - WebhookService
      operationId: WebhookService_ListWebhookEventTypes
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWebhookEventTypesResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 列出Webhook 事件类型
      description: 列出Webhook 事件类型。
  /api/v1/webhook-resources:
    get:
      tags:
        - WebhookService
      operationId: WebhookService_ListWebhookResources
      parameters:
        - name: policy_scope_id
          in: query
          schema:
            type: string
          description: 策略权限范围标识符。
        - name: resource_type
          in: query
          schema:
            type: string
          description: 资源类型。
        - name: query
          in: query
          schema:
            type: string
          description: 查询。
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: 请求的每页条数，受接口上限约束。
        - name: workspace_id
          in: query
          schema:
            type: string
          description: 工作空间标识。工作空间是持续协作上下文，与按任务使用的工作树不同。
        - name: page_token
          in: query
          schema:
            type: string
          description: 上一页返回的不透明分页令牌，请勿自行构造或修改。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWebhookResourcesResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 列出Webhook 可订阅资源
      description: 列出Webhook 可订阅资源。 如需继续读取结果，请使用接口声明的分页参数。
  /api/v1/webhook-subscriptions:
    get:
      tags:
        - WebhookService
      operationId: WebhookService_ListWebhookSubscriptions
      parameters:
        - name: include_disabled
          in: query
          schema:
            type: boolean
          description: 包括停用。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWebhookSubscriptionsResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 列出Webhook 订阅
      description: 列出Webhook 订阅。
    post:
      tags:
        - WebhookService
      operationId: WebhookService_CreateWebhookSubscription
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWebhookSubscriptionRequest"
        required: true
        description: 创建Webhook 订阅的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebhookSubscription"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 创建Webhook 订阅
      description: 为 HTTPS 接收地址订阅所选的公开事件类型和资源范围。配置签名凭据引用，并在接收端验证签名。投递记录会保存每次尝试的结果。
  /api/v1/webhook-subscriptions/{id}:endKeyOverlap:
    post:
      tags:
        - WebhookService
      operationId: WebhookService_EndWebhookKeyOverlap
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/EndWebhookKeyOverlapRequest"
        required: true
        description: 结束Webhook 签名密钥重叠窗口的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebhookSubscription"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 结束Webhook 签名密钥重叠窗口
      description: 结束Webhook 签名密钥重叠窗口。 请求字段应遵循下方的 Schema。
  /api/v1/webhook-subscriptions/{id}:rotateSigningKey:
    post:
      tags:
        - WebhookService
      operationId: WebhookService_RotateWebhookSigningKey
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RotateWebhookSigningKeyRequest"
        required: true
        description: 轮换Webhook 签名密钥的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebhookSigningCredential"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 轮换Webhook 签名密钥
      description: 轮换Webhook 签名密钥。 请求字段应遵循下方的 Schema。
  /api/v1/webhook-subscriptions/{id}:setStatus:
    post:
      tags:
        - WebhookService
      operationId: WebhookService_SetWebhookSubscriptionStatus
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/SetWebhookSubscriptionStatusRequest"
        required: true
        description: 设置Webhook 订阅状态的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebhookSubscription"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 设置Webhook 订阅状态
      description: 设置Webhook 订阅状态。 请求字段应遵循下方的 Schema。
  /api/v1/webhook-subscriptions/{id}:test:
    post:
      tags:
        - WebhookService
      operationId: WebhookService_TestWebhookSubscription
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/TestWebhookSubscriptionRequest"
        required: true
        description: 测试Webhook 订阅的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebhookDelivery"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 测试Webhook 订阅
      description: 测试Webhook 订阅。 请求字段应遵循下方的 Schema。
  /api/v1/webhook-subscriptions:provision:
    post:
      tags:
        - WebhookService
      operationId: WebhookService_ProvisionWebhookSubscription
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ProvisionWebhookSubscriptionRequest"
        required: true
        description: 开通Webhook 订阅的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebhookSigningCredential"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 开通Webhook 订阅
      description: 开通Webhook 订阅。 请求字段应遵循下方的 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: 工作空间标识。工作空间是持续协作上下文，与按任务使用的工作树不同。
        - name: include_removed
          in: query
          schema:
            type: boolean
          description: 包括已移除。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorkspaceRepositoriesResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 列出工作空间仓库绑定
      description: 列出工作空间仓库绑定。
    post:
      tags:
        - SourceControlService
      operationId: SourceControlService_BindWorkspaceRepository
      parameters:
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
          description: 工作空间标识。工作空间是持续协作上下文，与按任务使用的工作树不同。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/BindWorkspaceRepositoryRequest"
        required: true
        description: 绑定工作空间仓库绑定的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorkspaceRepositoryBinding"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 绑定工作空间仓库绑定
      description: 绑定工作空间仓库绑定。 请求字段应遵循下方的 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: 工作空间标识。工作空间是持续协作上下文，与按任务使用的工作树不同。
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RefreshWorkspaceRepositoryRequest"
        required: true
        description: 刷新工作空间仓库绑定的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorkspaceRepositoryBinding"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 刷新工作空间仓库绑定
      description: 刷新工作空间仓库绑定。 请求字段应遵循下方的 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: 工作空间标识。工作空间是持续协作上下文，与按任务使用的工作树不同。
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RemoveWorkspaceRepositoryRequest"
        required: true
        description: 移除工作空间仓库绑定的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorkspaceRepositoryBinding"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 移除工作空间仓库绑定
      description: 移除工作空间仓库绑定。 请求字段应遵循下方的 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: 工作空间标识。工作空间是持续协作上下文，与按任务使用的工作树不同。
        - name: run_id
          in: query
          schema:
            type: string
          description: 关联任务的一次执行 Run 的标识。
        - 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: 类别。
            x-enum-descriptions:
              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: 关闭拉取请求
          description: 类别。
        - 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: 状态。
            x-enum-descriptions:
              REPOSITORY_PUBLICATION_STATUS_UNSPECIFIED: 未指定
              REPOSITORY_PUBLICATION_STATUS_PENDING: 待处理
              REPOSITORY_PUBLICATION_STATUS_RUNNING: 执行中
              REPOSITORY_PUBLICATION_STATUS_SUCCEEDED: 成功
              REPOSITORY_PUBLICATION_STATUS_FAILED: 失败
          description: 状态。
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: 请求的每页条数，受接口上限约束。
        - name: page_token
          in: query
          schema:
            type: string
          description: 上一页返回的不透明分页令牌，请勿自行构造或修改。
        - name: task_id
          in: query
          schema:
            type: string
          description: 任务标识，不能用一次执行的 Run ID 替代。
        - name: status_group
          in: query
          description: 可选状态分组：current 对应 pending/running，历史分组对应 succeeded/failed。
          schema:
            type: string
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListRepositoryPublicationsResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 列出仓库发布记录
      description: 列出仓库发布记录。 如需继续读取结果，请使用接口声明的分页参数。
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
  schemas:
    AcceptAutomationEventRequest:
      type: object
      properties:
        source_id:
          type: string
          description: 来源标识符。
        event_json:
          type: string
          description: CloudEvents 1.0 JSON 事件信封，data 必须为对象，负载上限为 1 MiB。
      description: 接受自动化事件的请求结构。
    AcceptAutomationEventResponse:
      type: object
      properties:
        receipt:
          $ref: "#/components/schemas/AutomationEventReceipt"
          description: 回执。
        duplicate:
          type: boolean
          description: 重复。
      description: 接受自动化事件的响应结构。
    ApplicationQuotaPolicy:
      type: object
      properties:
        monthly_runs:
          type: string
          description: 每月运行。
        max_active_runs:
          type: integer
          format: int32
          description: 最大活跃运行。
        total_tokens:
          type: string
          description: 总计Token。
        model_cost_microunits:
          type: string
          description: 模型成本微单位。
        compute_ms:
          type: string
          description: 计算毫秒。
        gpu_ms:
          type: string
          description: GPU毫秒。
        currency:
          type: string
          description: 币种。
      description: 按 UTC 自然月计量的额度。零表示继承租户上限，不额外设置应用上限。包括委派和重试的每个 Agent Run 均计入最初发起的应用；缓存 Token 仍属于输入 Token。
    ArchiveSourceRepositoryRequest:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      description: 归档源码仓库的请求结构。
    Automation:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        source_id:
          type: string
          description: 来源标识符。
        policy_scope_id:
          type: string
          description: 策略权限范围标识符。
        name:
          type: string
          description: 名称。
        status:
          enum:
            - AUTOMATION_STATUS_UNSPECIFIED
            - AUTOMATION_STATUS_ACTIVE
            - AUTOMATION_STATUS_PAUSED
            - AUTOMATION_STATUS_ARCHIVED
          type: string
          format: enum
          description: 状态。
          x-enum-descriptions:
            AUTOMATION_STATUS_UNSPECIFIED: 未指定
            AUTOMATION_STATUS_ACTIVE: 已启用
            AUTOMATION_STATUS_PAUSED: 已暂停
            AUTOMATION_STATUS_ARCHIVED: 已归档
        state_version:
          type: string
          description: 用于乐观并发控制的状态版本，须保留精确的十进制表示。
        current_version_id:
          type: string
          description: 当前版本标识符。
        current_version:
          type: integer
          format: int32
          description: 当前版本。
        definition_json:
          type: string
          description: 由服务端固定的不可变定义，包含精确的目标修订。
        input_mapping_json:
          type: string
          description: 输入映射JSON。
        created_by:
          type: string
          description: 创建操作者。
        created_at:
          type: string
          format: date-time
          description: 创建时间，使用 RFC 3339 时间格式。
        updated_at:
          type: string
          format: date-time
          description: 更新时间，使用 RFC 3339 时间格式。
      description: 自动化规则结构。
    AutomationAdapter:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        config_schema_json:
          type: string
          description: 配置SchemaJSON。
      description: 自动化适配器结构。
    AutomationChannelCandidate:
      type: object
      properties:
        actor_id:
          type: string
          description: 操作者标识符。
        actor_label:
          type: string
          description: 操作者标签。
        chat_id:
          type: string
          description: 聊天标识符。
        chat_label:
          type: string
          description: 聊天标签。
        private_chat:
          type: boolean
          description: 私有聊天。
      description: 自动化消息渠道候选结构。
    AutomationChannelVerificationChallenge:
      type: object
      properties:
        kind:
          type: string
          description: 类别。
        value:
          type: string
          description: 值。
        expires_at:
          type: string
          format: date-time
          description: 到期时间，使用 RFC 3339 时间格式。
      description: 自动化消息渠道验证验证质询结构。
    AutomationEventReceipt:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        source_id:
          type: string
          description: 来源标识符。
        source_event_id:
          type: string
          description: 来源事件标识符。
        event_type:
          type: string
          description: 事件类型。
        subject:
          type: string
          description: 主体。
        content_sha256:
          type: string
          description: 内容SHA-256。
        status:
          type: string
          description: 状态。
        match_count:
          type: integer
          format: int32
          description: 匹配数量。
        received_by:
          type: string
          description: 接收操作者。
        created_at:
          type: string
          format: date-time
          description: 创建时间，使用 RFC 3339 时间格式。
        payload_expires_at:
          type: string
          format: date-time
          description: 负载到期时间，使用 RFC 3339 时间格式。
      description: 自动化事件回执结构。
    AutomationOccurrence:
      type: object
      properties:
        result_delivery_json:
          type: string
          description: 公开的交付摘要，省略凭据、授权声明和结果负载。
        execution_json:
          type: string
          description: 公开的执行/资源关联信息，省略输入、凭据和授权声明。
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        automation_id:
          type: string
          description: 自动化标识符。
        automation_version_id:
          type: string
          description: 自动化版本标识符。
        event_id:
          type: string
          description: 事件标识符。
        status:
          type: string
          description: queued/admitted/blocked 描述触发事件的准入结果，不表示任务是否完成。
        invocation_id:
          type: string
          description: 调用标识符。
        attempts:
          type: integer
          format: int32
          description: 尝试。
        error_code:
          type: string
          description: 错误代码。
        available_at:
          type: string
          format: date-time
          description: 可用时间，使用 RFC 3339 时间格式。
        created_at:
          type: string
          format: date-time
          description: 创建时间，使用 RFC 3339 时间格式。
        updated_at:
          type: string
          format: date-time
          description: 更新时间，使用 RFC 3339 时间格式。
      description: 自动化触发记录结构。
    AutomationResultAdapter:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        output_schema_json:
          type: string
          description: 输出SchemaJSON。
      description: 自动化结果适配器结构。
    AutomationSchedule:
      type: object
      properties:
        source_id:
          type: string
          description: 来源标识符。
        version_id:
          type: string
          description: 版本标识符。
        version:
          type: integer
          format: int32
          description: 版本。
        state_version:
          type: string
          description: 用于乐观并发控制的状态版本，须保留精确的十进制表示。
        definition_json:
          type: string
          description: 定义JSON。
        next_fire_at:
          type: string
          format: date-time
          description: 下一触发时间，使用 RFC 3339 时间格式。
        created_by:
          type: string
          description: 创建操作者。
        created_at:
          type: string
          format: date-time
          description: 创建时间，使用 RFC 3339 时间格式。
      description: 定时触发配置结构。
    AutomationScheduleTime:
      type: object
      properties:
        utc:
          type: string
          format: date-time
          description: UTC，使用 RFC 3339 时间格式。
        local:
          type: string
          description: 本地。
      description: 自动化定时计划时间结构。
    AutomationSource:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        policy_scope_id:
          type: string
          description: 策略权限范围标识符。
        name:
          type: string
          description: 名称。
        kind:
          type: string
          description: 类别。
        status:
          enum:
            - AUTOMATION_STATUS_UNSPECIFIED
            - AUTOMATION_STATUS_ACTIVE
            - AUTOMATION_STATUS_PAUSED
            - AUTOMATION_STATUS_ARCHIVED
          type: string
          format: enum
          description: 状态。
          x-enum-descriptions:
            AUTOMATION_STATUS_UNSPECIFIED: 未指定
            AUTOMATION_STATUS_ACTIVE: 已启用
            AUTOMATION_STATUS_PAUSED: 已暂停
            AUTOMATION_STATUS_ARCHIVED: 已归档
        state_version:
          type: string
          description: 用于乐观并发控制的状态版本，须保留精确的十进制表示。
        max_backlog:
          type: integer
          format: int32
          description: 最大积压。
        retention_hours:
          type: integer
          format: int32
          description: 保留小时。
        created_by:
          type: string
          description: 创建操作者。
        event_source_uri:
          type: string
          description: 事件来源URI。
        created_at:
          type: string
          format: date-time
          description: 创建时间，使用 RFC 3339 时间格式。
        updated_at:
          type: string
          format: date-time
          description: 更新时间，使用 RFC 3339 时间格式。
        schedule_version:
          type: integer
          format: int32
          description: 定时计划版本。
        next_fire_at:
          type: string
          format: date-time
          description: 下一触发时间，使用 RFC 3339 时间格式。
        schedule_error_code:
          type: string
          description: 定时计划错误代码。
        webhook_version:
          type: integer
          format: int32
          description: Webhook版本。
        channel_status:
          type: string
          description: 消息渠道的连接状态与触发来源的事件准入状态分别管理。
        channel_error_code:
          type: string
          description: 消息渠道错误代码。
        channel_adapter_id:
          type: string
          description: 消息渠道适配器标识符。
      description: 触发来源结构。
    AutomationWebhook:
      type: object
      properties:
        source_id:
          type: string
          description: 来源标识符。
        version_id:
          type: string
          description: 版本标识符。
        version:
          type: integer
          format: int32
          description: 版本。
        state_version:
          type: string
          description: 用于乐观并发控制的状态版本，须保留精确的十进制表示。
        signing_secret_ref:
          type: string
          description: 签名Secret引用。
        github_repository_id:
          type: string
          description: GitHub仓库标识符。
        requests_per_minute:
          type: integer
          format: int32
          description: 请求每分钟。
        ingress_path:
          type: string
          description: 入站路径。
        created_by:
          type: string
          description: 创建操作者。
        created_at:
          type: string
          format: date-time
          description: 创建时间，使用 RFC 3339 时间格式。
        adapter_id:
          type: string
          description: 适配器标识符。
        adapter_config_json:
          type: string
          description: 适配器配置JSON。
        ingress_url:
          type: string
          description: 公网回调的绝对 URL，可以与控制台的源站地址不同。
      description: 自动化 Webhook 配置结构。
    BindWorkspaceRepositoryRequest:
      type: object
      properties:
        workspace_id:
          type: string
          description: 工作空间标识。工作空间是持续协作上下文，与按任务使用的工作树不同。
        repository_grant_id:
          type: string
          description: 仓库授权标识符。
        key:
          type: string
          description: 键。
        mount_path:
          type: string
          description: 挂载路径。
        ref:
          type: string
          description: 引用。
        primary:
          type: boolean
          description: 主。
        access_mode:
          enum:
            - REPOSITORY_ACCESS_MODE_UNSPECIFIED
            - REPOSITORY_ACCESS_MODE_READ
            - REPOSITORY_ACCESS_MODE_WRITE
            - REPOSITORY_ACCESS_MODE_PUBLISH
          type: string
          format: enum
          description: 访问模式。
          x-enum-descriptions:
            REPOSITORY_ACCESS_MODE_UNSPECIFIED: 未指定
            REPOSITORY_ACCESS_MODE_READ: 读取
            REPOSITORY_ACCESS_MODE_WRITE: 写入
            REPOSITORY_ACCESS_MODE_PUBLISH: 发布
      description: 绑定工作空间仓库绑定的请求结构。
    ChannelAccess:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        actor_id:
          type: string
          description: 操作者标识符。
        chat_id:
          type: string
          description: 聊天标识符。
        actor_label:
          type: string
          description: 操作者标签。
        chat_label:
          type: string
          description: 聊天标签。
        private_chat:
          type: boolean
          description: 私有聊天。
        status:
          type: string
          description: 状态。
        pairing_code:
          type: string
          description: 配对代码。
        expires_at:
          type: string
          format: date-time
          description: 到期时间，使用 RFC 3339 时间格式。
        state_version:
          type: string
          description: 用于乐观并发控制的状态版本，须保留精确的十进制表示。
        created_at:
          type: string
          format: date-time
          description: 创建时间，使用 RFC 3339 时间格式。
        notification_status:
          type: string
          description: 通知状态。
        notification_error:
          type: string
          description: 通知错误。
        conversation_generation:
          type: string
          description: 会话代次。
      description: 管理员独立管理接入权限，不修改不可变的连接版本。待处理的配对申请过期后显示为已过期；已批准的授权不受配对码有效期限制。
    CreateAutomationSourceRequest:
      type: object
      properties:
        policy_scope_id:
          type: string
          description: 策略权限范围标识符。
        name:
          type: string
          description: 名称。
        max_backlog:
          type: integer
          format: int32
          description: 最大积压。
        retention_hours:
          type: integer
          format: int32
          description: 保留小时。
        kind:
          type: string
          description: 支持 api（默认）、schedule、webhook（Standard Webhooks）和 github；非 API 来源创建后初始为暂停状态。
        channel_adapter_id:
          type: string
          description: 消息渠道适配器标识符。
      description: 创建触发来源的请求结构。
    CreateEdgeResourceHandleRequest:
      type: object
      properties:
        policy_scope_id:
          type: string
          description: 策略权限范围标识符。
        host_id:
          type: string
          description: 宿主标识符。
        opaque_resource_key:
          type: string
          description: 不透明资源键。
        digest_sha256:
          type: string
          description: 摘要SHA-256。
        content_type:
          type: string
          description: 内容类型。
        size_bytes:
          type: string
          description: 大小字节。
        allowed_operations:
          type: array
          items:
            type: string
          description: 允许操作列表。
        expires_at:
          type: string
          format: date-time
          description: 到期时间，使用 RFC 3339 时间格式。
      description: 创建边缘资源句柄的请求结构。
    CreateIntegrationClientRequest:
      type: object
      properties:
        name:
          type: string
          description: 名称。
        description:
          type: string
          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: 客户端类型。
          x-enum-descriptions:
            INTEGRATION_CLIENT_TYPE_UNSPECIFIED: 未指定
            INTEGRATION_CLIENT_TYPE_PUBLIC: 公开客户端
            INTEGRATION_CLIENT_TYPE_CONFIDENTIAL: 机密客户端
            INTEGRATION_CLIENT_TYPE_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: 授权类型。
            x-enum-descriptions:
              OAUTH_GRANT_TYPE_UNSPECIFIED: 未指定
              OAUTH_GRANT_TYPE_AUTHORIZATION_CODE: 授权码
              OAUTH_GRANT_TYPE_CLIENT_CREDENTIALS: 客户端凭据
              OAUTH_GRANT_TYPE_REFRESH_TOKEN: 刷新令牌
          description: 授权类型列表。
        redirect_uris:
          type: array
          items:
            type: string
          description: 重定向URI列表列表。
        allowed_origins:
          type: array
          items:
            type: string
          description: 允许来源列表。
        scopes:
          type: array
          items:
            type: string
          description: 权限范围列表。
        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端点认证方式。
          x-enum-descriptions:
            TOKEN_ENDPOINT_AUTH_METHOD_UNSPECIFIED: 未指定
            TOKEN_ENDPOINT_AUTH_METHOD_NONE: 无
            TOKEN_ENDPOINT_AUTH_METHOD_CLIENT_SECRET_BASIC: 客户端密钥（HTTP Basic）
            TOKEN_ENDPOINT_AUTH_METHOD_PRIVATE_KEY_JWT: 私钥 JWT
        service_identity_id:
          type: string
          description: 服务身份标识符。
        client_secret_ttl:
          pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$
          type: string
          description: 客户端密钥有效期。
        jwks:
          $ref: "#/components/schemas/OAuthClientJWKSet"
          description: JSON Web 公钥集。
        network_policy:
          $ref: "#/components/schemas/IPAccessPolicy"
          description: 网络策略。
        quota_policy:
          $ref: "#/components/schemas/ApplicationQuotaPolicy"
          description: 配额策略。
      description: 创建接入应用的请求结构。
    CreateIntegrationClientResponse:
      type: object
      properties:
        client:
          $ref: "#/components/schemas/IntegrationClient"
          description: 客户端。
        credential:
          $ref: "#/components/schemas/IntegrationClientCredential"
          description: 凭据。
        client_secret:
          type: string
          description: 客户端密钥。
      description: 创建接入应用的响应结构。
    CreateSourceControlConnectionRequest:
      type: object
      properties:
        name:
          type: string
          description: 名称。
        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: 服务商。
          x-enum-descriptions:
            SOURCE_CONTROL_PROVIDER_UNSPECIFIED: 未指定
            SOURCE_CONTROL_PROVIDER_GENERIC_GIT: 通用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: 认证模式。
          x-enum-descriptions:
            SOURCE_CONTROL_AUTH_MODE_UNSPECIFIED: 未指定
            SOURCE_CONTROL_AUTH_MODE_ANONYMOUS: 匿名
            SOURCE_CONTROL_AUTH_MODE_APP: 应用认证
            SOURCE_CONTROL_AUTH_MODE_OAUTH: OAuth
            SOURCE_CONTROL_AUTH_MODE_TOKEN: 访问令牌
            SOURCE_CONTROL_AUTH_MODE_SSH_DEPLOY_KEY: SSH 部署密钥
        config:
          type: object
          additionalProperties:
            type: string
          description: 配置映射。
        credential_binding_reference:
          type: string
          description: 由管理员选择的 Secret Broker 引用。写入时接受该引用，SourceControlConnection 的读取响应不返回它。
        provider_api_credential_binding_reference:
          type: string
          description: 可选的服务商 API 令牌引用。基于令牌的 Git 连接在留空时复用 credential_binding_reference；SSH 连接必须另行提供该值后，才能使用服务商 API 操作。
      description: 创建源码连接的请求结构。
    CreateSourceRepositoryGrantRequest:
      type: object
      properties:
        repository_id:
          type: string
          description: 仓库标识符。
        policy_scope_id:
          type: string
          description: 策略权限范围标识符。
        access_mode:
          enum:
            - REPOSITORY_ACCESS_MODE_UNSPECIFIED
            - REPOSITORY_ACCESS_MODE_READ
            - REPOSITORY_ACCESS_MODE_WRITE
            - REPOSITORY_ACCESS_MODE_PUBLISH
          type: string
          format: enum
          description: 访问模式。
          x-enum-descriptions:
            REPOSITORY_ACCESS_MODE_UNSPECIFIED: 未指定
            REPOSITORY_ACCESS_MODE_READ: 读取
            REPOSITORY_ACCESS_MODE_WRITE: 写入
            REPOSITORY_ACCESS_MODE_PUBLISH: 发布
        allowed_ref_patterns:
          type: array
          items:
            type: string
          description: 允许引用匹配模式列表。
        denied_ref_patterns:
          type: array
          items:
            type: string
          description: 已拒绝引用匹配模式列表。
        allow_submodules:
          type: boolean
          description: 允许Git子模块。
        allow_lfs:
          type: boolean
          description: 允许Git-LFS。
        publication_policy_ref:
          type: string
          description: 发布策略引用。
      description: 创建仓库访问授权的请求结构。
    CreateSourceRepositoryRequest:
      type: object
      properties:
        connection_id:
          type: string
          description: 连接标识符。
        name:
          type: string
          description: 名称。
        remote_url:
          type: string
          description: 远端URL。
        default_ref:
          type: string
          description: 默认引用。
      description: 创建源码仓库的请求结构。
    CreateWebhookSubscriptionRequest:
      type: object
      properties:
        policy_scope_id:
          type: string
          description: 策略权限范围标识符。
        name:
          type: string
          description: 名称。
        endpoint_url:
          type: string
          description: 端点URL。
        event_types:
          type: array
          items:
            type: string
          description: 事件类型列表。
        secret_ref:
          type: string
          description: 不透明的 Secret 引用，不能填入凭据原文。
        deployment_id:
          type: string
          description: Agent 服务配置的标识，指应用可调用的服务配置。
        goal_id:
          type: string
          description: 目标标识符。
        tenant_wide:
          type: boolean
          description: 租户全域。
        workspace_id:
          type: string
          description: 工作空间标识。工作空间是持续协作上下文，与按任务使用的工作树不同。
        resource_type:
          type: string
          description: 资源类型。
        resource_id:
          type: string
          description: 资源标识符。
      description: 创建Webhook 订阅的请求结构。
    DisableIntegrationClientRequest:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        expected_state_version:
          type: string
          description: 用于乐观并发控制的预期状态版本。请原样复制当前版本，不要经 JavaScript Number 转换而损失精度。
      description: 停用接入应用的请求结构。
    DisconnectAutomationChannelRequest:
      type: object
      properties:
        source_id:
          type: string
          description: 来源标识符。
        expected_state_version:
          type: string
          description: 用于乐观并发控制的预期状态版本。请原样复制当前版本，不要经 JavaScript Number 转换而损失精度。
      description: 断开消息渠道的请求结构。
    EdgeResourceHandle:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        tenant_id:
          type: string
          description: 与已认证的访问上下文配合使用的租户标识；提供标识并不授予访问权。
        policy_scope_id:
          type: string
          description: 策略权限范围标识符。
        host_id:
          type: string
          description: 宿主标识符。
        digest_sha256:
          type: string
          description: 摘要SHA-256。
        content_type:
          type: string
          description: 内容类型。
        size_bytes:
          type: string
          description: 大小字节。
        allowed_operations:
          type: array
          items:
            type: string
          description: 允许操作列表。
        expires_at:
          type: string
          format: date-time
          description: 到期时间，使用 RFC 3339 时间格式。
        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: 状态。
          x-enum-descriptions:
            EDGE_RESOURCE_HANDLE_STATUS_UNSPECIFIED: 未指定
            EDGE_RESOURCE_HANDLE_STATUS_ACTIVE: 已启用
            EDGE_RESOURCE_HANDLE_STATUS_REVOKED: 已撤销
            EDGE_RESOURCE_HANDLE_STATUS_EXPIRED: 已过期
        created_by:
          type: string
          description: 创建操作者。
        created_at:
          type: string
          format: date-time
          description: 创建时间，使用 RFC 3339 时间格式。
        updated_at:
          type: string
          format: date-time
          description: 更新时间，使用 RFC 3339 时间格式。
      description: 边缘资源句柄结构。
    EndWebhookKeyOverlapRequest:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        expected_state_version:
          type: string
          description: 用于乐观并发控制的预期状态版本。请原样复制当前版本，不要经 JavaScript Number 转换而损失精度。
      description: 结束Webhook 签名密钥重叠窗口的请求结构。
    IPAccessPolicy:
      type: object
      properties:
        allowed_ip_ranges:
          type: array
          items:
            type: string
          description: 允许IP网段列表。
      description: 机器客户端的可选来源限制；空值表示不限制。
    InspectAutomationChannelRequest:
      type: object
      properties:
        source_id:
          type: string
          description: 来源标识符。
        adapter_id:
          type: string
          description: 适配器标识符。
        credential_ref:
          type: string
          description: 凭据引用。
        discover_chats:
          type: boolean
          description: 仅在尚未安装 Webhook 时读取最近的发送者/聊天元数据，不确认消息更新偏移，也不启动轮询或 Agent 执行。
        callback_url:
          type: string
          description: 回调URL。
        retrieve_verification:
          type: boolean
          description: 仅供管理员执行的初始化检查，不返回已保存的 Secret 值。
      description: 检查消息渠道的请求结构。
    InspectAutomationChannelResponse:
      type: object
      properties:
        account_id:
          type: string
          description: 账号标识符。
        username:
          type: string
          description: 用户名。
        display_name:
          type: string
          description: 展示名称。
        webhook_present:
          type: boolean
          description: Webhook已存在。
        callback_matches:
          type: boolean
          description: 回调匹配情况。
        candidates:
          type: array
          items:
            $ref: "#/components/schemas/AutomationChannelCandidate"
          description: 候选列表。
        verification_challenge:
          $ref: "#/components/schemas/AutomationChannelVerificationChallenge"
          description: 验证验证质询。
      description: 检查消息渠道的响应结构。
    IntegrationClient:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        tenant_id:
          type: string
          description: 与已认证的访问上下文配合使用的租户标识；提供标识并不授予访问权。
        service_identity_id:
          type: string
          description: 服务身份标识符。
        client_id:
          type: string
          description: 客户端标识符。
        name:
          type: string
          description: 名称。
        description:
          type: string
          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: 客户端类型。
          x-enum-descriptions:
            INTEGRATION_CLIENT_TYPE_UNSPECIFIED: 未指定
            INTEGRATION_CLIENT_TYPE_PUBLIC: 公开客户端
            INTEGRATION_CLIENT_TYPE_CONFIDENTIAL: 机密客户端
            INTEGRATION_CLIENT_TYPE_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: 授权类型。
            x-enum-descriptions:
              OAUTH_GRANT_TYPE_UNSPECIFIED: 未指定
              OAUTH_GRANT_TYPE_AUTHORIZATION_CODE: 授权码
              OAUTH_GRANT_TYPE_CLIENT_CREDENTIALS: 客户端凭据
              OAUTH_GRANT_TYPE_REFRESH_TOKEN: 刷新令牌
          description: 授权类型列表。
        redirect_uris:
          type: array
          items:
            type: string
          description: 重定向URI列表列表。
        allowed_origins:
          type: array
          items:
            type: string
          description: 允许来源列表。
        scopes:
          type: array
          items:
            type: string
          description: 权限范围列表。
        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端点认证方式。
        status:
          enum:
            - INTEGRATION_CLIENT_STATUS_UNSPECIFIED
            - INTEGRATION_CLIENT_STATUS_ACTIVE
            - INTEGRATION_CLIENT_STATUS_DISABLED
          type: string
          format: enum
          description: 状态。
          x-enum-descriptions:
            INTEGRATION_CLIENT_STATUS_UNSPECIFIED: 未指定
            INTEGRATION_CLIENT_STATUS_ACTIVE: 已启用
            INTEGRATION_CLIENT_STATUS_DISABLED: 已停用
        state_version:
          type: string
          description: 用于乐观并发控制的状态版本，须保留精确的十进制表示。
        created_by:
          type: string
          description: 创建操作者。
        disabled_by:
          type: string
          description: 停用操作者。
        disabled_at:
          type: string
          format: date-time
          description: 停用时间，使用 RFC 3339 时间格式。
        created_at:
          type: string
          format: date-time
          description: 创建时间，使用 RFC 3339 时间格式。
        updated_at:
          type: string
          format: date-time
          description: 更新时间，使用 RFC 3339 时间格式。
        jwks:
          $ref: "#/components/schemas/OAuthClientJWKSet"
          description: JSON Web 公钥集。
        network_policy:
          $ref: "#/components/schemas/IPAccessPolicy"
          description: 网络策略。
        quota_policy:
          $ref: "#/components/schemas/ApplicationQuotaPolicy"
          description: 配额策略。
      description: 接入应用结构。
    IntegrationClientCredential:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        integration_client_id:
          type: string
          description: 集成客户端标识符。
        secret_hint:
          type: string
          description: Secret提示。
        expires_at:
          type: string
          format: date-time
          description: 到期时间，使用 RFC 3339 时间格式。
        last_used_at:
          type: string
          format: date-time
          description: 最近已使用时间，使用 RFC 3339 时间格式。
        revoked_at:
          type: string
          format: date-time
          description: 撤销时间，使用 RFC 3339 时间格式。
        created_at:
          type: string
          format: date-time
          description: 创建时间，使用 RFC 3339 时间格式。
      description: 应用客户端凭据结构。
    IntegrationClientQuotaStatus:
      type: object
      properties:
        model_spending:
          $ref: "#/components/schemas/ModelChargeSpending"
          description: 模型费用。
        integration_client_id:
          type: string
          description: 集成客户端标识符。
        policy:
          $ref: "#/components/schemas/ApplicationQuotaPolicy"
          description: 策略。
        period_start:
          type: string
          format: date-time
          description: 周期启动，使用 RFC 3339 时间格式。
        period_end:
          type: string
          format: date-time
          description: 周期结束，使用 RFC 3339 时间格式。
        admitted_runs:
          type: string
          description: 已准入运行。
        active_runs:
          type: string
          description: 活跃运行。
        used:
          $ref: "#/components/schemas/UsageQuotaAmounts"
          description: 已使用。
        reserved:
          $ref: "#/components/schemas/UsageQuotaAmounts"
          description: 已预留。
        exhausted_dimensions:
          type: array
          items:
            type: string
          description: 已耗尽维度列表。
      description: 应用配额状态结构。
    ListAutomationAdaptersResponse:
      type: object
      properties:
        ingress_adapters:
          type: array
          items:
            $ref: "#/components/schemas/AutomationAdapter"
          description: 入站适配器列表。
        target_adapters:
          type: array
          items:
            type: string
          description: 目标适配器列表。
        repository_adapters:
          type: array
          items:
            type: string
          description: 仓库适配器列表。
        result_adapters:
          type: array
          items:
            $ref: "#/components/schemas/AutomationResultAdapter"
          description: 结果适配器列表。
      description: 列出自动化适配器的响应结构。
    ListAutomationEventsResponse:
      type: object
      properties:
        events:
          type: array
          items:
            $ref: "#/components/schemas/AutomationEventReceipt"
          description: 事件列表。
        next_page_token:
          type: string
          description: 下一页的分页令牌；为空表示没有下一页。
      description: 列出自动化事件的响应结构。
    ListAutomationOccurrencesResponse:
      type: object
      properties:
        occurrences:
          type: array
          items:
            $ref: "#/components/schemas/AutomationOccurrence"
          description: 触发记录列表。
        next_page_token:
          type: string
          description: 下一页的分页令牌；为空表示没有下一页。
      description: 列出自动化触发记录的响应结构。
    ListAutomationSourcesResponse:
      type: object
      properties:
        sources:
          type: array
          items:
            $ref: "#/components/schemas/AutomationSource"
          description: 来源列表。
        next_page_token:
          type: string
          description: 下一页的分页令牌；为空表示没有下一页。
      description: 列出触发来源的响应结构。
    ListAutomationsResponse:
      type: object
      properties:
        automations:
          type: array
          items:
            $ref: "#/components/schemas/Automation"
          description: 自动化列表。
        next_page_token:
          type: string
          description: 下一页的分页令牌；为空表示没有下一页。
      description: 列出自动化规则的响应结构。
    ListChannelAccessResponse:
      type: object
      properties:
        access:
          type: array
          items:
            $ref: "#/components/schemas/ChannelAccess"
          description: 访问列表。
        next_page_token:
          type: string
          description: 下一页的分页令牌；为空表示没有下一页。
      description: 列出消息渠道访问授权的响应结构。
    ListEdgeResourceHandlesResponse:
      type: object
      properties:
        handles:
          type: array
          items:
            $ref: "#/components/schemas/EdgeResourceHandle"
          description: 句柄列表。
      description: 列出边缘资源句柄的响应结构。
    ListIntegrationClientCredentialsResponse:
      type: object
      properties:
        credentials:
          type: array
          items:
            $ref: "#/components/schemas/IntegrationClientCredential"
          description: 凭据列表。
      description: 列出应用客户端凭据的响应结构。
    ListIntegrationClientsResponse:
      type: object
      properties:
        clients:
          type: array
          items:
            $ref: "#/components/schemas/IntegrationClient"
          description: 客户端列表。
      description: 列出接入应用的响应结构。
    ListOAuthConsentGrantsResponse:
      type: object
      properties:
        grants:
          type: array
          items:
            $ref: "#/components/schemas/OAuthConsentGrant"
          description: 授权列表。
      description: 列出OAuth 委托授权的响应结构。
    ListRepositoryPublicationsResponse:
      type: object
      properties:
        publications:
          type: array
          items:
            $ref: "#/components/schemas/RepositoryPublication"
          description: 发布列表。
        next_page_token:
          type: string
          description: 下一页的分页令牌；为空表示没有下一页。
      description: 列出仓库发布记录的响应结构。
    ListSourceActionsResponse:
      type: object
      properties:
        actions:
          type: array
          items:
            $ref: "#/components/schemas/SourceActionDescriptor"
          description: 操作列表。
      description: 列出源码操作目录的响应结构。
    ListSourceControlConnectionRepositoriesResponse:
      type: object
      properties:
        installation:
          $ref: "#/components/schemas/SourceControlInstallation"
          description: 安装。
        repositories:
          type: array
          items:
            $ref: "#/components/schemas/SourceControlRepositoryCandidate"
          description: 仓库列表。
        next_page:
          type: integer
          format: int32
          description: 下一分页。
      description: 列出源码连接可发现的仓库的响应结构。
    ListSourceControlConnectionsResponse:
      type: object
      properties:
        connections:
          type: array
          items:
            $ref: "#/components/schemas/SourceControlConnection"
          description: 连接列表。
      description: 列出源码连接的响应结构。
    ListSourceRepositoriesResponse:
      type: object
      properties:
        repositories:
          type: array
          items:
            $ref: "#/components/schemas/SourceRepository"
          description: 仓库列表。
      description: 列出源码仓库的响应结构。
    ListSourceRepositoryGrantsResponse:
      type: object
      properties:
        grants:
          type: array
          items:
            $ref: "#/components/schemas/SourceRepositoryGrant"
          description: 授权列表。
      description: 列出仓库访问授权的响应结构。
    ListWebhookDeliveriesResponse:
      type: object
      properties:
        deliveries:
          type: array
          items:
            $ref: "#/components/schemas/WebhookDelivery"
          description: 投递列表。
      description: 列出Webhook 投递记录的响应结构。
    ListWebhookEventTypesResponse:
      type: object
      properties:
        event_types:
          type: array
          items:
            $ref: "#/components/schemas/WebhookEventType"
          description: 事件类型列表。
      description: 列出Webhook 事件类型的响应结构。
    ListWebhookResourcesResponse:
      type: object
      properties:
        resources:
          type: array
          items:
            $ref: "#/components/schemas/WebhookResource"
          description: 资源列表。
        next_page_token:
          type: string
          description: 下一页的分页令牌；为空表示没有下一页。
      description: 列出Webhook 可订阅资源的响应结构。
    ListWebhookSubscriptionsResponse:
      type: object
      properties:
        subscriptions:
          type: array
          items:
            $ref: "#/components/schemas/WebhookSubscription"
          description: 订阅列表。
      description: 列出Webhook 订阅的响应结构。
    ListWorkspaceRepositoriesResponse:
      type: object
      properties:
        bindings:
          type: array
          items:
            $ref: "#/components/schemas/WorkspaceRepositoryBinding"
          description: 绑定列表。
      description: 列出工作空间仓库绑定的响应结构。
    ModelChargeSpending:
      type: object
      properties:
        currency:
          type: string
          description: 币种。
        period_start:
          type: string
          format: date-time
          description: 周期启动，使用 RFC 3339 时间格式。
        period_end:
          type: string
          format: date-time
          description: 周期结束，使用 RFC 3339 时间格式。
        limit_microunits:
          type: string
          description: 上限微单位。
        posted_microunits:
          type: string
          description: 已记账微单位。
        reserved_microunits:
          type: string
          description: 已预留微单位。
        available_microunits:
          type: string
          description: 可用微单位。
        unknown_runs:
          type: string
          description: 未知运行。
        uncertain_requests:
          type: string
          description: 未确定请求。
        status:
          type: string
          description: 状态。
        next_change_at:
          type: string
          format: date-time
          description: 下一变更时间，使用 RFC 3339 时间格式。
      description: 租户和应用配额共用的精确金额及未结算敞口。旧版配额上限为空表示不设限；未知的可用金额不会被当成零余额。金额求和不受 int64 累计范围限制。
    OAuthClientJWK:
      type: object
      properties:
        kid:
          type: string
          description: 密钥标识符。
        kty:
          type: string
          description: 密钥类型。
        use:
          type: string
          description: 使用。
        alg:
          type: string
          description: 签名算法。
        n:
          type: string
          description: RSA模数。
        e:
          type: string
          description: RSA公钥指数。
      description: OAuthClientJWK 是机密客户端或机器客户端登记的签名公钥。OrbitSpace 当前接受 alg=RS256 的 RSA 签名密钥；本消息不能包含私钥材料。
    OAuthClientJWKSet:
      type: object
      properties:
        keys:
          type: array
          items:
            $ref: "#/components/schemas/OAuthClientJWK"
          description: 键列表。
      description: OAuth客户端JWK设置结构。
    OAuthConsentGrant:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        tenant_id:
          type: string
          description: 与已认证的访问上下文配合使用的租户标识；提供标识并不授予访问权。
        integration_client_id:
          type: string
          description: 集成客户端标识符。
        identity_id:
          type: string
          description: 身份标识符。
        audience:
          type: string
          description: 受众。
        scopes:
          type: array
          items:
            type: string
          description: 权限范围列表。
        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: 状态。
          x-enum-descriptions:
            OAUTH_CONSENT_GRANT_STATUS_UNSPECIFIED: 未指定
            OAUTH_CONSENT_GRANT_STATUS_ACTIVE: 已启用
            OAUTH_CONSENT_GRANT_STATUS_EXPIRED: 已过期
            OAUTH_CONSENT_GRANT_STATUS_REVOKED: 已撤销
        auth_time:
          type: string
          format: date-time
          description: 认证时间，使用 RFC 3339 时间格式。
        expires_at:
          type: string
          format: date-time
          description: 到期时间，使用 RFC 3339 时间格式。
        revoked_at:
          type: string
          format: date-time
          description: 撤销时间，使用 RFC 3339 时间格式。
        created_at:
          type: string
          format: date-time
          description: 创建时间，使用 RFC 3339 时间格式。
        updated_at:
          type: string
          format: date-time
          description: 更新时间，使用 RFC 3339 时间格式。
      description: OAuthConsentGrant 是可供应用安全读取的持久委托授权投影，不包含授权码、访问令牌或刷新令牌。撤销后，同一用户、客户端及资源受众下的全部相关令牌失效。
    PreviewAutomationRuleRequest:
      type: object
      properties:
        source_id:
          type: string
          description: 来源标识符。
        rule_json:
          type: string
          description: 规则JSON。
        event_json:
          type: string
          description: 事件JSON。
        input_mapping_json:
          type: string
          description: 输入映射JSON。
        deployment_id:
          type: string
          description: Agent 服务配置的标识，指应用可调用的服务配置。
      description: 预览自动化规则的请求结构。
    PreviewAutomationRuleResponse:
      type: object
      properties:
        matched:
          type: boolean
          description: 已匹配。
        reason:
          type: string
          description: 原因。
        condition_index:
          type: integer
          format: int32
          description: 条件索引。
        mapped_input_json:
          type: string
          description: 映射后输入JSON。
        target_input_validated:
          type: boolean
          description: 目标输入已校验。
      description: 预览自动化规则的响应结构。
    PreviewAutomationScheduleRequest:
      type: object
      properties:
        policy_scope_id:
          type: string
          description: 策略权限范围标识符。
        definition_json:
          type: string
          description: 定义JSON。
        after:
          type: string
          format: date-time
          description: 之后，使用 RFC 3339 时间格式。
      description: 预览定时触发配置的请求结构。
    PreviewAutomationScheduleResponse:
      type: object
      properties:
        times:
          type: array
          items:
            $ref: "#/components/schemas/AutomationScheduleTime"
          description: 次数列表。
        missing_time:
          type: string
          description: 缺失时间。
        repeated_time:
          type: string
          description: 重复时间。
      description: 预览定时触发配置的响应结构。
    ProblemDetails:
      type: object
      description: RFC 9457 Problem Details 错误对象，包含 OrbitSpace 的关联标识扩展字段。
      required:
        - type
        - title
        - status
        - detail
        - request_id
      properties:
        type:
          type: string
          format: uri
          description: 类型。
        title:
          type: string
          description: 标题。
        status:
          type: integer
          minimum: 400
          maximum: 599
          description: 状态。
        detail:
          type: string
          description: 详情。
        instance:
          type: string
          format: uri-reference
          description: 实例。
        code:
          type: string
          pattern: ^[A-Z][A-Z0-9_]*$
          description: 代码。
        request_id:
          type: string
          format: uuid
          description: 请求标识符。
    ProvisionWebhookSubscriptionRequest:
      type: object
      properties:
        policy_scope_id:
          type: string
          description: 策略权限范围标识符。
        name:
          type: string
          description: 名称。
        endpoint_url:
          type: string
          description: 端点URL。
        event_types:
          type: array
          items:
            type: string
          description: 事件类型列表。
        secret_ref:
          type: string
          description: 不透明的 Secret 引用，不能填入凭据原文。
        deployment_id:
          type: string
          description: Agent 服务配置的标识，指应用可调用的服务配置。
        goal_id:
          type: string
          description: 目标标识符。
        tenant_wide:
          type: boolean
          description: 租户全域。
        workspace_id:
          type: string
          description: 工作空间标识。工作空间是持续协作上下文，与按任务使用的工作树不同。
        resource_type:
          type: string
          description: 资源类型。
        resource_id:
          type: string
          description: 资源标识符。
      description: 开通Webhook 订阅的请求结构。
    PublishAutomationRequest:
      type: object
      properties:
        source_id:
          type: string
          description: 来源标识符。
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        name:
          type: string
          description: 名称。
        deployment_id:
          type: string
          description: Agent 服务配置的标识，指应用可调用的服务配置。
        execution_identity_id:
          type: string
          description: 执行身份标识符。
        rule_json:
          type: string
          description: 以 JSON 文本编码带类型的规则值，避免双精度表示截断标识符。
        max_concurrency:
          type: integer
          format: int32
          description: 最大并发。
        expected_state_version:
          type: string
          description: 用于乐观并发控制的预期状态版本。请原样复制当前版本，不要经 JavaScript Number 转换而损失精度。
        overlap_policy:
          type: string
          description: 规则已达到 max_concurrency 时，可选择 queue（默认，排队）或 skip（跳过）。
        input_mapping_json:
          type: string
          description: 省略映射时保留旧事件封装形式。
        target_adapter:
          type: string
          description: 省略时采用 agent-deployment.task.v1；不支持的适配器会被拒绝。
        repository_input_json:
          type: string
          description: 可选的可信源码修订适配器和固定 Workspace 绑定。
        result_delivery_json:
          type: string
          description: 可选的结果适配器；github.review.v1 要求事件规则只匹配 PR 事件。
      description: 发布自动化规则的请求结构。
    PublishAutomationScheduleRequest:
      type: object
      properties:
        source_id:
          type: string
          description: 来源标识符。
        definition_json:
          type: string
          description: 定义JSON。
        expected_state_version:
          type: string
          description: 用于乐观并发控制的预期状态版本。请原样复制当前版本，不要经 JavaScript Number 转换而损失精度。
      description: 发布定时触发配置的请求结构。
    PublishAutomationWebhookRequest:
      type: object
      properties:
        source_id:
          type: string
          description: 来源标识符。
        expected_state_version:
          type: string
          description: 用于乐观并发控制的预期状态版本。请原样复制当前版本，不要经 JavaScript Number 转换而损失精度。
        signing_secret_ref:
          type: string
          description: 签名Secret引用。
        github_repository_id:
          type: string
          description: github 来源必填；使用十进制标识符，不能使用浮点 JSON 数字。
        requests_per_minute:
          type: integer
          format: int32
          description: 请求每分钟。
        adapter_id:
          type: string
          description: 适配器标识符。
        adapter_config_json:
          type: string
          description: 适配器配置JSON。
      description: 发布自动化 Webhook 配置的请求结构。
    RefreshWorkspaceRepositoryRequest:
      type: object
      properties:
        workspace_id:
          type: string
          description: 工作空间标识。工作空间是持续协作上下文，与按任务使用的工作树不同。
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        ref:
          type: string
          description: 引用。
        expected_state_version:
          type: string
          description: 用于乐观并发控制的预期状态版本。请原样复制当前版本，不要经 JavaScript Number 转换而损失精度。
      description: 刷新工作空间仓库绑定的请求结构。
    RemoveWorkspaceRepositoryRequest:
      type: object
      properties:
        workspace_id:
          type: string
          description: 工作空间标识。工作空间是持续协作上下文，与按任务使用的工作树不同。
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      description: 移除工作空间仓库绑定的请求结构。
    RepositoryPublication:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        tenant_id:
          type: string
          description: 与已认证的访问上下文配合使用的租户标识；提供标识并不授予访问权。
        policy_scope_id:
          type: string
          description: 策略权限范围标识符。
        workspace_id:
          type: string
          description: 工作空间标识。工作空间是持续协作上下文，与按任务使用的工作树不同。
        repository_id:
          type: string
          description: 仓库标识符。
        binding_id:
          type: string
          description: 绑定标识符。
        task_id:
          type: string
          description: 任务标识，不能用一次执行的 Run ID 替代。
        run_id:
          type: string
          description: 关联任务的一次执行 Run 的标识。
        tool_call_id:
          type: string
          description: 工具调用标识符。
        runtime_host_id:
          type: string
          description: Runtime宿主标识符。
        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: 类别。
        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: 状态。
          x-enum-descriptions:
            REPOSITORY_PUBLICATION_STATUS_UNSPECIFIED: 未指定
            REPOSITORY_PUBLICATION_STATUS_PENDING: 待处理
            REPOSITORY_PUBLICATION_STATUS_RUNNING: 执行中
            REPOSITORY_PUBLICATION_STATUS_SUCCEEDED: 成功
            REPOSITORY_PUBLICATION_STATUS_FAILED: 失败
        idempotency_key:
          type: string
          description: 本次操作的幂等键，仅在重试同一次、同内容的提交时复用。
        request_hash:
          type: string
          description: 请求哈希。
        base_commit:
          type: string
          description: 基线提交。
        head_commit:
          type: string
          description: HEAD提交。
        destination_ref:
          type: string
          description: 目标引用。
        expected_remote_commit:
          type: string
          description: 预期远端提交。
        provider_resource_id:
          type: string
          description: 服务商资源标识符。
        provider_url:
          type: string
          description: 服务商URL。
        result:
          type: object
          description: 结果。
        error_code:
          type: string
          description: 错误代码。
        error_message:
          type: string
          description: 错误消息。
        approval_id:
          type: string
          description: 审批标识符。
        created_by:
          type: string
          description: 创建操作者。
        completed_at:
          type: string
          format: date-time
          description: 已完成时间，使用 RFC 3339 时间格式。
        created_at:
          type: string
          format: date-time
          description: 创建时间，使用 RFC 3339 时间格式。
        updated_at:
          type: string
          format: date-time
          description: 更新时间，使用 RFC 3339 时间格式。
        repository_grant_id:
          type: string
          description: 仓库授权标识符。
        grant_state_version:
          type: string
          description: 授权状态版本。
        binding_state_version:
          type: string
          description: 绑定状态版本。
        source_ref:
          type: string
          description: 来源引用。
        goal_id:
          type: string
          description: 目标标识符。
        release_id:
          type: string
          description: 发布版本标识符。
        related_publication_id:
          type: string
          description: 关联发布标识符。
        state_version:
          type: string
          description: 用于乐观并发控制的状态版本，须保留精确的十进制表示。
        maintenance_attempts:
          type: integer
          format: int32
          description: 维护尝试。
        next_attempt_at:
          type: string
          format: date-time
          description: 下一尝试时间，使用 RFC 3339 时间格式。
      description: 仓库发布记录结构。
    ResetChannelConversationRequest:
      type: object
      properties:
        source_id:
          type: string
          description: 来源标识符。
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        expected_state_version:
          type: string
          description: 用于乐观并发控制的预期状态版本。请原样复制当前版本，不要经 JavaScript Number 转换而损失精度。
        expected_conversation_generation:
          type: string
          description: 预期会话代次。
      description: 重置消息渠道会话的请求结构。
    ResolveRepositoryReferenceRequest:
      type: object
      properties:
        repository_id:
          type: string
          description: 仓库标识符。
        ref:
          type: string
          description: 引用。
      description: 解析仓库引用的请求结构。
    ResolvedRepositoryReference:
      type: object
      properties:
        repository_id:
          type: string
          description: 仓库标识符。
        requested_ref:
          type: string
          description: 请求引用。
        resolved_ref:
          type: string
          description: 已解析引用。
        commit:
          type: string
          description: 提交。
        resolved_at:
          type: string
          format: date-time
          description: 已解析时间，使用 RFC 3339 时间格式。
      description: 已解析仓库引用结构。
    RestoreSourceRepositoryRequest:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      description: 恢复源码仓库的请求结构。
    RetryRepositoryPublicationMaintenanceRequest:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        expected_state_version:
          type: string
          description: 用于乐观并发控制的预期状态版本。请原样复制当前版本，不要经 JavaScript Number 转换而损失精度。
      description: 重试仓库发布维护的请求结构。
    RetryWebhookDeliveryRequest:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      description: 重试Webhook 投递的请求结构。
    RevokeEdgeResourceHandleRequest:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      description: 撤销边缘资源句柄的请求结构。
    RevokeIntegrationClientCredentialRequest:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        credential_id:
          type: string
          description: 凭据标识符。
      description: 撤销应用客户端凭据的请求结构。
    RevokeOAuthConsentGrantRequest:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      description: 撤销OAuth 委托授权的请求结构。
    RevokeSourceControlConnectionRequest:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      description: 撤销源码连接的请求结构。
    RevokeSourceRepositoryGrantRequest:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        expected_state_version:
          type: string
          description: 用于乐观并发控制的预期状态版本。请原样复制当前版本，不要经 JavaScript Number 转换而损失精度。
      description: 撤销仓库访问授权的请求结构。
    RotateIntegrationClientSecretRequest:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        ttl:
          pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$
          type: string
          description: 有效期。
      description: 轮换应用客户端密钥的请求结构。
    RotateIntegrationClientSecretResponse:
      type: object
      properties:
        credential:
          $ref: "#/components/schemas/IntegrationClientCredential"
          description: 凭据。
        client_secret:
          type: string
          description: 客户端密钥。
      description: 轮换应用客户端密钥的响应结构。
    RotateWebhookSigningKeyRequest:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        expected_state_version:
          type: string
          description: 用于乐观并发控制的预期状态版本。请原样复制当前版本，不要经 JavaScript Number 转换而损失精度。
      description: 轮换Webhook 签名密钥的请求结构。
    SetAutomationSourceStatusRequest:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        status:
          enum:
            - AUTOMATION_STATUS_UNSPECIFIED
            - AUTOMATION_STATUS_ACTIVE
            - AUTOMATION_STATUS_PAUSED
            - AUTOMATION_STATUS_ARCHIVED
          type: string
          format: enum
          description: 状态。
          x-enum-descriptions:
            AUTOMATION_STATUS_UNSPECIFIED: 未指定
            AUTOMATION_STATUS_ACTIVE: 已启用
            AUTOMATION_STATUS_PAUSED: 已暂停
            AUTOMATION_STATUS_ARCHIVED: 已归档
        expected_state_version:
          type: string
          description: 用于乐观并发控制的预期状态版本。请原样复制当前版本，不要经 JavaScript Number 转换而损失精度。
      description: 设置触发来源状态的请求结构。
    SetAutomationStatusRequest:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        status:
          enum:
            - AUTOMATION_STATUS_UNSPECIFIED
            - AUTOMATION_STATUS_ACTIVE
            - AUTOMATION_STATUS_PAUSED
            - AUTOMATION_STATUS_ARCHIVED
          type: string
          format: enum
          description: 状态。
          x-enum-descriptions:
            AUTOMATION_STATUS_UNSPECIFIED: 未指定
            AUTOMATION_STATUS_ACTIVE: 已启用
            AUTOMATION_STATUS_PAUSED: 已暂停
            AUTOMATION_STATUS_ARCHIVED: 已归档
        expected_state_version:
          type: string
          description: 用于乐观并发控制的预期状态版本。请原样复制当前版本，不要经 JavaScript Number 转换而损失精度。
      description: 设置自动化规则状态的请求结构。
    SetChannelAccessRequest:
      type: object
      properties:
        source_id:
          type: string
          description: 来源标识符。
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        expected_state_version:
          type: string
          description: 用于乐观并发控制的预期状态版本。请原样复制当前版本，不要经 JavaScript Number 转换而损失精度。
        status:
          type: string
          description: 支持 approved、denied 或 revoked；该决定不授予角色或执行权限。
        actor_id:
          type: string
          description: 省略 id 时，对精确的用户/聊天组合执行授权或撤销，也适用于旧接入记录。
        chat_id:
          type: string
          description: 聊天标识符。
        private_chat:
          type: boolean
          description: 私有聊天。
      description: 设置消息渠道访问授权的请求结构。
    SetWebhookSubscriptionStatusRequest:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        expected_state_version:
          type: string
          description: 用于乐观并发控制的预期状态版本。请原样复制当前版本，不要经 JavaScript Number 转换而损失精度。
        status:
          enum:
            - WEBHOOK_SUBSCRIPTION_STATUS_UNSPECIFIED
            - WEBHOOK_SUBSCRIPTION_STATUS_ACTIVE
            - WEBHOOK_SUBSCRIPTION_STATUS_DISABLED
          type: string
          format: enum
          description: 状态。
          x-enum-descriptions:
            WEBHOOK_SUBSCRIPTION_STATUS_UNSPECIFIED: 未指定
            WEBHOOK_SUBSCRIPTION_STATUS_ACTIVE: 已启用
            WEBHOOK_SUBSCRIPTION_STATUS_DISABLED: 已停用
      description: 设置Webhook 订阅状态的请求结构。
    SourceActionDescriptor:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        binding:
          type: string
          description: 绑定。
        name:
          type: string
          description: 名称。
        description:
          type: string
          description: 说明。
        mutating:
          type: boolean
          description: 会修改状态。
        resource:
          type: string
          description: 资源。
        operation:
          type: string
          description: 操作。
        input_schema:
          type: object
          description: 输入Schema。
        permissions:
          type: object
          additionalProperties:
            type: string
          description: 权限映射。
      description: 来源操作描述符结构。
    SourceControlConnection:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        tenant_id:
          type: string
          description: 与已认证的访问上下文配合使用的租户标识；提供标识并不授予访问权。
        name:
          type: string
          description: 名称。
        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: 服务商。
          x-enum-descriptions:
            SOURCE_CONTROL_PROVIDER_UNSPECIFIED: 未指定
            SOURCE_CONTROL_PROVIDER_GENERIC_GIT: 通用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: 认证模式。
          x-enum-descriptions:
            SOURCE_CONTROL_AUTH_MODE_UNSPECIFIED: 未指定
            SOURCE_CONTROL_AUTH_MODE_ANONYMOUS: 匿名
            SOURCE_CONTROL_AUTH_MODE_APP: 应用认证
            SOURCE_CONTROL_AUTH_MODE_OAUTH: OAuth
            SOURCE_CONTROL_AUTH_MODE_TOKEN: 访问令牌
            SOURCE_CONTROL_AUTH_MODE_SSH_DEPLOY_KEY: SSH 部署密钥
        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: 状态。
          x-enum-descriptions:
            SOURCE_CONTROL_CONNECTION_STATUS_UNSPECIFIED: 未指定
            SOURCE_CONTROL_CONNECTION_STATUS_ACTIVE: 已启用
            SOURCE_CONTROL_CONNECTION_STATUS_DEGRADED: 已降级
            SOURCE_CONTROL_CONNECTION_STATUS_REVOKED: 已撤销
        config:
          type: object
          additionalProperties:
            type: string
          description: 配置映射。
        last_verified_at:
          type: string
          format: date-time
          description: 最近已验证时间，使用 RFC 3339 时间格式。
        last_error:
          type: string
          description: 最近错误。
        created_by:
          type: string
          description: 创建操作者。
        revoked_at:
          type: string
          format: date-time
          description: 撤销时间，使用 RFC 3339 时间格式。
        created_at:
          type: string
          format: date-time
          description: 创建时间，使用 RFC 3339 时间格式。
        updated_at:
          type: string
          format: date-time
          description: 更新时间，使用 RFC 3339 时间格式。
        credential_configured:
          type: boolean
          description: 凭据已配置。
        credential_kind:
          type: string
          description: 凭据类别。
        credential_expires_at:
          type: string
          format: date-time
          description: 凭据到期时间，使用 RFC 3339 时间格式。
        credential_generation:
          type: string
          description: 凭据代次。
        provider_api_credential_configured:
          type: boolean
          description: 服务商 API 凭据由控制面用于 PR、检查和 Release 操作；Git 传输凭据仍按操作范围交给 Runtime 工作负载，不跨越这条边界。
        provider_api_credential_kind:
          type: string
          description: 服务商API凭据类别。
        provider_api_credential_generation:
          type: string
          description: 服务商API凭据代次。
        provider_api_credential_reuses_transport:
          type: boolean
          description: 服务商API凭据复用传输。
      description: 源码连接结构。
    SourceControlInstallation:
      type: object
      properties:
        app_id:
          type: string
          description: 应用标识符。
        installation_id:
          type: string
          description: 安装标识符。
        account_id:
          type: string
          description: 账号标识符。
        account_login:
          type: string
          description: 账号登录。
        account_type:
          type: string
          description: 账号类型。
        repository_selection:
          type: string
          description: 仓库选择。
        permissions:
          type: object
          additionalProperties:
            type: string
          description: 权限映射。
      description: 来源控制安装结构。
    SourceControlRepositoryCandidate:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        full_name:
          type: string
          description: 完整名称。
        clone_url:
          type: string
          description: 克隆URL。
        default_branch:
          type: string
          description: 默认分支。
        private:
          type: boolean
          description: 私有。
      description: 来源控制仓库候选结构。
    SourceRepository:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        tenant_id:
          type: string
          description: 与已认证的访问上下文配合使用的租户标识；提供标识并不授予访问权。
        connection_id:
          type: string
          description: 连接标识符。
        name:
          type: string
          description: 名称。
        remote_url:
          type: string
          description: 远端URL。
        canonical_url:
          type: string
          description: 规范化URL。
        default_ref:
          type: string
          description: 默认引用。
        default_commit:
          type: string
          description: 默认提交。
        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: 验证状态。
          x-enum-descriptions:
            SOURCE_REPOSITORY_VERIFICATION_STATUS_UNSPECIFIED: 未指定
            SOURCE_REPOSITORY_VERIFICATION_STATUS_PENDING: 待处理
            SOURCE_REPOSITORY_VERIFICATION_STATUS_VERIFIED: 已验证
            SOURCE_REPOSITORY_VERIFICATION_STATUS_FAILED: 失败
        last_verified_at:
          type: string
          format: date-time
          description: 最近已验证时间，使用 RFC 3339 时间格式。
        last_error:
          type: string
          description: 最近错误。
        created_by:
          type: string
          description: 创建操作者。
        archived_at:
          type: string
          format: date-time
          description: 归档时间，使用 RFC 3339 时间格式。
        created_at:
          type: string
          format: date-time
          description: 创建时间，使用 RFC 3339 时间格式。
        updated_at:
          type: string
          format: date-time
          description: 更新时间，使用 RFC 3339 时间格式。
      description: 源码仓库结构。
    SourceRepositoryGrant:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        tenant_id:
          type: string
          description: 与已认证的访问上下文配合使用的租户标识；提供标识并不授予访问权。
        repository_id:
          type: string
          description: 仓库标识符。
        policy_scope_id:
          type: string
          description: 策略权限范围标识符。
        access_mode:
          enum:
            - REPOSITORY_ACCESS_MODE_UNSPECIFIED
            - REPOSITORY_ACCESS_MODE_READ
            - REPOSITORY_ACCESS_MODE_WRITE
            - REPOSITORY_ACCESS_MODE_PUBLISH
          type: string
          format: enum
          description: 访问模式。
          x-enum-descriptions:
            REPOSITORY_ACCESS_MODE_UNSPECIFIED: 未指定
            REPOSITORY_ACCESS_MODE_READ: 读取
            REPOSITORY_ACCESS_MODE_WRITE: 写入
            REPOSITORY_ACCESS_MODE_PUBLISH: 发布
        allowed_ref_patterns:
          type: array
          items:
            type: string
          description: 允许引用匹配模式列表。
        denied_ref_patterns:
          type: array
          items:
            type: string
          description: 已拒绝引用匹配模式列表。
        allow_submodules:
          type: boolean
          description: 允许Git子模块。
        allow_lfs:
          type: boolean
          description: 允许Git-LFS。
        publication_policy_ref:
          type: string
          description: 发布策略引用。
        state_version:
          type: string
          description: 用于乐观并发控制的状态版本，须保留精确的十进制表示。
        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: 状态。
          x-enum-descriptions:
            SOURCE_REPOSITORY_GRANT_STATUS_UNSPECIFIED: 未指定
            SOURCE_REPOSITORY_GRANT_STATUS_ACTIVE: 已启用
            SOURCE_REPOSITORY_GRANT_STATUS_SUSPENDED: 已挂起
            SOURCE_REPOSITORY_GRANT_STATUS_REVOKED: 已撤销
        created_by:
          type: string
          description: 创建操作者。
        revoked_at:
          type: string
          format: date-time
          description: 撤销时间，使用 RFC 3339 时间格式。
        created_at:
          type: string
          format: date-time
          description: 创建时间，使用 RFC 3339 时间格式。
        updated_at:
          type: string
          format: date-time
          description: 更新时间，使用 RFC 3339 时间格式。
        repository:
          $ref: "#/components/schemas/SourceRepository"
          description: 仓库。
      description: 仓库访问授权结构。
    TestWebhookSubscriptionRequest:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        event_type:
          type: string
          description: 事件类型。
      description: 测试Webhook 订阅的请求结构。
    UpdateIntegrationClientRequest:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        name:
          type: string
          description: 名称。
        description:
          type: string
          description: 说明。
        redirect_uris:
          type: array
          items:
            type: string
          description: 重定向URI列表列表。
        allowed_origins:
          type: array
          items:
            type: string
          description: 允许来源列表。
        scopes:
          type: array
          items:
            type: string
          description: 权限范围列表。
        expected_state_version:
          type: string
          description: 用于乐观并发控制的预期状态版本。请原样复制当前版本，不要经 JavaScript Number 转换而损失精度。
        jwks:
          $ref: "#/components/schemas/OAuthClientJWKSet"
          description: JSON Web 公钥集。
        network_policy:
          allOf:
            - $ref: "#/components/schemas/IPAccessPolicy"
          description: 省略时保留当前策略；传入空策略时移除限制。
        quota_policy:
          allOf:
            - $ref: "#/components/schemas/ApplicationQuotaPolicy"
          description: 省略时保留当前策略；传入空策略时移除应用级限制。
      description: 更新接入应用的请求结构。
    UpdateSourceControlProviderCredentialRequest:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        provider_api_credential_binding_reference:
          type: string
          description: clear 为 false 时必填，且仅在写入时接受。
        expected_provider_api_credential_generation:
          type: string
          description: 预期服务商API凭据代次。
        clear:
          type: boolean
          description: 清除。
      description: 更新源码服务商 API 凭据的请求结构。
    UpdateSourceRepositoryGrantRequest:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 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: 访问模式。
          x-enum-descriptions:
            REPOSITORY_ACCESS_MODE_UNSPECIFIED: 未指定
            REPOSITORY_ACCESS_MODE_READ: 读取
            REPOSITORY_ACCESS_MODE_WRITE: 写入
            REPOSITORY_ACCESS_MODE_PUBLISH: 发布
        allowed_ref_patterns:
          type: array
          items:
            type: string
          description: 允许引用匹配模式列表。
        denied_ref_patterns:
          type: array
          items:
            type: string
          description: 已拒绝引用匹配模式列表。
        allow_submodules:
          type: boolean
          description: 允许Git子模块。
        allow_lfs:
          type: boolean
          description: 允许Git-LFS。
        publication_policy_ref:
          type: string
          description: 发布策略引用。
        expected_state_version:
          type: string
          description: 用于乐观并发控制的预期状态版本。请原样复制当前版本，不要经 JavaScript Number 转换而损失精度。
      description: 更新仓库访问授权的请求结构。
    UsageQuotaAmounts:
      type: object
      properties:
        total_tokens:
          type: string
          description: 总计Token。
        model_cost_microunits:
          type: string
          description: 模型成本微单位。
        compute_ms:
          type: string
          description: 计算毫秒。
        gpu_ms:
          type: string
          description: GPU毫秒。
        storage_byte_seconds:
          type: string
          description: 存储字节秒。
        artifact_egress_bytes:
          type: string
          description: 产物出站字节。
        network_ingress_bytes:
          type: string
          description: 网络入站字节。
        network_egress_bytes:
          type: string
          description: 网络出站字节。
        relay_bytes:
          type: string
          description: 中继字节。
      description: 用量配额金额结构。
    VerifySourceControlProviderAccessRequest:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      description: 验证源码服务商访问能力的请求结构。
    VerifySourceRepositoryRequest:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      description: 验证源码仓库的请求结构。
    WebhookDelivery:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        subscription_id:
          type: string
          description: 订阅标识符。
        event_id:
          type: string
          description: 事件标识符。
        event_type:
          type: string
          description: 事件类型。
        subject:
          type: string
          description: 主体。
        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: 状态。
          x-enum-descriptions:
            WEBHOOK_DELIVERY_STATUS_UNSPECIFIED: 未指定
            WEBHOOK_DELIVERY_STATUS_PENDING: 待处理
            WEBHOOK_DELIVERY_STATUS_DELIVERING: 投递中
            WEBHOOK_DELIVERY_STATUS_SUCCEEDED: 成功
            WEBHOOK_DELIVERY_STATUS_FAILED: 失败
            WEBHOOK_DELIVERY_STATUS_DEAD: 投递已停止
        attempts:
          type: integer
          format: int32
          description: 尝试。
        response_status:
          type: integer
          format: int32
          description: 响应状态。
        last_error:
          type: string
          description: 最近错误。
        available_at:
          type: string
          format: date-time
          description: 可用时间，使用 RFC 3339 时间格式。
        delivered_at:
          type: string
          format: date-time
          description: 交付时间，使用 RFC 3339 时间格式。
        created_at:
          type: string
          format: date-time
          description: 创建时间，使用 RFC 3339 时间格式。
        updated_at:
          type: string
          format: date-time
          description: 更新时间，使用 RFC 3339 时间格式。
        is_test:
          type: boolean
          description: 是否测试。
        event_json:
          type: string
          description: 仅 GetWebhookDelivery 的详情响应返回，摘要列表不返回。
        attempt_history:
          type: array
          items:
            $ref: "#/components/schemas/WebhookDeliveryAttempt"
          description: 尝试历史列表。
        delivery_state:
          type: string
          description: 可扩展的持久化状态，包括 outcome_unknown；旧版 status 字段继续保持兼容。
      description: Webhook 投递结构。
    WebhookDeliveryAttempt:
      type: object
      properties:
        number:
          type: integer
          format: int32
          description: 编号。
        status:
          type: string
          description: 状态。
        response_status:
          type: integer
          format: int32
          description: 响应状态。
        error_code:
          type: string
          description: 错误代码。
        started_at:
          type: string
          format: date-time
          description: 启动时间，使用 RFC 3339 时间格式。
        finished_at:
          type: string
          format: date-time
          description: 完成时间，使用 RFC 3339 时间格式。
      description: Webhook投递尝试结构。
    WebhookEventType:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        label:
          type: string
          description: 标签。
        description:
          type: string
          description: 说明。
        example_json:
          type: string
          description: 示例JSON。
        family:
          type: string
          description: 分类。
        required_permission:
          type: string
          description: 必需权限。
        resource_types:
          type: array
          items:
            type: string
          description: 资源类型列表。
        tenant_only:
          type: boolean
          description: 租户仅。
      description: Webhook事件类型结构。
    WebhookResource:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        resource_type:
          type: string
          description: 资源类型。
        label:
          type: string
          description: 标签。
        workspace_id:
          type: string
          description: 工作空间标识。工作空间是持续协作上下文，与按任务使用的工作树不同。
      description: Webhook资源结构。
    WebhookSigningCredential:
      type: object
      properties:
        subscription:
          $ref: "#/components/schemas/WebhookSubscription"
          description: 订阅。
        signing_secret:
          type: string
          description: 仅在创建或轮换时返回一次，不进入列表、SSE、审计或投递记录。
      description: Webhook签名凭据结构。
    WebhookSubscription:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        tenant_id:
          type: string
          description: 与已认证的访问上下文配合使用的租户标识；提供标识并不授予访问权。
        policy_scope_id:
          type: string
          description: 策略权限范围标识符。
        name:
          type: string
          description: 名称。
        endpoint_url:
          type: string
          description: 端点URL。
        event_types:
          type: array
          items:
            type: string
          description: 事件类型列表。
        secret_ref:
          type: string
          description: 不透明的 Secret 引用，不能填入凭据原文。
        deployment_id:
          type: string
          description: Agent 服务配置的标识，指应用可调用的服务配置。
        status:
          enum:
            - WEBHOOK_SUBSCRIPTION_STATUS_UNSPECIFIED
            - WEBHOOK_SUBSCRIPTION_STATUS_ACTIVE
            - WEBHOOK_SUBSCRIPTION_STATUS_DISABLED
          type: string
          format: enum
          description: 状态。
          x-enum-descriptions:
            WEBHOOK_SUBSCRIPTION_STATUS_UNSPECIFIED: 未指定
            WEBHOOK_SUBSCRIPTION_STATUS_ACTIVE: 已启用
            WEBHOOK_SUBSCRIPTION_STATUS_DISABLED: 已停用
        state_version:
          type: string
          description: 用于乐观并发控制的状态版本，须保留精确的十进制表示。
        created_by:
          type: string
          description: 创建操作者。
        created_at:
          type: string
          format: date-time
          description: 创建时间，使用 RFC 3339 时间格式。
        updated_at:
          type: string
          format: date-time
          description: 更新时间，使用 RFC 3339 时间格式。
        goal_id:
          type: string
          description: 目标标识符。
        previous_key_valid_until:
          type: string
          format: date-time
          description: 先前键有效截止时间，使用 RFC 3339 时间格式。
        tenant_wide:
          type: boolean
          description: 租户全域。
        workspace_id:
          type: string
          description: 工作空间标识。工作空间是持续协作上下文，与按任务使用的工作树不同。
        resource_type:
          type: string
          description: 资源类型。
        resource_id:
          type: string
          description: 资源标识符。
      description: Webhook 订阅结构。
    WorkspaceRepositoryBinding:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        tenant_id:
          type: string
          description: 与已认证的访问上下文配合使用的租户标识；提供标识并不授予访问权。
        workspace_id:
          type: string
          description: 工作空间标识。工作空间是持续协作上下文，与按任务使用的工作树不同。
        repository_id:
          type: string
          description: 仓库标识符。
        key:
          type: string
          description: 键。
        mount_path:
          type: string
          description: 挂载路径。
        source_ref:
          type: string
          description: 来源引用。
        resolved_commit:
          type: string
          description: 已解析提交。
        primary:
          type: boolean
          description: 主。
        state_version:
          type: string
          description: 用于乐观并发控制的状态版本，须保留精确的十进制表示。
        resolved_at:
          type: string
          format: date-time
          description: 已解析时间，使用 RFC 3339 时间格式。
        created_by:
          type: string
          description: 创建操作者。
        archived_at:
          type: string
          format: date-time
          description: 归档时间，使用 RFC 3339 时间格式。
        created_at:
          type: string
          format: date-time
          description: 创建时间，使用 RFC 3339 时间格式。
        updated_at:
          type: string
          format: date-time
          description: 更新时间，使用 RFC 3339 时间格式。
        repository:
          $ref: "#/components/schemas/SourceRepository"
          description: 仓库。
        repository_grant_id:
          type: string
          description: 仓库授权标识符。
        access_mode:
          enum:
            - REPOSITORY_ACCESS_MODE_UNSPECIFIED
            - REPOSITORY_ACCESS_MODE_READ
            - REPOSITORY_ACCESS_MODE_WRITE
            - REPOSITORY_ACCESS_MODE_PUBLISH
          type: string
          format: enum
          description: 访问模式。
          x-enum-descriptions:
            REPOSITORY_ACCESS_MODE_UNSPECIFIED: 未指定
            REPOSITORY_ACCESS_MODE_READ: 读取
            REPOSITORY_ACCESS_MODE_WRITE: 写入
            REPOSITORY_ACCESS_MODE_PUBLISH: 发布
        grant_state_version:
          type: string
          description: 授权状态版本。
        repository_grant:
          $ref: "#/components/schemas/SourceRepositoryGrant"
          description: 仓库授权。
        resolved_ref:
          type: string
          description: 已解析引用。
      description: 工作空间仓库绑定结构。
tags:
  - name: AutomationService
    x-displayName: 自动化与消息渠道
    description: 自动化与消息渠道相关操作。
  - name: EdgeResourceService
    x-displayName: 边缘资源
    description: 边缘资源相关操作。
  - name: IntegrationService
    x-displayName: OAuth 应用
    description: OAuth 应用相关操作。
  - name: SourceControlService
    x-displayName: 源码管理
    description: 源码管理相关操作。
  - name: WebhookService
    x-displayName: 对外 Webhook
    description: 对外 Webhook相关操作。
