One of the following:
RotateVaultCredentialAuthParamMcpOauth { type, access_token, expires_at, refresh }

Rotate an OAuth credential for an HTTPS MCP destination.

type: "mcp_oauth"

The type of the object. Always mcp_oauth.

access_token?: string | null

A write-only replacement OAuth access token.

minLength0
maxLength1048576
expires_at?: string | null

The replacement expiry as an RFC 3339 timestamp, or null to clear it. Omitting this field preserves the expiry unless a new access token is supplied, in which case the expiry is cleared.

minLength0
maxLength1048576
refresh?: Refresh | null

Optional write-only refresh-token and client-secret updates.

refresh_token?: string | null

The replacement refresh token. Omit or pass null to keep the stored token. This secret is never returned in resources.

minLength0
maxLength1048576
scope?: string | null

Replacement space-separated OAuth scopes for refresh requests. Omit to keep the scopes, or pass null to stop sending a scope parameter.

minLength0
maxLength1048576
token_endpoint_auth?: McpOauthTokenEndpointAuthRotateParam | null

Client-secret updates for the existing token endpoint authentication method.

RotateVaultCredentialAuthParamStaticBearer { token, type }

Replace the bearer token for the credential’s MCP server.

token: string

The replacement bearer token. This secret is never returned in credential resources.

minLength0
maxLength1048576
type: "static_bearer"

The type of the object. Always static_bearer.

RotateVaultCredentialAuthParamEnvironmentVariable { secret_value, type }

Replace the secret for an OpenAI-hosted environment credential. The environment variable name and networking configuration remain unchanged.

secret_value: string

The write-only replacement secret. Never returned in credential resources or supplied directly to sandbox code. Must be nonempty and must not contain carriage returns, newlines, or NUL bytes.

minLength1
maxLength1048576
type: "environment_variable"

The type of the object. Always environment_variable.