# 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 A2A 与 MCP 管理 API
  version: 1.0.0
  description: A2A 与 MCP 管理的公开 v1 应用接口契约。协议生命周期与能力可用状态见集成指南。
servers:
  - url: https://api.orbitspace.dev
security:
  - bearerAuth: []
paths:
  /api/v1/a2a/agents:
    get:
      tags:
        - A2AAdminService
      operationId: A2AAdminService_ListA2AAgentPublications
      parameters:
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: 请求的每页条数，受接口上限约束。
        - name: page_token
          in: query
          schema:
            type: string
          description: 上一页返回的不透明分页令牌，请勿自行构造或修改。
        - name: include_disabled
          in: query
          schema:
            type: boolean
          description: 包括停用。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListA2AAgentPublicationsResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 列出A2A Agent 发布配置
      description: 列出A2A Agent 发布配置。 如需继续读取结果，请使用接口声明的分页参数。
    post:
      tags:
        - A2AAdminService
      operationId: A2AAdminService_CreateA2AAgentPublication
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateA2AAgentPublicationRequest"
        required: true
        description: 创建A2A Agent 发布配置的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/A2AAgentPublication"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 创建A2A Agent 发布配置
      description: 创建A2A Agent 发布配置。 请求字段应遵循下方的 Schema。
  /api/v1/a2a/agents/{id}:
    get:
      tags:
        - A2AAdminService
      operationId: A2AAdminService_GetA2AAgentPublication
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/A2AAgentPublication"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 读取A2A Agent 发布配置
      description: 读取A2A Agent 发布配置。
  /api/v1/a2a/agents/{id}:disable:
    post:
      tags:
        - A2AAdminService
      operationId: A2AAdminService_DisableA2AAgentPublication
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DisableA2AAgentPublicationRequest"
        required: true
        description: 停用A2A Agent 发布配置的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/A2AAgentPublication"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 停用A2A Agent 发布配置
      description: 停用A2A Agent 发布配置。 请求字段应遵循下方的 Schema。
  /api/v1/a2a/agents/{id}:enable:
    post:
      tags:
        - A2AAdminService
      operationId: A2AAdminService_EnableA2AAgentPublication
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/EnableA2AAgentPublicationRequest"
        required: true
        description: 启用A2A Agent 发布配置的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/A2AAgentPublication"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 启用A2A Agent 发布配置
      description: 启用A2A Agent 发布配置。 请求字段应遵循下方的 Schema。
  /api/v1/a2a/remote-agents:
    get:
      tags:
        - A2AAdminService
      operationId: A2AAdminService_ListRemoteA2AAgents
      parameters:
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: 请求的每页条数，受接口上限约束。
        - name: page_token
          in: query
          schema:
            type: string
          description: 上一页返回的不透明分页令牌，请勿自行构造或修改。
        - name: include_disabled
          in: query
          schema:
            type: boolean
          description: 包括停用。
        - name: query
          in: query
          schema:
            type: string
          description: 查询。
        - name: skill
          in: query
          schema:
            type: string
          description: Skill 技能配置。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListRemoteA2AAgentsResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 列出远端 A2A Agent
      description: 列出远端 A2A Agent。 如需继续读取结果，请使用接口声明的分页参数。
    post:
      tags:
        - A2AAdminService
      operationId: A2AAdminService_RegisterRemoteA2AAgent
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RegisterRemoteA2AAgentRequest"
        required: true
        description: 登记远端 A2A Agent的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RemoteA2AAgent"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 登记远端 A2A Agent
      description: 登记远端 A2A Agent。 请求字段应遵循下方的 Schema。
  /api/v1/a2a/remote-agents/{id}:
    get:
      tags:
        - A2AAdminService
      operationId: A2AAdminService_GetRemoteA2AAgent
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RemoteA2AAgent"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 读取远端 A2A Agent
      description: 读取远端 A2A Agent。
  /api/v1/a2a/remote-agents/{id}:disable:
    post:
      tags:
        - A2AAdminService
      operationId: A2AAdminService_DisableRemoteA2AAgent
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DisableRemoteA2AAgentRequest"
        required: true
        description: 停用远端 A2A Agent的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RemoteA2AAgent"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 停用远端 A2A Agent
      description: 停用远端 A2A Agent。 请求字段应遵循下方的 Schema。
  /api/v1/a2a/remote-agents/{id}:enable:
    post:
      tags:
        - A2AAdminService
      operationId: A2AAdminService_EnableRemoteA2AAgent
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/EnableRemoteA2AAgentRequest"
        required: true
        description: 启用远端 A2A Agent的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RemoteA2AAgent"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 启用远端 A2A Agent
      description: 启用远端 A2A Agent。 请求字段应遵循下方的 Schema。
  /api/v1/a2a/remote-agents/{id}:refresh:
    post:
      tags:
        - A2AAdminService
      operationId: A2AAdminService_RefreshRemoteA2AAgent
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RefreshRemoteA2AAgentRequest"
        required: true
        description: 刷新远端 A2A Agent的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RemoteA2AAgent"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 刷新远端 A2A Agent
      description: 刷新远端 A2A Agent。 请求字段应遵循下方的 Schema。
  /api/v1/a2a/remote-invocations/{id}:
    get:
      tags:
        - A2AAdminService
      operationId: A2AAdminService_GetRemoteA2AInvocation
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RemoteA2AInvocation"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 读取远端 A2A 调用
      description: 读取远端 A2A 调用。
  /api/v1/mcp-discoveries/{id}:
    get:
      tags:
        - MCPService
      operationId: MCPService_GetMCPDiscovery
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MCPDiscovery"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 读取MCP 工具发现任务
      description: 读取MCP 工具发现任务。
  /api/v1/mcp-discoveries/{id}:cancel:
    post:
      tags:
        - MCPService
      operationId: MCPService_CancelMCPDiscovery
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CancelMCPDiscoveryRequest"
        required: true
        description: 取消MCP 工具发现任务的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MCPDiscovery"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 取消MCP 工具发现任务
      description: 取消MCP 工具发现任务。 请求字段应遵循下方的 Schema。
  /api/v1/mcp-oauth/callback:
    post:
      tags:
        - MCPService
      operationId: MCPService_CompleteMCPOAuth
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CompleteMCPOAuthRequest"
        required: true
        description: 完成MCP OAuth 授权的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MCPOAuthStatus"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 完成MCP OAuth 授权
      description: 完成MCP OAuth 授权。 请求字段应遵循下方的 Schema。
  /api/v1/mcp-servers/{registry_resource_id}/discoveries:
    get:
      tags:
        - MCPService
      operationId: MCPService_ListMCPDiscoveries
      parameters:
        - name: registry_resource_id
          in: path
          required: true
          schema:
            type: string
          description: 注册表资源标识符。
        - name: registry_version_id
          in: query
          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/ListMCPDiscoveriesResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 列出MCP 工具发现记录
      description: 列出MCP 工具发现记录。 如需继续读取结果，请使用接口声明的分页参数。
    post:
      tags:
        - MCPService
      operationId: MCPService_RequestMCPDiscovery
      parameters:
        - name: registry_resource_id
          in: path
          required: true
          schema:
            type: string
          description: 注册表资源标识符。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RequestMCPDiscoveryRequest"
        required: true
        description: 申请MCP 工具发现任务的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MCPDiscovery"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 申请MCP 工具发现任务
      description: 请求发现所选 MCP 连接的工具目录。发现操作读取工具定义，不执行工具；连接授权与后续工具执行审批是独立步骤。
  /api/v1/mcp-servers/{registry_resource_id}/health:
    get:
      tags:
        - MCPService
      operationId: MCPService_GetMCPHealth
      parameters:
        - name: registry_resource_id
          in: path
          required: true
          schema:
            type: string
          description: 注册表资源标识符。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MCPHealth"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 读取MCP 连接健康状态
      description: 读取MCP 连接健康状态。
    put:
      tags:
        - MCPService
      operationId: MCPService_UpdateMCPHealth
      parameters:
        - name: registry_resource_id
          in: path
          required: true
          schema:
            type: string
          description: 注册表资源标识符。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateMCPHealthRequest"
        required: true
        description: 更新MCP 连接健康状态的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MCPHealth"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 更新MCP 连接健康状态
      description: 更新MCP 连接健康状态。 请求字段应遵循下方的 Schema。
  /api/v1/mcp-servers/{registry_resource_id}/oauth:
    get:
      tags:
        - MCPService
      operationId: MCPService_GetMCPOAuthStatus
      parameters:
        - name: registry_resource_id
          in: path
          required: true
          schema:
            type: string
          description: 注册表资源标识符。
        - name: registry_version_id
          in: query
          schema:
            type: string
          description: 注册表版本标识符。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MCPOAuthStatus"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 读取MCP OAuth 授权状态
      description: 读取MCP OAuth 授权状态。
  /api/v1/mcp-servers/{registry_resource_id}/oauth:authorize:
    post:
      tags:
        - MCPService
      operationId: MCPService_BeginMCPOAuth
      parameters:
        - name: registry_resource_id
          in: path
          required: true
          schema:
            type: string
          description: 注册表资源标识符。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/BeginMCPOAuthRequest"
        required: true
        description: 开始MCP OAuth 授权的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BeginMCPOAuthResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 开始MCP OAuth 授权
      description: 为所选 MCP 连接开始 OAuth 授权。打开返回的授权 URL，在服务提供方完成同意。生成的授权适用于声明的项目范围。
  /api/v1/mcp-servers/{registry_resource_id}/oauth:discover:
    post:
      tags:
        - MCPService
      operationId: MCPService_InspectMCPOAuth
      parameters:
        - name: registry_resource_id
          in: path
          required: true
          schema:
            type: string
          description: 注册表资源标识符。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/InspectMCPOAuthRequest"
        required: true
        description: 检查MCP OAuth 授权的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/InspectMCPOAuthResponse"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 检查MCP OAuth 授权
      description: 检查MCP OAuth 授权。 请求字段应遵循下方的 Schema。
  /api/v1/mcp-servers/{registry_resource_id}/oauth:revoke:
    post:
      tags:
        - MCPService
      operationId: MCPService_RevokeMCPOAuth
      parameters:
        - name: registry_resource_id
          in: path
          required: true
          schema:
            type: string
          description: 注册表资源标识符。
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RevokeMCPOAuthRequest"
        required: true
        description: 撤销MCP OAuth 授权的请求体。
      responses:
        "200":
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MCPOAuthStatus"
        default:
          description: RFC 9457 格式的错误详情。
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: 撤销MCP OAuth 授权
      description: 撤销MCP OAuth 授权。 请求字段应遵循下方的 Schema。
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
  schemas:
    A2AAgentPublication:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        tenant_id:
          type: string
          description: 与已认证的访问上下文配合使用的租户标识；提供标识并不授予访问权。
        agent_version_id:
          type: string
          description: Agent版本标识符。
        environment_version_id:
          type: string
          description: 执行环境版本标识符。
        name:
          type: string
          description: 名称。
        description:
          type: string
          description: 说明。
        card_version:
          type: string
          description: Agent卡片版本。
        documentation_url:
          type: string
          description: 文档URL。
        icon_url:
          type: string
          description: 图标URL。
        default_input_modes:
          type: array
          items:
            type: string
          description: 默认输入模式列表。
        default_output_modes:
          type: array
          items:
            type: string
          description: 默认输出模式列表。
        skills:
          type: array
          items:
            $ref: "#/components/schemas/A2AAgentSkill"
          description: Skill列表。
        enabled:
          type: boolean
          description: 已启用。
        state_version:
          type: string
          description: 用于乐观并发控制的状态版本，须保留精确的十进制表示。
        content_digest:
          type: string
          description: 内容摘要。
        agent_card_path:
          type: string
          description: AgentAgent卡片路径。
        interface_path:
          type: string
          description: 接口路径。
        created_at:
          type: string
          format: date-time
          description: 创建时间，使用 RFC 3339 时间格式。
        updated_at:
          type: string
          format: date-time
          description: 更新时间，使用 RFC 3339 时间格式。
        policy_scope_id:
          type: string
          description: 策略权限范围标识符。
      description: A2A Agent 发布配置结构。
    A2AAgentSkill:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        name:
          type: string
          description: 名称。
        description:
          type: string
          description: 说明。
        tags:
          type: array
          items:
            type: string
          description: 标签列表。
        examples:
          type: array
          items:
            type: string
          description: 示例列表。
        input_modes:
          type: array
          items:
            type: string
          description: 输入模式列表。
        output_modes:
          type: array
          items:
            type: string
          description: 输出模式列表。
      description: A2AAgentSkill结构。
    BeginMCPOAuthRequest:
      type: object
      properties:
        registry_resource_id:
          type: string
          description: 注册表资源标识符。
        registry_version_id:
          type: string
          description: 注册表版本标识符。
        issuer:
          type: string
          description: 签发方。
        scopes:
          type: array
          items:
            type: string
          description: 权限范围列表。
        project_consent:
          type: boolean
          description: 明确同意将本次授权共享给当前项目的 Agent 使用。
      description: 开始MCP OAuth 授权的请求结构。
    BeginMCPOAuthResponse:
      type: object
      properties:
        authorization_url:
          type: string
          description: 授权URL。
        session_id:
          type: string
          description: 会话标识符。
        expires_at:
          type: string
          format: date-time
          description: 到期时间，使用 RFC 3339 时间格式。
      description: 开始MCP OAuth 授权的响应结构。
    CancelMCPDiscoveryRequest:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
      description: 取消MCP 工具发现任务的请求结构。
    CompleteMCPOAuthRequest:
      type: object
      properties:
        state:
          type: string
          description: 状态。
        code:
          type: string
          description: 代码。
        issuer:
          type: string
          description: 签发方。
        error:
          type: string
          description: 错误。
      description: 完成MCP OAuth 授权的请求结构。
    CreateA2AAgentPublicationRequest:
      type: object
      properties:
        agent_version_id:
          type: string
          description: Agent版本标识符。
        environment_version_id:
          type: string
          description: 执行环境版本标识符。
        name:
          type: string
          description: 名称。
        description:
          type: string
          description: 说明。
        card_version:
          type: string
          description: Agent卡片版本。
        documentation_url:
          type: string
          description: 文档URL。
        icon_url:
          type: string
          description: 图标URL。
        default_input_modes:
          type: array
          items:
            type: string
          description: 默认输入模式列表。
        default_output_modes:
          type: array
          items:
            type: string
          description: 默认输出模式列表。
        skills:
          type: array
          items:
            $ref: "#/components/schemas/A2AAgentSkill"
          description: Skill列表。
        policy_scope_id:
          type: string
          description: 策略权限范围标识符。
      description: 创建A2A Agent 发布配置的请求结构。
    DisableA2AAgentPublicationRequest:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        expected_state_version:
          type: string
          description: 用于乐观并发控制的预期状态版本。请原样复制当前版本，不要经 JavaScript Number 转换而损失精度。
      description: 停用A2A Agent 发布配置的请求结构。
    DisableRemoteA2AAgentRequest:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        expected_state_version:
          type: string
          description: 用于乐观并发控制的预期状态版本。请原样复制当前版本，不要经 JavaScript Number 转换而损失精度。
      description: 停用远端 A2A Agent的请求结构。
    EnableA2AAgentPublicationRequest:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        expected_state_version:
          type: string
          description: 用于乐观并发控制的预期状态版本。请原样复制当前版本，不要经 JavaScript Number 转换而损失精度。
      description: 启用A2A Agent 发布配置的请求结构。
    EnableRemoteA2AAgentRequest:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        expected_state_version:
          type: string
          description: 用于乐观并发控制的预期状态版本。请原样复制当前版本，不要经 JavaScript Number 转换而损失精度。
      description: 启用远端 A2A Agent的请求结构。
    InspectMCPOAuthRequest:
      type: object
      properties:
        registry_resource_id:
          type: string
          description: 注册表资源标识符。
        registry_version_id:
          type: string
          description: 注册表版本标识符。
        issuer:
          type: string
          description: 签发方。
      description: 检查MCP OAuth 授权的请求结构。
    InspectMCPOAuthResponse:
      type: object
      properties:
        issuers:
          type: array
          items:
            type: string
          description: 签发方列表。
        scopes:
          type: array
          items:
            type: string
          description: 权限范围列表。
        required_scopes:
          type: array
          items:
            type: string
          description: 必需权限范围列表。
        resource:
          type: string
          description: 资源。
        redirect_uri:
          type: string
          description: 重定向URI。
        client_metadata_uri:
          type: string
          description: 客户端元数据URI。
        selected_issuer:
          type: string
          description: 所选签发方。
      description: 检查MCP OAuth 授权的响应结构。
    ListA2AAgentPublicationsResponse:
      type: object
      properties:
        publications:
          type: array
          items:
            $ref: "#/components/schemas/A2AAgentPublication"
          description: 发布列表。
        next_page_token:
          type: string
          description: 下一页的分页令牌；为空表示没有下一页。
      description: 列出A2A Agent 发布配置的响应结构。
    ListMCPDiscoveriesResponse:
      type: object
      properties:
        discoveries:
          type: array
          items:
            $ref: "#/components/schemas/MCPDiscovery"
          description: 发现记录列表。
        next_page_token:
          type: string
          description: 下一页的分页令牌；为空表示没有下一页。
        latest_successful:
          $ref: "#/components/schemas/MCPDiscovery"
          description: 最新成功。
      description: 列出MCP 工具发现记录的响应结构。
    ListRemoteA2AAgentsResponse:
      type: object
      properties:
        agents:
          type: array
          items:
            $ref: "#/components/schemas/RemoteA2AAgent"
          description: Agent列表。
        next_page_token:
          type: string
          description: 下一页的分页令牌；为空表示没有下一页。
      description: 列出远端 A2A Agent的响应结构。
    MCPDiscovery:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        tenant_id:
          type: string
          description: 与已认证的访问上下文配合使用的租户标识；提供标识并不授予访问权。
        policy_scope_id:
          type: string
          description: 策略权限范围标识符。
        registry_resource_id:
          type: string
          description: 注册表资源标识符。
        registry_version_id:
          type: string
          description: 注册表版本标识符。
        configuration_digest:
          type: string
          description: 配置摘要。
        status:
          enum:
            - MCP_DISCOVERY_STATUS_UNSPECIFIED
            - MCP_DISCOVERY_STATUS_QUEUED
            - MCP_DISCOVERY_STATUS_RUNNING
            - MCP_DISCOVERY_STATUS_SUCCEEDED
            - MCP_DISCOVERY_STATUS_FAILED
            - MCP_DISCOVERY_STATUS_CANCELLED
          type: string
          format: enum
          description: 状态。
          x-enum-descriptions:
            MCP_DISCOVERY_STATUS_UNSPECIFIED: 未指定
            MCP_DISCOVERY_STATUS_QUEUED: 排队中
            MCP_DISCOVERY_STATUS_RUNNING: 执行中
            MCP_DISCOVERY_STATUS_SUCCEEDED: 成功
            MCP_DISCOVERY_STATUS_FAILED: 失败
            MCP_DISCOVERY_STATUS_CANCELLED: 已取消
        attempt:
          type: string
          description: 尝试。
        catalog_digest:
          type: string
          description: 目录摘要。
        catalog:
          type: object
          description: 目录。
        error_code:
          type: string
          description: 错误代码。
        error_message:
          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 时间格式。
        completed_at:
          type: string
          format: date-time
          description: 已完成时间，使用 RFC 3339 时间格式。
        task_id:
          type: string
          description: 任务标识，不能用一次执行的 Run ID 替代。
      description: MCP 工具发现任务结构。
    MCPHealth:
      type: object
      properties:
        registry_resource_id:
          type: string
          description: 注册表资源标识符。
        registry_version_id:
          type: string
          description: 注册表版本标识符。
        enabled:
          type: boolean
          description: 已启用。
        interval_seconds:
          type: integer
          format: int32
          description: 间隔秒。
        generation:
          type: string
          description: 代次。
        status:
          type: string
          description: 状态。
        consecutive_failures:
          type: string
          description: 连续失败。
        discovery_id:
          type: string
          description: 发现标识符。
        last_checked_at:
          type: string
          format: date-time
          description: 最近检查时间，使用 RFC 3339 时间格式。
        last_successful_at:
          type: string
          format: date-time
          description: 最近成功时间，使用 RFC 3339 时间格式。
        next_check_at:
          type: string
          format: date-time
          description: 下一检查时间，使用 RFC 3339 时间格式。
        error_code:
          type: string
          description: 错误代码。
        updated_at:
          type: string
          format: date-time
          description: 更新时间，使用 RFC 3339 时间格式。
      description: 对某个不可变连接修订显式设置的可变监控策略，不修改 Environment 已固定的工具目录。
    MCPOAuthStatus:
      type: object
      properties:
        registry_resource_id:
          type: string
          description: 注册表资源标识符。
        registry_version_id:
          type: string
          description: 注册表版本标识符。
        status:
          type: string
          description: 状态。
        generation:
          type: string
          description: 代次。
        issuer:
          type: string
          description: 签发方。
        resource:
          type: string
          description: 资源。
        scopes:
          type: array
          items:
            type: string
          description: 权限范围列表。
        access_expires_at:
          type: string
          format: date-time
          description: 访问到期时间，使用 RFC 3339 时间格式。
        authorized_at:
          type: string
          format: date-time
          description: 授权时间，使用 RFC 3339 时间格式。
        authorized_by:
          type: string
          description: 授权操作者。
        error_code:
          type: string
          description: 错误代码。
        remote_revocation:
          type: string
          description: 远端撤销。
      description: MCP OAuth 授权状态结构。
    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: 请求标识符。
    RefreshRemoteA2AAgentRequest:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        expected_state_version:
          type: string
          description: 用于乐观并发控制的预期状态版本。请原样复制当前版本，不要经 JavaScript Number 转换而损失精度。
      description: 刷新远端 A2A Agent的请求结构。
    RegisterRemoteA2AAgentRequest:
      type: object
      properties:
        card_url:
          type: string
          description: Agent卡片URL。
        credential_reference:
          type: string
          description: 凭据引用。
        require_signed_card:
          type: boolean
          description: 要求已签名Agent卡片。
      description: 登记远端 A2A Agent的请求结构。
    RemoteA2AAgent:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        tenant_id:
          type: string
          description: 与已认证的访问上下文配合使用的租户标识；提供标识并不授予访问权。
        card_url:
          type: string
          description: Agent卡片URL。
        name:
          type: string
          description: 名称。
        description:
          type: string
          description: 说明。
        version:
          type: string
          description: 版本。
        documentation_url:
          type: string
          description: 文档URL。
        icon_url:
          type: string
          description: 图标URL。
        interface_url:
          type: string
          description: 接口URL。
        interface_tenant:
          type: string
          description: 接口租户。
        protocol_binding:
          type: string
          description: 协议绑定。
        protocol_version:
          type: string
          description: 协议版本。
        default_input_modes:
          type: array
          items:
            type: string
          description: 默认输入模式列表。
        default_output_modes:
          type: array
          items:
            type: string
          description: 默认输出模式列表。
        skills:
          type: array
          items:
            $ref: "#/components/schemas/A2AAgentSkill"
          description: Skill列表。
        credential_reference:
          type: string
          description: 凭据引用。
        require_signed_card:
          type: boolean
          description: 要求已签名Agent卡片。
        signature_status:
          enum:
            - REMOTE_A2A_AGENT_SIGNATURE_STATUS_UNSPECIFIED
            - REMOTE_A2A_AGENT_SIGNATURE_STATUS_UNSIGNED
            - REMOTE_A2A_AGENT_SIGNATURE_STATUS_VERIFIED
          type: string
          format: enum
          description: 签名状态。
          x-enum-descriptions:
            REMOTE_A2A_AGENT_SIGNATURE_STATUS_UNSPECIFIED: 未指定
            REMOTE_A2A_AGENT_SIGNATURE_STATUS_UNSIGNED: 未签名
            REMOTE_A2A_AGENT_SIGNATURE_STATUS_VERIFIED: 已验证
        signature_key_id:
          type: string
          description: 签名密钥标识符。
        card_digest:
          type: string
          description: Agent卡片摘要。
        enabled:
          type: boolean
          description: 已启用。
        state_version:
          type: string
          description: 用于乐观并发控制的状态版本，须保留精确的十进制表示。
        card_fetched_at:
          type: string
          format: date-time
          description: Agent卡片获取时间，使用 RFC 3339 时间格式。
        created_at:
          type: string
          format: date-time
          description: 创建时间，使用 RFC 3339 时间格式。
        updated_at:
          type: string
          format: date-time
          description: 更新时间，使用 RFC 3339 时间格式。
      description: 远端 A2A Agent结构。
    RemoteA2AInvocation:
      type: object
      properties:
        id:
          type: string
          description: 当前 Schema 或 URL 所指资源的标识。
        tenant_id:
          type: string
          description: 与已认证的访问上下文配合使用的租户标识；提供标识并不授予访问权。
        remote_agent_id:
          type: string
          description: 远端Agent标识符。
        task_id:
          type: string
          description: 任务标识，不能用一次执行的 Run ID 替代。
        run_id:
          type: string
          description: 关联任务的一次执行 Run 的标识。
        tool_call_id:
          type: string
          description: 工具调用标识符。
        message_id:
          type: string
          description: 消息标识符。
        requested_context_id:
          type: string
          description: 请求上下文标识符。
        remote_task_id:
          type: string
          description: 远端任务标识符。
        remote_context_id:
          type: string
          description: 远端上下文标识符。
        status:
          enum:
            - REMOTE_A2A_INVOCATION_STATUS_UNSPECIFIED
            - REMOTE_A2A_INVOCATION_STATUS_PENDING
            - REMOTE_A2A_INVOCATION_STATUS_SUBMITTED
            - REMOTE_A2A_INVOCATION_STATUS_WORKING
            - REMOTE_A2A_INVOCATION_STATUS_INPUT_REQUIRED
            - REMOTE_A2A_INVOCATION_STATUS_AUTH_REQUIRED
            - REMOTE_A2A_INVOCATION_STATUS_COMPLETED
            - REMOTE_A2A_INVOCATION_STATUS_FAILED
            - REMOTE_A2A_INVOCATION_STATUS_CANCELLED
            - REMOTE_A2A_INVOCATION_STATUS_REJECTED
            - REMOTE_A2A_INVOCATION_STATUS_OUTCOME_UNKNOWN
          type: string
          format: enum
          description: 状态。
          x-enum-descriptions:
            REMOTE_A2A_INVOCATION_STATUS_UNSPECIFIED: 未指定
            REMOTE_A2A_INVOCATION_STATUS_PENDING: 待处理
            REMOTE_A2A_INVOCATION_STATUS_SUBMITTED: 已提交
            REMOTE_A2A_INVOCATION_STATUS_WORKING: 处理中
            REMOTE_A2A_INVOCATION_STATUS_INPUT_REQUIRED: 等待输入
            REMOTE_A2A_INVOCATION_STATUS_AUTH_REQUIRED: 需要认证
            REMOTE_A2A_INVOCATION_STATUS_COMPLETED: 已完成
            REMOTE_A2A_INVOCATION_STATUS_FAILED: 失败
            REMOTE_A2A_INVOCATION_STATUS_CANCELLED: 已取消
            REMOTE_A2A_INVOCATION_STATUS_REJECTED: 已拒绝
            REMOTE_A2A_INVOCATION_STATUS_OUTCOME_UNKNOWN: 结果未知
        response_json:
          type: string
          format: bytes
          description: 响应JSON，使用 Base64 编码。
        last_error:
          type: string
          description: 最近错误。
        attempt_count:
          type: integer
          format: int32
          description: 尝试数量。
        state_version:
          type: string
          description: 用于乐观并发控制的状态版本，须保留精确的十进制表示。
        deadline:
          type: string
          format: date-time
          description: 截止时间，使用 RFC 3339 时间格式。
        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 时间格式。
        requested_task_id:
          type: string
          description: 请求任务标识符。
      description: 远端 A2A 调用结构。
    RequestMCPDiscoveryRequest:
      type: object
      properties:
        registry_resource_id:
          type: string
          description: 注册表资源标识符。
        registry_version_id:
          type: string
          description: 注册表版本标识符。
        idempotency_key:
          type: string
          description: 本次操作的幂等键，仅在重试同一次、同内容的提交时复用。
        workspace_id:
          type: string
          description: 工作空间标识。工作空间是持续协作上下文，与按任务使用的工作树不同。
        workspace_agent_binding_id:
          type: string
          description: 所选工作空间中的 Agent 绑定标识。
      description: 申请MCP 工具发现任务的请求结构。
    RevokeMCPOAuthRequest:
      type: object
      properties:
        registry_resource_id:
          type: string
          description: 注册表资源标识符。
        registry_version_id:
          type: string
          description: 注册表版本标识符。
        expected_generation:
          type: string
          description: 预期代次。
      description: 撤销MCP OAuth 授权的请求结构。
    UpdateMCPHealthRequest:
      type: object
      properties:
        registry_resource_id:
          type: string
          description: 注册表资源标识符。
        registry_version_id:
          type: string
          description: 注册表版本标识符。
        enabled:
          type: boolean
          description: 已启用。
        interval_seconds:
          type: integer
          format: int32
          description: 间隔秒。
        expected_generation:
          type: string
          description: 预期代次。
      description: 更新MCP 连接健康状态的请求结构。
tags:
  - name: A2AAdminService
    x-displayName: A2A 管理
    description: A2A 管理相关操作。
  - name: MCPService
    x-displayName: MCP 连接
    description: MCP 连接相关操作。
