Class: OpenAI::Models::Beta::Agents::Vaults::CredentialAuth::McpOauth

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/agents/vaults/credential_auth.rb,
sig/openai/models/beta/agents/vaults/credential_auth.rbs

Defined Under Namespace

Classes: Refresh

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, fields, hash, #hash, inherited, #inspect, inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, coerce_with_error, dump, #dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(expires_at:, mcp_server_url:, refresh:, type: :mcp_oauth) ⇒ Object

Parameters:

  • expires_at

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

  • mcp_server_url

    The HTTPS MCP server URL authorized by this credential.

  • refresh

    Public refresh metadata without refresh tokens or OAuth client secrets.

  • type (defaults to: :mcp_oauth)

    The type of the object. Always mcp_oauth.



# File 'lib/openai/models/beta/agents/vaults/credential_auth.rb', line 54

Instance Attribute Details

#expires_atString?

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

Returns:

  • (String, nil)


28
# File 'lib/openai/models/beta/agents/vaults/credential_auth.rb', line 28

required :expires_at, String, nil?: true

#mcp_server_urlString

The HTTPS MCP server URL authorized by this credential.

Returns:

  • (String)


34
# File 'lib/openai/models/beta/agents/vaults/credential_auth.rb', line 34

required :mcp_server_url, String

#refreshOpenAI::Beta::Agents::Vaults::CredentialAuth::McpOauth::Refresh?

Public refresh metadata without refresh tokens or OAuth client secrets.

Returns:

  • (OpenAI::Beta::Agents::Vaults::CredentialAuth::McpOauth::Refresh, nil)


40
41
42
43
44
45
46
# File 'lib/openai/models/beta/agents/vaults/credential_auth.rb', line 40

required(
  :refresh,
  -> {
    OpenAI::Beta::Agents::Vaults::CredentialAuth::McpOauth::Refresh
  },
  nil?: true
)

#type:mcp_oauth

The type of the object. Always mcp_oauth.

Returns:

  • (:mcp_oauth)


52
# File 'lib/openai/models/beta/agents/vaults/credential_auth.rb', line 52

required :type, const: :mcp_oauth

Instance Method Details

#to_hash{

Returns:

  • ({)


50
# File 'sig/openai/models/beta/agents/vaults/credential_auth.rbs', line 50

def to_hash: -> {