One of the following:
VaultCredentialAuthResourceMcpOauth { expires_at, mcp_server_url, refresh, type }

Public metadata for an OAuth credential; tokens and client secrets are never returned.

expires_at: string | null

When the OAuth access token expires, as an RFC 3339 timestamp, if known.

minLength0
mcp_server_url: string

The HTTPS MCP server URL authorized by this credential.

minLength0
refresh: Refresh | null

Public refresh metadata without refresh tokens or OAuth client secrets.

client_id: string

The OAuth client ID used when requesting a new access token.

minLength0
resource: string | null

The resource URI sent to the OAuth token endpoint during refresh, if configured.

minLength0
scope: string | null

Space-separated OAuth scopes requested during refresh, if configured.

minLength0
token_endpoint: string

The HTTPS OAuth token endpoint used for refresh.

minLength0
token_endpoint_auth: McpOauthTokenEndpointAuth

How the OAuth client authenticates to the token endpoint, excluding its client secret.

type: "mcp_oauth"

The type of the object. Always mcp_oauth.

VaultCredentialAuthResourceStaticBearer { mcp_server_url, type }

Metadata for a bearer-token credential, without automatic OAuth refresh.

mcp_server_url: string

The HTTPS MCP server URL authorized by this credential.

minLength0
type: "static_bearer"

The type of the object. Always static_bearer.

VaultCredentialAuthResourceEnvironmentVariable { networking, secret_name, type }

Metadata for an HTTP credential used only in OpenAI-hosted environments. Sandbox code receives a placeholder. The proxy substitutes the secret for allowed HTTPS destinations on ports 443 and 8443. The real secret is not available to sandbox code for local computation and is never returned in this resource.

The destinations where the proxy can substitute the secret, subject to the environment network policy.

secret_name: string

The environment variable name that receives the placeholder in the sandbox.

minLength0
type: "environment_variable"

The type of the object. Always environment_variable.