> ## Documentation Index
> Fetch the complete documentation index at: https://oma-codex-339-workspace-permissions.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 更新凭据

> 通过 OMA API 更新凭据。

<Info>每个请求都必须发送 `?beta=true`。</Info>


## OpenAPI

````yaml /openapi/oma.zh.json post /v1/vaults/{vault_id}/credentials/{credential_id}
openapi: 3.1.0
info:
  title: OMA API 参考
  version: 1.0.0
  description: Open Managed Agents 应用 API 参考。
servers:
  - url: http://localhost:38080
    description: 本地 OMA 服务器
security:
  - omaApiKey: []
  - omaBearer: []
paths:
  /v1/vaults/{vault_id}/credentials/{credential_id}:
    post:
      summary: 更新凭据
      operationId: BetaUpdateCredential
      parameters:
        - name: beta
          in: query
          required: true
          description: 为此接口启用 Beta API 合同，必须为 `true`。
          schema:
            type: boolean
            enum:
              - true
        - name: anthropic-version
          in: header
          required: false
          schema:
            type: string
        - name: anthropic-beta
          in: header
          required: false
          schema:
            type: string
            items:
              type: string
            x-stainless-override-schema:
              x-stainless-param: betas
              x-stainless-extend-default: true
              type: array
              description: 用于指定一个或多个 Beta 版本的可选请求头。
              items:
                $ref: '#/components/schemas/AnthropicBeta'
            x-default: managed-agents-2026-04-01
        - name: vault_id
          in: path
          required: true
          schema:
            type: string
          description: 密钥库标识符。
          example: vlt_011CZkZDLs7fYzm1hXNPeRjv
        - name: credential_id
          in: path
          required: true
          schema:
            type: string
            x-stainless-cli-data-alias: id
          description: 凭据标识符。
          example: vcrd_011CZkZEMt8gZan2iYOQfSkw
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/BetaManagedAgentsUpdateCredentialRequestBody
      responses:
        '200':
          description: 请求成功。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaManagedAgentsCredential'
        '400':
          description: Invalid argument - 客户端指定了无效的参数
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '401':
          description: 未认证 - 请求没有有效的认证凭据
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '403':
          description: 权限被拒绝 - 调用方没有执行指定操作的权限
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '404':
          description: 未找到 - 请求的某个实体不存在
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '408':
          description: 超出截止时间 - 截止时间在操作完成之前已过期
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '409':
          description: 已中止 - 该操作因并发问题而被中止
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '412':
          description: 前置条件不满足 - 由于系统未处于所需状态，操作被拒绝
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '413':
          description: Out of range - 尝试的操作超出了有效范围
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '429':
          description: 资源耗尽 - 某些资源已被耗尽（限流）
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '431':
          description: 请求头字段过大 - 请求元数据过大
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '499':
          description: Cancelled - 操作已被客户端取消
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '500':
          description: Internal - 内部服务器错误
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '501':
          description: 未实现 - 该操作未实现或不受支持
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '503':
          description: 不可用 - 服务当前不可用
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '504':
          description: 超时 - 上游服务未及时响应
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
components:
  schemas:
    BetaManagedAgentsUpdateCredentialRequestBody:
      type: object
      additionalProperties: false
      properties:
        display_name:
          description: 凭据更新后的可读名称。1-255 个字符。
          type: string
          minLength: 1
          maxLength: 255
          nullable: true
          examples:
            - 示例凭证
        metadata:
          description: 元数据补丁。将某个键设为字符串可插入或更新该键，设为 null 可删除该键。省略的键保持不变。
          type: object
          additionalProperties:
            type: string
            nullable: true
          nullable: true
          examples:
            - environment: production
        auth:
          description: 更新后的认证配置。`type` 不可变；发送的变体必须与已存储 credential 的类型匹配。
          allOf:
            - $ref: '#/components/schemas/BetaManagedAgentsCredentialUpdateAuth'
      example:
        display_name: 示例凭证
        metadata:
          environment: production
    BetaManagedAgentsCredential:
      description: 存储在密钥库中的凭据。敏感字段永远不会在响应中返回。
      type: object
      additionalProperties: false
      required:
        - type
        - id
        - vault_id
        - metadata
        - created_at
        - updated_at
        - archived_at
        - auth
      properties:
        type:
          type: string
          enum:
            - vault_credential
          examples:
            - vault_credential
        id:
          description: 凭据的唯一标识符。
          type: string
          examples:
            - vcrd_011CZkZEMt8gZan2iYOQfSkw
        vault_id:
          description: 该 credential 所属密钥库的标识符。
          type: string
          examples:
            - vlt_011CZkZDLs7fYzm1hXNPeRjv
        display_name:
          description: 凭据的人类可读名称。
          type: string
          nullable: true
          examples:
            - 示例凭证
        metadata:
          description: 附加到该凭证的任意键值元数据。
          type: object
          additionalProperties:
            type: string
          examples:
            - environment: production
        created_at:
          $ref: '#/components/schemas/BetaTimestamp'
          examples:
            - '2026-03-15T10:00:00Z'
        updated_at:
          $ref: '#/components/schemas/BetaTimestamp'
          examples:
            - '2026-03-15T10:00:00Z'
        archived_at:
          description: 凭证的归档时间。未归档时为 null。
          allOf:
            - $ref: '#/components/schemas/BetaTimestamp'
          nullable: true
          examples:
            - null
        auth:
          description: 此 credential 的认证配置。
          allOf:
            - $ref: '#/components/schemas/BetaManagedAgentsCredentialAuth'
          examples:
            - type: static_bearer
              mcp_server_url: https://example-server.modelcontextprotocol.io/sse
      example:
        type: vault_credential
        id: vcrd_011CZkZEMt8gZan2iYOQfSkw
        vault_id: vlt_011CZkZDLs7fYzm1hXNPeRjv
        display_name: 示例凭证
        metadata:
          environment: production
        created_at: '2026-03-15T10:00:00Z'
        updated_at: '2026-03-15T10:00:00Z'
        archived_at: null
        auth:
          type: static_bearer
          mcp_server_url: https://example-server.modelcontextprotocol.io/sse
    BetaErrorResponse:
      properties:
        error:
          discriminator:
            mapping:
              api_error:
                $ref: '#/components/schemas/BetaAPIError'
              authentication_error:
                $ref: '#/components/schemas/BetaAuthenticationError'
              billing_error:
                $ref: '#/components/schemas/BetaBillingError'
              invalid_request_error:
                $ref: '#/components/schemas/BetaInvalidRequestError'
              not_found_error:
                $ref: '#/components/schemas/BetaNotFoundError'
              overloaded_error:
                $ref: '#/components/schemas/BetaOverloadedError'
              permission_error:
                $ref: '#/components/schemas/BetaPermissionError'
              rate_limit_error:
                $ref: '#/components/schemas/BetaRateLimitError'
              timeout_error:
                $ref: '#/components/schemas/BetaGatewayTimeoutError'
            propertyName: type
          oneOf:
            - $ref: '#/components/schemas/BetaInvalidRequestError'
            - $ref: '#/components/schemas/BetaAuthenticationError'
            - $ref: '#/components/schemas/BetaBillingError'
            - $ref: '#/components/schemas/BetaPermissionError'
            - $ref: '#/components/schemas/BetaNotFoundError'
            - $ref: '#/components/schemas/BetaRateLimitError'
            - $ref: '#/components/schemas/BetaGatewayTimeoutError'
            - $ref: '#/components/schemas/BetaAPIError'
            - $ref: '#/components/schemas/BetaOverloadedError'
          title: 错误
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: 请求 ID
        type:
          const: error
          default: error
          title: 类型
          type: string
      required:
        - error
        - request_id
        - type
      title: ErrorResponse
      type: object
    BetaManagedAgentsCredentialUpdateAuth:
      description: 更新后的 credential 认证详情。
      type: object
      discriminator:
        propertyName: type
        mapping:
          mcp_oauth:
            $ref: '#/components/schemas/BetaManagedAgentsMcpOauthUpdateParams'
          static_bearer:
            $ref: '#/components/schemas/BetaManagedAgentsStaticBearerUpdateParams'
          environment_variable:
            $ref: >-
              #/components/schemas/BetaManagedAgentsEnvironmentVariableUpdateParams
      oneOf:
        - $ref: '#/components/schemas/BetaManagedAgentsMcpOauthUpdateParams'
        - $ref: '#/components/schemas/BetaManagedAgentsStaticBearerUpdateParams'
        - $ref: >-
            #/components/schemas/BetaManagedAgentsEnvironmentVariableUpdateParams
    BetaTimestamp:
      description: RFC 3339 格式的时间戳
      type: string
      format: date-time
    BetaManagedAgentsCredentialAuth:
      description: 凭据的认证详情。
      type: object
      discriminator:
        propertyName: type
        mapping:
          mcp_oauth:
            $ref: '#/components/schemas/BetaManagedAgentsMcpOauthAuthResponse'
          static_bearer:
            $ref: '#/components/schemas/BetaManagedAgentsStaticBearerAuthResponse'
          environment_variable:
            $ref: >-
              #/components/schemas/BetaManagedAgentsEnvironmentVariableAuthResponse
      oneOf:
        - $ref: '#/components/schemas/BetaManagedAgentsMcpOauthAuthResponse'
        - $ref: '#/components/schemas/BetaManagedAgentsStaticBearerAuthResponse'
        - $ref: >-
            #/components/schemas/BetaManagedAgentsEnvironmentVariableAuthResponse
      example:
        type: static_bearer
        mcp_server_url: https://example-server.modelcontextprotocol.io/sse
    BetaAPIError:
      properties:
        message:
          default: Internal server error
          title: 消息
          type: string
        type:
          const: api_error
          default: api_error
          title: 类型
          type: string
      required:
        - message
        - type
      title: APIError
      type: object
    BetaAuthenticationError:
      properties:
        message:
          default: Authentication error
          title: 消息
          type: string
        type:
          const: authentication_error
          default: authentication_error
          title: 类型
          type: string
      required:
        - message
        - type
      title: AuthenticationError
      type: object
    BetaBillingError:
      properties:
        message:
          default: Billing error
          title: 消息
          type: string
        type:
          const: billing_error
          default: billing_error
          title: 类型
          type: string
      required:
        - message
        - type
      title: BillingError
      type: object
    BetaInvalidRequestError:
      properties:
        message:
          default: Invalid request
          title: 消息
          type: string
        type:
          const: invalid_request_error
          default: invalid_request_error
          title: 类型
          type: string
      required:
        - message
        - type
      title: InvalidRequestError
      type: object
    BetaNotFoundError:
      properties:
        message:
          default: Not found
          title: 消息
          type: string
        type:
          const: not_found_error
          default: not_found_error
          title: 类型
          type: string
      required:
        - message
        - type
      title: NotFoundError
      type: object
    BetaOverloadedError:
      properties:
        message:
          default: Overloaded
          title: 消息
          type: string
        type:
          const: overloaded_error
          default: overloaded_error
          title: 类型
          type: string
      required:
        - message
        - type
      title: OverloadedError
      type: object
    BetaPermissionError:
      properties:
        message:
          default: Permission denied
          title: 消息
          type: string
        type:
          const: permission_error
          default: permission_error
          title: 类型
          type: string
      required:
        - message
        - type
      title: PermissionError
      type: object
    BetaRateLimitError:
      properties:
        message:
          default: Rate limited
          title: 消息
          type: string
        type:
          const: rate_limit_error
          default: rate_limit_error
          title: 类型
          type: string
      required:
        - message
        - type
      title: RateLimitError
      type: object
    BetaGatewayTimeoutError:
      properties:
        message:
          default: Request timeout
          title: 消息
          type: string
        type:
          const: timeout_error
          default: timeout_error
          title: 类型
          type: string
      required:
        - message
        - type
      title: GatewayTimeoutError
      type: object
    BetaManagedAgentsMcpOauthUpdateParams:
      description: 更新 MCP OAuth 凭据的参数。`mcp_server_url` 不可更改。
      type: object
      additionalProperties: false
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - mcp_oauth
        access_token:
          description: 已更新的 OAuth 访问令牌。
          type: string
          minLength: 1
          maxLength: 8192
          nullable: true
        expires_at:
          $ref: '#/components/schemas/BetaTimestamp'
          nullable: true
        refresh:
          description: 更新后的刷新令牌配置。
          allOf:
            - $ref: >-
                #/components/schemas/BetaManagedAgentsMcpOauthRefreshUpdateParams
          nullable: true
    BetaManagedAgentsStaticBearerUpdateParams:
      description: 用于更新静态 Bearer 令牌凭据的参数。`mcp_server_url` 不可变更。
      type: object
      additionalProperties: false
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - static_bearer
        token:
          description: 更新后的静态 Bearer 令牌值。
          type: string
          minLength: 1
          maxLength: 8192
          nullable: true
    BetaManagedAgentsEnvironmentVariableUpdateParams:
      description: 用于更新环境变量凭据的参数。`secret_name` 不可变更。
      type: object
      additionalProperties: false
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - environment_variable
        secret_value:
          description: 更新后的密钥值。
          type: string
          minLength: 1
          maxLength: 4096
          nullable: true
        networking:
          description: 更新后的网络范围。全量替换。
          allOf:
            - $ref: '#/components/schemas/BetaManagedAgentsCredentialNetworkingParams'
          nullable: true
        injection_location:
          description: 已更新的注入位置。
          allOf:
            - $ref: >-
                #/components/schemas/BetaManagedAgentsInjectionLocationUpdateParams
    BetaManagedAgentsMcpOauthAuthResponse:
      description: MCP 服务器的 OAuth 凭据详情。
      type: object
      additionalProperties: false
      required:
        - type
        - mcp_server_url
      properties:
        type:
          type: string
          enum:
            - mcp_oauth
        mcp_server_url:
          description: 此凭据用于认证的 MCP 服务器的 URL。
          type: string
        expires_at:
          $ref: '#/components/schemas/BetaTimestamp'
          nullable: true
        refresh:
          description: 刷新令牌配置（如果凭据支持令牌刷新）。
          allOf:
            - $ref: '#/components/schemas/BetaManagedAgentsMcpOauthRefreshResponse'
          nullable: true
    BetaManagedAgentsStaticBearerAuthResponse:
      description: MCP 服务器的静态 bearer 令牌凭证详情。
      type: object
      additionalProperties: false
      required:
        - type
        - mcp_server_url
      properties:
        type:
          type: string
          enum:
            - static_bearer
          examples:
            - static_bearer
        mcp_server_url:
          description: 此凭据用于认证的 MCP 服务器的 URL。
          type: string
          examples:
            - https://example-server.modelcontextprotocol.io/sse
      example:
        type: static_bearer
        mcp_server_url: https://example-server.modelcontextprotocol.io/sse
    BetaManagedAgentsEnvironmentVariableAuthResponse:
      description: 环境变量凭据详情。机密值永远不会返回。
      type: object
      additionalProperties: false
      required:
        - type
        - secret_name
        - networking
        - injection_location
      properties:
        type:
          type: string
          enum:
            - environment_variable
        secret_name:
          description: 环境变量的名称。
          type: string
        networking:
          description: 机密值在其上被替换的出站主机。
          allOf:
            - $ref: >-
                #/components/schemas/BetaManagedAgentsCredentialNetworkingResponse
        injection_location:
          description: 密钥值在出站请求中被替换的位置。
          allOf:
            - $ref: '#/components/schemas/BetaManagedAgentsInjectionLocationResponse'
    BetaManagedAgentsMcpOauthRefreshUpdateParams:
      description: 更新 OAuth 刷新令牌配置的参数。
      type: object
      additionalProperties: false
      properties:
        refresh_token:
          description: 已更新的 OAuth 刷新令牌。
          type: string
          minLength: 1
          maxLength: 4096
          nullable: true
        scope:
          description: 刷新请求更新后的 OAuth 作用域。
          type: string
          maxLength: 8192
          nullable: true
        token_endpoint_auth:
          type: object
          discriminator:
            propertyName: type
            mapping:
              client_secret_basic:
                $ref: >-
                  #/components/schemas/BetaManagedAgentsTokenEndpointAuthBasicUpdateParam
              client_secret_post:
                $ref: >-
                  #/components/schemas/BetaManagedAgentsTokenEndpointAuthPostUpdateParam
          oneOf:
            - $ref: >-
                #/components/schemas/BetaManagedAgentsTokenEndpointAuthBasicUpdateParam
            - $ref: >-
                #/components/schemas/BetaManagedAgentsTokenEndpointAuthPostUpdateParam
    BetaManagedAgentsCredentialNetworkingParams:
      type: object
      discriminator:
        propertyName: type
        mapping:
          unrestricted:
            $ref: >-
              #/components/schemas/BetaManagedAgentsUnrestrictedCredentialNetworkingParams
          limited:
            $ref: >-
              #/components/schemas/BetaManagedAgentsLimitedCredentialNetworkingParams
      oneOf:
        - $ref: >-
            #/components/schemas/BetaManagedAgentsUnrestrictedCredentialNetworkingParams
        - $ref: >-
            #/components/schemas/BetaManagedAgentsLimitedCredentialNetworkingParams
    BetaManagedAgentsInjectionLocationUpdateParams:
      description: 已更新的注入位置。
      type: object
      additionalProperties: false
      properties:
        header:
          description: 当占位符出现在请求头值中时进行替换。
          type: boolean
        body:
          description: 当占位符出现在请求体中时进行替换。
          type: boolean
    BetaManagedAgentsMcpOauthRefreshResponse:
      description: 凭据响应中返回的 OAuth 刷新令牌配置。
      type: object
      additionalProperties: false
      required:
        - token_endpoint
        - client_id
        - token_endpoint_auth
      properties:
        token_endpoint:
          description: 用于刷新访问令牌的令牌端点 URL。
          type: string
        client_id:
          description: OAuth 客户端 ID。
          type: string
        resource:
          description: OAuth 资源指示符。
          type: string
          nullable: true
        scope:
          description: 刷新请求的 OAuth 作用域。
          type: string
          nullable: true
        token_endpoint_auth:
          type: object
          discriminator:
            propertyName: type
            mapping:
              none:
                $ref: >-
                  #/components/schemas/BetaManagedAgentsTokenEndpointAuthNoneResponse
              client_secret_basic:
                $ref: >-
                  #/components/schemas/BetaManagedAgentsTokenEndpointAuthBasicResponse
              client_secret_post:
                $ref: >-
                  #/components/schemas/BetaManagedAgentsTokenEndpointAuthPostResponse
          oneOf:
            - $ref: >-
                #/components/schemas/BetaManagedAgentsTokenEndpointAuthNoneResponse
            - $ref: >-
                #/components/schemas/BetaManagedAgentsTokenEndpointAuthBasicResponse
            - $ref: >-
                #/components/schemas/BetaManagedAgentsTokenEndpointAuthPostResponse
    BetaManagedAgentsCredentialNetworkingResponse:
      type: object
      discriminator:
        propertyName: type
        mapping:
          unrestricted:
            $ref: >-
              #/components/schemas/BetaManagedAgentsUnrestrictedCredentialNetworkingResponse
          limited:
            $ref: >-
              #/components/schemas/BetaManagedAgentsLimitedCredentialNetworkingResponse
      oneOf:
        - $ref: >-
            #/components/schemas/BetaManagedAgentsUnrestrictedCredentialNetworkingResponse
        - $ref: >-
            #/components/schemas/BetaManagedAgentsLimitedCredentialNetworkingResponse
    BetaManagedAgentsInjectionLocationResponse:
      description: 密钥值在出站请求中被替换的位置。
      type: object
      additionalProperties: false
      required:
        - header
        - body
      properties:
        header:
          description: 占位符是否在请求头值中被替换。
          type: boolean
        body:
          description: 占位符是否在请求体中被替换。
          type: boolean
    BetaManagedAgentsTokenEndpointAuthBasicUpdateParam:
      description: 令牌端点更新后的 HTTP Basic 认证参数。
      type: object
      additionalProperties: false
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - client_secret_basic
        client_secret:
          description: 已更新的 OAuth 客户端密钥。
          type: string
          minLength: 1
          maxLength: 512
          nullable: true
    BetaManagedAgentsTokenEndpointAuthPostUpdateParam:
      description: 令牌端点更新后的 POST 请求体认证参数。
      type: object
      additionalProperties: false
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - client_secret_post
        client_secret:
          description: 已更新的 OAuth 客户端密钥。
          type: string
          minLength: 1
          maxLength: 512
          nullable: true
    BetaManagedAgentsUnrestrictedCredentialNetworkingParams:
      description: 在会话的环境网络策略允许出站访问的任何主机上替换该密钥。环境网络策略是密钥可达范围的唯一边界。
      type: object
      additionalProperties: false
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - unrestricted
    BetaManagedAgentsLimitedCredentialNetworkingParams:
      description: 仅在请求所列出的主机时替换该密钥。
      type: object
      additionalProperties: false
      required:
        - type
        - allowed_hosts
      properties:
        type:
          type: string
          enum:
            - limited
        allowed_hosts:
          description: >-
            将替换该密钥的主机名。每个条目可以是纯主机名（`api.example.com`）、IPv4 地址（`192.0.2.1`）或以
            `*.` 为前缀的通配符（`*.example.com`）。不接受 URL、端口、路径和 IPv6 地址。最多 16 个条目。
          type: array
          items:
            type: string
    BetaManagedAgentsTokenEndpointAuthNoneResponse:
      description: 令牌端点无需客户端认证。
      type: object
      additionalProperties: false
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - none
    BetaManagedAgentsTokenEndpointAuthBasicResponse:
      description: 令牌端点使用客户端凭据进行 HTTP Basic 认证。
      type: object
      additionalProperties: false
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - client_secret_basic
    BetaManagedAgentsTokenEndpointAuthPostResponse:
      description: 令牌端点使用客户端凭据进行 POST 请求体认证。
      type: object
      additionalProperties: false
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - client_secret_post
    BetaManagedAgentsUnrestrictedCredentialNetworkingResponse:
      description: 在会话的环境网络策略允许出站访问的任何主机上，该密钥都会被替换。
      type: object
      additionalProperties: false
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - unrestricted
    BetaManagedAgentsLimitedCredentialNetworkingResponse:
      description: 该密钥仅在请求所列出的主机时被替换。
      type: object
      additionalProperties: false
      required:
        - type
        - allowed_hosts
      properties:
        type:
          type: string
          enum:
            - limited
        allowed_hosts:
          description: 将替换该密钥的主机名。条目与请求主机精确匹配；带 `*.` 前缀的条目匹配指定域名的任何子域名，但不匹配该域名本身。
          type: array
          items:
            type: string
  securitySchemes:
    omaApiKey:
      type: apiKey
      in: header
      name: X-Api-Key
      description: OMA 工作区 API 密钥。
      x-default: sk-ant-local-default
    omaBearer:
      type: http
      scheme: bearer
      description: 以 Bearer 令牌形式发送的 OMA 工作区 API 密钥。

````