# 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 and MCP management API
  version: 1.0.0
  description: Public v1 application contract for a2a and mcp management. Protocol lifecycle and capability availability are documented in the integration guides.
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: Requested page size, subject to the endpoint limits.
        - name: page_token
          in: query
          schema:
            type: string
          description: Opaque pagination token returned by the previous page. Do not construct or modify it.
        - name: include_disabled
          in: query
          schema:
            type: boolean
          description: Include disabled.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListA2AAgentPublicationsResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List A2A Agent publications
      description: List A2A Agent publications. Use the declared pagination parameters to continue through results.
    post:
      tags:
        - A2AAdminService
      operationId: A2AAdminService_CreateA2AAgentPublication
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateA2AAgentPublicationRequest"
        required: true
        description: Request body for create a2a agent publication.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/A2AAgentPublication"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Create A2A Agent publication
      description: Create A2A Agent publication. Supply the fields defined in the request schema.
  /api/v1/a2a/agents/{id}:
    get:
      tags:
        - A2AAdminService
      operationId: A2AAdminService_GetA2AAgentPublication
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/A2AAgentPublication"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get A2A Agent publication
      description: Get A2A Agent publication.
  /api/v1/a2a/agents/{id}:disable:
    post:
      tags:
        - A2AAdminService
      operationId: A2AAdminService_DisableA2AAgentPublication
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DisableA2AAgentPublicationRequest"
        required: true
        description: Request body for disable a2a agent publication.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/A2AAgentPublication"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Disable A2A Agent publication
      description: Disable A2A Agent publication. Supply the fields defined in the request schema.
  /api/v1/a2a/agents/{id}:enable:
    post:
      tags:
        - A2AAdminService
      operationId: A2AAdminService_EnableA2AAgentPublication
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/EnableA2AAgentPublicationRequest"
        required: true
        description: Request body for enable a2a agent publication.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/A2AAgentPublication"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Enable A2A Agent publication
      description: Enable A2A Agent publication. Supply the fields defined in the request schema.
  /api/v1/a2a/remote-agents:
    get:
      tags:
        - A2AAdminService
      operationId: A2AAdminService_ListRemoteA2AAgents
      parameters:
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: Requested page size, subject to the endpoint limits.
        - name: page_token
          in: query
          schema:
            type: string
          description: Opaque pagination token returned by the previous page. Do not construct or modify it.
        - name: include_disabled
          in: query
          schema:
            type: boolean
          description: Include disabled.
        - name: query
          in: query
          schema:
            type: string
          description: Query.
        - name: skill
          in: query
          schema:
            type: string
          description: Skill configuration.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListRemoteA2AAgentsResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List remote A2A agents
      description: List remote A2A agents. Use the declared pagination parameters to continue through results.
    post:
      tags:
        - A2AAdminService
      operationId: A2AAdminService_RegisterRemoteA2AAgent
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RegisterRemoteA2AAgentRequest"
        required: true
        description: Request body for register remote a2a agent.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RemoteA2AAgent"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Register remote A2A Agent
      description: Register remote A2A Agent. Supply the fields defined in the request schema.
  /api/v1/a2a/remote-agents/{id}:
    get:
      tags:
        - A2AAdminService
      operationId: A2AAdminService_GetRemoteA2AAgent
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RemoteA2AAgent"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get remote A2A Agent
      description: Get remote 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: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DisableRemoteA2AAgentRequest"
        required: true
        description: Request body for disable remote a2a agent.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RemoteA2AAgent"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Disable remote A2A Agent
      description: Disable remote A2A Agent. Supply the fields defined in the request 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: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/EnableRemoteA2AAgentRequest"
        required: true
        description: Request body for enable remote a2a agent.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RemoteA2AAgent"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Enable remote A2A Agent
      description: Enable remote A2A Agent. Supply the fields defined in the request 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: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RefreshRemoteA2AAgentRequest"
        required: true
        description: Request body for refresh remote a2a agent.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RemoteA2AAgent"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Refresh remote A2A Agent
      description: Refresh remote A2A Agent. Supply the fields defined in the request schema.
  /api/v1/a2a/remote-invocations/{id}:
    get:
      tags:
        - A2AAdminService
      operationId: A2AAdminService_GetRemoteA2AInvocation
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RemoteA2AInvocation"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get remote A2A invocation
      description: Get remote A2A invocation.
  /api/v1/mcp-discoveries/{id}:
    get:
      tags:
        - MCPService
      operationId: MCPService_GetMCPDiscovery
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MCPDiscovery"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get MCP discovery
      description: Get MCP discovery.
  /api/v1/mcp-discoveries/{id}:cancel:
    post:
      tags:
        - MCPService
      operationId: MCPService_CancelMCPDiscovery
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CancelMCPDiscoveryRequest"
        required: true
        description: Request body for cancel mcp discovery.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MCPDiscovery"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Cancel MCP discovery
      description: Cancel MCP discovery. Supply the fields defined in the request schema.
  /api/v1/mcp-oauth/callback:
    post:
      tags:
        - MCPService
      operationId: MCPService_CompleteMCPOAuth
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CompleteMCPOAuthRequest"
        required: true
        description: Request body for complete mcp oauth.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MCPOAuthStatus"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Complete MCP OAuth
      description: Complete MCP OAuth. Supply the fields defined in the request 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: Registry resource id.
        - name: registry_version_id
          in: query
          schema:
            type: string
          description: Registry version id.
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: Requested page size, subject to the endpoint limits.
        - name: page_token
          in: query
          schema:
            type: string
          description: Opaque pagination token returned by the previous page. Do not construct or modify it.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListMCPDiscoveriesResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List MCP discoveries
      description: List MCP discoveries. Use the declared pagination parameters to continue through results.
    post:
      tags:
        - MCPService
      operationId: MCPService_RequestMCPDiscovery
      parameters:
        - name: registry_resource_id
          in: path
          required: true
          schema:
            type: string
          description: Registry resource id.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RequestMCPDiscoveryRequest"
        required: true
        description: Request body for request mcp discovery.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MCPDiscovery"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Request MCP discovery
      description: Request MCP tool catalog discovery for the selected connection. Discovery reads tool definitions; it does not execute the tools. Authorization and subsequent execution approval are separate steps.
  /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: Registry resource id.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MCPHealth"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get MCP health
      description: Get MCP health.
    put:
      tags:
        - MCPService
      operationId: MCPService_UpdateMCPHealth
      parameters:
        - name: registry_resource_id
          in: path
          required: true
          schema:
            type: string
          description: Registry resource id.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateMCPHealthRequest"
        required: true
        description: Request body for update mcp health.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MCPHealth"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Update MCP health
      description: Update MCP health. Supply the fields defined in the request 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: Registry resource id.
        - name: registry_version_id
          in: query
          schema:
            type: string
          description: Registry version id.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MCPOAuthStatus"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get MCP OAuth status
      description: Get MCP OAuth status.
  /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: Registry resource id.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/BeginMCPOAuthRequest"
        required: true
        description: Request body for begin mcp oauth.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BeginMCPOAuthResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Begin MCP OAuth
      description: Begin OAuth authorization for the selected MCP connection. Follow the returned authorization URL and complete consent at the provider. The resulting grant applies within the declared project scope.
  /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: Registry resource id.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/InspectMCPOAuthRequest"
        required: true
        description: Request body for inspect mcp oauth.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/InspectMCPOAuthResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Inspect MCP OAuth
      description: Inspect MCP OAuth. Supply the fields defined in the request 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: Registry resource id.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RevokeMCPOAuthRequest"
        required: true
        description: Request body for revoke mcp oauth.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MCPOAuthStatus"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Revoke MCP OAuth
      description: Revoke MCP OAuth. Supply the fields defined in the request schema.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
  schemas:
    A2AAgentPublication:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        agent_version_id:
          type: string
          description: Agent version id.
        environment_version_id:
          type: string
          description: Environment version id.
        name:
          type: string
          description: Name.
        description:
          type: string
          description: Description.
        card_version:
          type: string
          description: Card version.
        documentation_url:
          type: string
          description: Documentation url.
        icon_url:
          type: string
          description: Icon url.
        default_input_modes:
          type: array
          items:
            type: string
          description: Default input modes list.
        default_output_modes:
          type: array
          items:
            type: string
          description: Default output modes list.
        skills:
          type: array
          items:
            $ref: "#/components/schemas/A2AAgentSkill"
          description: Skills list.
        enabled:
          type: boolean
          description: Enabled.
        state_version:
          type: string
          description: State revision used for optimistic concurrency. Preserve its exact decimal representation.
        content_digest:
          type: string
          description: Content digest.
        agent_card_path:
          type: string
          description: Agent card path.
        interface_path:
          type: string
          description: Interface path.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
        policy_scope_id:
          type: string
          description: Policy scope id.
      description: A2a agent publication representation.
    A2AAgentSkill:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        name:
          type: string
          description: Name.
        description:
          type: string
          description: Description.
        tags:
          type: array
          items:
            type: string
          description: Tags list.
        examples:
          type: array
          items:
            type: string
          description: Examples list.
        input_modes:
          type: array
          items:
            type: string
          description: Input modes list.
        output_modes:
          type: array
          items:
            type: string
          description: Output modes list.
      description: A2a agent skill representation.
    BeginMCPOAuthRequest:
      type: object
      properties:
        registry_resource_id:
          type: string
          description: Registry resource id.
        registry_version_id:
          type: string
          description: Registry version id.
        issuer:
          type: string
          description: Issuer.
        scopes:
          type: array
          items:
            type: string
          description: Scopes list.
        project_consent:
          type: boolean
          description: Explicit consent to share this authorization with this project's Agents.
      description: Begin MCP OAuth request.
    BeginMCPOAuthResponse:
      type: object
      properties:
        authorization_url:
          type: string
          description: Authorization url.
        session_id:
          type: string
          description: Session id.
        expires_at:
          type: string
          format: date-time
          description: Expires at as an RFC 3339 timestamp.
      description: Begin MCP OAuth response.
    CancelMCPDiscoveryRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
      description: Cancel MCP discovery request.
    CompleteMCPOAuthRequest:
      type: object
      properties:
        state:
          type: string
          description: State.
        code:
          type: string
          description: Code.
        issuer:
          type: string
          description: Issuer.
        error:
          type: string
          description: Error.
      description: Complete MCP OAuth request.
    CreateA2AAgentPublicationRequest:
      type: object
      properties:
        agent_version_id:
          type: string
          description: Agent version id.
        environment_version_id:
          type: string
          description: Environment version id.
        name:
          type: string
          description: Name.
        description:
          type: string
          description: Description.
        card_version:
          type: string
          description: Card version.
        documentation_url:
          type: string
          description: Documentation url.
        icon_url:
          type: string
          description: Icon url.
        default_input_modes:
          type: array
          items:
            type: string
          description: Default input modes list.
        default_output_modes:
          type: array
          items:
            type: string
          description: Default output modes list.
        skills:
          type: array
          items:
            $ref: "#/components/schemas/A2AAgentSkill"
          description: Skills list.
        policy_scope_id:
          type: string
          description: Policy scope id.
      description: Create A2A Agent publication request.
    DisableA2AAgentPublicationRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        expected_state_version:
          type: string
          description: Expected state revision for optimistic concurrency. Copy the current revision exactly; do not round it through a JavaScript Number.
      description: Disable A2A Agent publication request.
    DisableRemoteA2AAgentRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        expected_state_version:
          type: string
          description: Expected state revision for optimistic concurrency. Copy the current revision exactly; do not round it through a JavaScript Number.
      description: Disable remote A2A Agent request.
    EnableA2AAgentPublicationRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        expected_state_version:
          type: string
          description: Expected state revision for optimistic concurrency. Copy the current revision exactly; do not round it through a JavaScript Number.
      description: Enable A2A Agent publication request.
    EnableRemoteA2AAgentRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        expected_state_version:
          type: string
          description: Expected state revision for optimistic concurrency. Copy the current revision exactly; do not round it through a JavaScript Number.
      description: Enable remote A2A Agent request.
    InspectMCPOAuthRequest:
      type: object
      properties:
        registry_resource_id:
          type: string
          description: Registry resource id.
        registry_version_id:
          type: string
          description: Registry version id.
        issuer:
          type: string
          description: Issuer.
      description: Inspect MCP OAuth request.
    InspectMCPOAuthResponse:
      type: object
      properties:
        issuers:
          type: array
          items:
            type: string
          description: Issuers list.
        scopes:
          type: array
          items:
            type: string
          description: Scopes list.
        required_scopes:
          type: array
          items:
            type: string
          description: Required scopes list.
        resource:
          type: string
          description: Resource.
        redirect_uri:
          type: string
          description: Redirect uri.
        client_metadata_uri:
          type: string
          description: Client metadata uri.
        selected_issuer:
          type: string
          description: Selected issuer.
      description: Inspect MCP OAuth response.
    ListA2AAgentPublicationsResponse:
      type: object
      properties:
        publications:
          type: array
          items:
            $ref: "#/components/schemas/A2AAgentPublication"
          description: Publications list.
        next_page_token:
          type: string
          description: Pagination token for the next page. An empty value indicates there is no next page.
      description: List A2A Agent publications response.
    ListMCPDiscoveriesResponse:
      type: object
      properties:
        discoveries:
          type: array
          items:
            $ref: "#/components/schemas/MCPDiscovery"
          description: Discoveries list.
        next_page_token:
          type: string
          description: Pagination token for the next page. An empty value indicates there is no next page.
        latest_successful:
          $ref: "#/components/schemas/MCPDiscovery"
          description: Latest successful.
      description: List MCP discoveries response.
    ListRemoteA2AAgentsResponse:
      type: object
      properties:
        agents:
          type: array
          items:
            $ref: "#/components/schemas/RemoteA2AAgent"
          description: Agents list.
        next_page_token:
          type: string
          description: Pagination token for the next page. An empty value indicates there is no next page.
      description: List remote A2A agents response.
    MCPDiscovery:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        policy_scope_id:
          type: string
          description: Policy scope id.
        registry_resource_id:
          type: string
          description: Registry resource id.
        registry_version_id:
          type: string
          description: Registry version id.
        configuration_digest:
          type: string
          description: Configuration digest.
        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: Status.
          x-enum-descriptions:
            MCP_DISCOVERY_STATUS_UNSPECIFIED: unspecified
            MCP_DISCOVERY_STATUS_QUEUED: queued
            MCP_DISCOVERY_STATUS_RUNNING: running
            MCP_DISCOVERY_STATUS_SUCCEEDED: succeeded
            MCP_DISCOVERY_STATUS_FAILED: failed
            MCP_DISCOVERY_STATUS_CANCELLED: cancelled
        attempt:
          type: string
          description: Attempt.
        catalog_digest:
          type: string
          description: Catalog digest.
        catalog:
          type: object
          description: Catalog.
        error_code:
          type: string
          description: Error code.
        error_message:
          type: string
          description: Error message.
        created_by:
          type: string
          description: Created by.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
        completed_at:
          type: string
          format: date-time
          description: Completed at as an RFC 3339 timestamp.
        task_id:
          type: string
          description: Identifier of the durable Task; do not substitute an execution Run ID.
      description: Mcp discovery representation.
    MCPHealth:
      type: object
      properties:
        registry_resource_id:
          type: string
          description: Registry resource id.
        registry_version_id:
          type: string
          description: Registry version id.
        enabled:
          type: boolean
          description: Enabled.
        interval_seconds:
          type: integer
          format: int32
          description: Interval seconds.
        generation:
          type: string
          description: Generation.
        status:
          type: string
          description: Status.
        consecutive_failures:
          type: string
          description: Consecutive failures.
        discovery_id:
          type: string
          description: Discovery id.
        last_checked_at:
          type: string
          format: date-time
          description: Last checked at as an RFC 3339 timestamp.
        last_successful_at:
          type: string
          format: date-time
          description: Last successful at as an RFC 3339 timestamp.
        next_check_at:
          type: string
          format: date-time
          description: Next check at as an RFC 3339 timestamp.
        error_code:
          type: string
          description: Error code.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
      description: |-
        Monitoring is an explicit mutable operational policy over one immutable
         connection revision. It never changes an Environment's pinned tool catalog.
    MCPOAuthStatus:
      type: object
      properties:
        registry_resource_id:
          type: string
          description: Registry resource id.
        registry_version_id:
          type: string
          description: Registry version id.
        status:
          type: string
          description: Status.
        generation:
          type: string
          description: Generation.
        issuer:
          type: string
          description: Issuer.
        resource:
          type: string
          description: Resource.
        scopes:
          type: array
          items:
            type: string
          description: Scopes list.
        access_expires_at:
          type: string
          format: date-time
          description: Access expires at as an RFC 3339 timestamp.
        authorized_at:
          type: string
          format: date-time
          description: Authorized at as an RFC 3339 timestamp.
        authorized_by:
          type: string
          description: Authorized by.
        error_code:
          type: string
          description: Error code.
        remote_revocation:
          type: string
          description: Remote revocation.
      description: Mcp oauth status representation.
    ProblemDetails:
      type: object
      description: RFC 9457 Problem Details with OrbitSpace correlation extensions.
      required:
        - type
        - title
        - status
        - detail
        - request_id
      properties:
        type:
          type: string
          format: uri
          description: Type.
        title:
          type: string
          description: Title.
        status:
          type: integer
          minimum: 400
          maximum: 599
          description: Status.
        detail:
          type: string
          description: Detail.
        instance:
          type: string
          format: uri-reference
          description: Instance.
        code:
          type: string
          pattern: ^[A-Z][A-Z0-9_]*$
          description: Code.
        request_id:
          type: string
          format: uuid
          description: Request id.
    RefreshRemoteA2AAgentRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        expected_state_version:
          type: string
          description: Expected state revision for optimistic concurrency. Copy the current revision exactly; do not round it through a JavaScript Number.
      description: Refresh remote A2A Agent request.
    RegisterRemoteA2AAgentRequest:
      type: object
      properties:
        card_url:
          type: string
          description: Card url.
        credential_reference:
          type: string
          description: Credential reference.
        require_signed_card:
          type: boolean
          description: Require signed card.
      description: Register remote A2A Agent request.
    RemoteA2AAgent:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        card_url:
          type: string
          description: Card url.
        name:
          type: string
          description: Name.
        description:
          type: string
          description: Description.
        version:
          type: string
          description: Version.
        documentation_url:
          type: string
          description: Documentation url.
        icon_url:
          type: string
          description: Icon url.
        interface_url:
          type: string
          description: Interface url.
        interface_tenant:
          type: string
          description: Interface tenant.
        protocol_binding:
          type: string
          description: Protocol binding.
        protocol_version:
          type: string
          description: Protocol version.
        default_input_modes:
          type: array
          items:
            type: string
          description: Default input modes list.
        default_output_modes:
          type: array
          items:
            type: string
          description: Default output modes list.
        skills:
          type: array
          items:
            $ref: "#/components/schemas/A2AAgentSkill"
          description: Skills list.
        credential_reference:
          type: string
          description: Credential reference.
        require_signed_card:
          type: boolean
          description: Require signed card.
        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: Signature status.
          x-enum-descriptions:
            REMOTE_A2A_AGENT_SIGNATURE_STATUS_UNSPECIFIED: unspecified
            REMOTE_A2A_AGENT_SIGNATURE_STATUS_UNSIGNED: unsigned
            REMOTE_A2A_AGENT_SIGNATURE_STATUS_VERIFIED: verified
        signature_key_id:
          type: string
          description: Signature key id.
        card_digest:
          type: string
          description: Card digest.
        enabled:
          type: boolean
          description: Enabled.
        state_version:
          type: string
          description: State revision used for optimistic concurrency. Preserve its exact decimal representation.
        card_fetched_at:
          type: string
          format: date-time
          description: Card fetched at as an RFC 3339 timestamp.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
      description: Remote a2a agent representation.
    RemoteA2AInvocation:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        remote_agent_id:
          type: string
          description: Remote agent id.
        task_id:
          type: string
          description: Identifier of the durable Task; do not substitute an execution Run ID.
        run_id:
          type: string
          description: Identifier of an execution Run associated with a Task.
        tool_call_id:
          type: string
          description: Tool call id.
        message_id:
          type: string
          description: Message id.
        requested_context_id:
          type: string
          description: Requested context id.
        remote_task_id:
          type: string
          description: Remote task id.
        remote_context_id:
          type: string
          description: Remote context id.
        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: Status.
          x-enum-descriptions:
            REMOTE_A2A_INVOCATION_STATUS_UNSPECIFIED: unspecified
            REMOTE_A2A_INVOCATION_STATUS_PENDING: pending
            REMOTE_A2A_INVOCATION_STATUS_SUBMITTED: submitted
            REMOTE_A2A_INVOCATION_STATUS_WORKING: working
            REMOTE_A2A_INVOCATION_STATUS_INPUT_REQUIRED: input required
            REMOTE_A2A_INVOCATION_STATUS_AUTH_REQUIRED: auth required
            REMOTE_A2A_INVOCATION_STATUS_COMPLETED: completed
            REMOTE_A2A_INVOCATION_STATUS_FAILED: failed
            REMOTE_A2A_INVOCATION_STATUS_CANCELLED: cancelled
            REMOTE_A2A_INVOCATION_STATUS_REJECTED: rejected
            REMOTE_A2A_INVOCATION_STATUS_OUTCOME_UNKNOWN: outcome unknown
        response_json:
          type: string
          format: bytes
          description: Response json encoded as Base64.
        last_error:
          type: string
          description: Last error.
        attempt_count:
          type: integer
          format: int32
          description: Attempt count.
        state_version:
          type: string
          description: State revision used for optimistic concurrency. Preserve its exact decimal representation.
        deadline:
          type: string
          format: date-time
          description: Deadline as an RFC 3339 timestamp.
        completed_at:
          type: string
          format: date-time
          description: Completed at as an RFC 3339 timestamp.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
        requested_task_id:
          type: string
          description: Requested task id.
      description: Remote a2a invocation representation.
    RequestMCPDiscoveryRequest:
      type: object
      properties:
        registry_resource_id:
          type: string
          description: Registry resource id.
        registry_version_id:
          type: string
          description: Registry version id.
        idempotency_key:
          type: string
          description: Idempotency key for this operation. Reuse it only when retrying the same submission with the same payload.
        workspace_id:
          type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        workspace_agent_binding_id:
          type: string
          description: Identifier of the Agent binding in the selected Workspace.
      description: Request MCP discovery request.
    RevokeMCPOAuthRequest:
      type: object
      properties:
        registry_resource_id:
          type: string
          description: Registry resource id.
        registry_version_id:
          type: string
          description: Registry version id.
        expected_generation:
          type: string
          description: Expected generation.
      description: Revoke MCP OAuth request.
    UpdateMCPHealthRequest:
      type: object
      properties:
        registry_resource_id:
          type: string
          description: Registry resource id.
        registry_version_id:
          type: string
          description: Registry version id.
        enabled:
          type: boolean
          description: Enabled.
        interval_seconds:
          type: integer
          format: int32
          description: Interval seconds.
        expected_generation:
          type: string
          description: Expected generation.
      description: Update MCP health request.
tags:
  - name: A2AAdminService
    x-displayName: A2A administration
    description: A2A administration operations.
  - name: MCPService
    x-displayName: MCP connections
    description: MCP connections operations.
