Module: Telnyx::Models::OAuthClientCreateParams::AllowedGrantType

Extended by:
Internal::Type::Enum
Defined in:
lib/telnyx/models/oauth_client_create_params.rb

Constant Summary collapse

CLIENT_CREDENTIALS =
:client_credentials
AUTHORIZATION_CODE =
:authorization_code
REFRESH_TOKEN =
:refresh_token

Instance Method Summary collapse

Methods included from Internal::Type::Enum

==, ===, coerce, dump, hash, inspect, to_sorbet_type, values

Methods included from Internal::Util::SorbetRuntimeSupport

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

Methods included from Internal::Type::Converter

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

Instance Method Details

#initialize(allowed_grant_types:, allowed_scopes:, client_type:, name:, logo_uri: nil, policy_uri: nil, redirect_uris: nil, require_pkce: nil, tos_uri: nil, request_options: {}) ⇒ Object

Parameters:

  • allowed_grant_types (Array<Symbol, Telnyx::Models::OAuthClientCreateParams::AllowedGrantType>)

    List of allowed OAuth grant types

  • allowed_scopes (Array<String>)

    List of allowed OAuth scopes

  • client_type (Symbol, Telnyx::Models::OAuthClientCreateParams::ClientType)

    OAuth client type

  • name (String)

    The name of the OAuth client

  • logo_uri (String) (defaults to: nil)

    URL of the client logo

  • policy_uri (String) (defaults to: nil)

    URL of the client’s privacy policy

  • redirect_uris (Array<String>) (defaults to: nil)

    List of redirect URIs (required for authorization_code flow)

  • require_pkce (Boolean) (defaults to: nil)

    Whether PKCE (Proof Key for Code Exchange) is required for this client

  • tos_uri (String) (defaults to: nil)

    URL of the client’s terms of service

  • request_options (Telnyx::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


86
87
88
89
90
91
92
93
94
95
# File 'lib/telnyx/models/oauth_client_create_params.rb', line 86

module AllowedGrantType
  extend Telnyx::Internal::Type::Enum

  CLIENT_CREDENTIALS = :client_credentials
  AUTHORIZATION_CODE = :authorization_code
  REFRESH_TOKEN = :refresh_token

  # @!method self.values
  #   @return [Array<Symbol>]
end