telnyx 5.176.0 → 5.177.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/chat_completion_request.rb +10 -4
- data/lib/telnyx/models/ai/inference_embedding_voice_settings.rb +67 -64
- data/lib/telnyx/models/ai/memory/namespaces/profile_ingest_params.rb +7 -16
- data/lib/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rb +7 -16
- data/lib/telnyx/models/ai/privacy_settings.rb +16 -14
- data/lib/telnyx/models/ai/readiness_probe.rb +8 -8
- data/lib/telnyx/models/ai/telephony_settings.rb +25 -1
- data/lib/telnyx/models/ai/typesafe/v1_systemone_params.rb +8 -8
- data/lib/telnyx/models/browser_sessions/wait_for_action.rb +11 -11
- data/lib/telnyx/models/calls/deepgram_flux_config.rb +91 -0
- data/lib/telnyx/models/calls/deepgram_flux_multi_config.rb +103 -0
- data/lib/telnyx/models/calls/deepgram_nova2_specialty_config.rb +113 -0
- data/lib/telnyx/models/calls/deepgram_nova3_medical_config.rb +110 -0
- data/lib/telnyx/models/calls/transcription_engine_community_config.rb +57 -0
- data/lib/telnyx/models/calls/transcription_engine_deepgram_config.rb +5 -372
- data/lib/telnyx/models/calls/transcription_start_request.rb +8 -459
- data/lib/telnyx/models/email_event_list_response.rb +11 -12
- data/lib/telnyx/models/iam/guardrail/iam_guardrail_statement.rb +94 -0
- data/lib/telnyx/models/iam/guardrail/iam_guardrail_statement_response.rb +20 -0
- data/lib/telnyx/models/iam/guardrail/statement_create_params.rb +50 -0
- data/lib/telnyx/models/iam/guardrail/statement_delete_params.rb +24 -0
- data/lib/telnyx/models/iam/guardrail/statement_list_params.rb +34 -0
- data/lib/telnyx/models/iam/guardrail/statement_update_params.rb +57 -0
- data/lib/telnyx/models/iam/guardrail_delete_all_params.rb +16 -0
- data/lib/telnyx/models/iam/iam_action.rb +4 -4
- data/lib/telnyx/models/iam/iam_settings.rb +60 -0
- data/lib/telnyx/models/iam/iam_settings_response.rb +3 -55
- data/lib/telnyx/models/iam/roles/iam_role_statement.rb +13 -1
- data/lib/telnyx/models/iam/roles/iam_role_statement_conditions.rb +27 -0
- data/lib/telnyx/models/iam/roles/statement_create_params.rb +9 -1
- data/lib/telnyx/models/iam/roles/statement_update_params.rb +9 -1
- data/lib/telnyx/models/iam_decision.rb +5 -3
- data/lib/telnyx/models/iam_explain_params.rb +13 -1
- data/lib/telnyx/models/iam_retrieve_access_logs_response.rb +6 -5
- data/lib/telnyx/models/iam_simulate_params.rb +13 -1
- data/lib/telnyx/models/messaging_inbound_message_payload.rb +15 -15
- data/lib/telnyx/models/mobile_phone_number.rb +25 -4
- data/lib/telnyx/models/mobile_phone_number_update_params.rb +38 -4
- data/lib/telnyx/models/model_metadata.rb +28 -1
- data/lib/telnyx/models/phone_numbers/emergency_settings.rb +56 -0
- data/lib/telnyx/models/phone_numbers/numbers_cnam_listing.rb +36 -0
- data/lib/telnyx/models/phone_numbers/numbers_phone_number_with_voice_settings.rb +9 -59
- data/lib/telnyx/models/phone_numbers/numbers_update_phone_number_voice_settings_request.rb +6 -4
- data/lib/telnyx/models/phone_numbers/phone_number_with_voice_settings.rb +3 -55
- data/lib/telnyx/models/sim_cards/action_bulk_enable_voice_params.rb +2 -2
- data/lib/telnyx/models/sim_cards/action_enable_voice_params.rb +2 -2
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +15 -15
- data/lib/telnyx/models/texml_application_list_params.rb +6 -6
- data/lib/telnyx/models/user_profile.rb +11 -1
- data/lib/telnyx/models/user_profile_patch_all_params.rb +1 -9
- data/lib/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rb +223 -0
- data/lib/telnyx/models/whatsapp/phone_number_list_response.rb +220 -0
- data/lib/telnyx/models/whatsapp/whatsapp_phone_response.rb +0 -1
- data/lib/telnyx/resources/calls/actions.rb +1 -1
- data/lib/telnyx/resources/customer_service_records.rb +4 -4
- data/lib/telnyx/resources/iam/guardrail/statements.rb +158 -0
- data/lib/telnyx/resources/iam/guardrail.rb +45 -0
- data/lib/telnyx/resources/iam/roles/statements.rb +13 -6
- data/lib/telnyx/resources/iam.rb +21 -8
- data/lib/telnyx/resources/mobile_phone_numbers.rb +4 -1
- data/lib/telnyx/resources/phone_numbers/voice.rb +1 -1
- data/lib/telnyx/resources/user_profile.rb +1 -3
- data/lib/telnyx/resources/whatsapp/business_accounts/phone_numbers.rb +2 -2
- data/lib/telnyx/resources/whatsapp/phone_numbers.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +20 -0
- data/rbi/telnyx/models/ai/chat_completion_request.rbi +15 -6
- data/rbi/telnyx/models/ai/inference_embedding_voice_settings.rbi +114 -97
- data/rbi/telnyx/models/ai/memory/namespaces/profile_ingest_params.rbi +12 -28
- data/rbi/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rbi +12 -28
- data/rbi/telnyx/models/ai/privacy_settings.rbi +24 -21
- data/rbi/telnyx/models/ai/readiness_probe.rbi +14 -8
- data/rbi/telnyx/models/ai/telephony_settings.rbi +79 -0
- data/rbi/telnyx/models/ai/typesafe/v1_systemone_params.rbi +4 -4
- data/rbi/telnyx/models/browser_sessions/wait_for_action.rbi +24 -24
- data/rbi/telnyx/models/calls/deepgram_flux_config.rbi +192 -0
- data/rbi/telnyx/models/calls/deepgram_flux_multi_config.rbi +251 -0
- data/rbi/telnyx/models/calls/deepgram_nova2_specialty_config.rbi +226 -0
- data/rbi/telnyx/models/calls/deepgram_nova3_medical_config.rbi +220 -0
- data/rbi/telnyx/models/calls/transcription_engine_community_config.rbi +94 -0
- data/rbi/telnyx/models/calls/transcription_engine_deepgram_config.rbi +4 -776
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +25 -989
- data/rbi/telnyx/models/email_event_list_response.rbi +32 -18
- data/rbi/telnyx/models/iam/guardrail/iam_guardrail_statement.rbi +169 -0
- data/rbi/telnyx/models/iam/guardrail/iam_guardrail_statement_response.rbi +45 -0
- data/rbi/telnyx/models/iam/guardrail/statement_create_params.rbi +113 -0
- data/rbi/telnyx/models/iam/guardrail/statement_delete_params.rbi +42 -0
- data/rbi/telnyx/models/iam/guardrail/statement_list_params.rbi +64 -0
- data/rbi/telnyx/models/iam/guardrail/statement_update_params.rbi +109 -0
- data/rbi/telnyx/models/iam/guardrail_delete_all_params.rbi +32 -0
- data/rbi/telnyx/models/iam/iam_action.rbi +6 -4
- data/rbi/telnyx/models/iam/iam_settings.rbi +90 -0
- data/rbi/telnyx/models/iam/iam_settings_response.rbi +4 -105
- data/rbi/telnyx/models/iam/roles/iam_role_statement.rbi +18 -0
- data/rbi/telnyx/models/iam/roles/iam_role_statement_conditions.rbi +41 -0
- data/rbi/telnyx/models/iam/roles/statement_create_params.rbi +18 -0
- data/rbi/telnyx/models/iam/roles/statement_update_params.rbi +18 -0
- data/rbi/telnyx/models/iam_decision.rbi +10 -6
- data/rbi/telnyx/models/iam_explain_params.rbi +10 -0
- data/rbi/telnyx/models/iam_retrieve_access_logs_response.rbi +8 -6
- data/rbi/telnyx/models/iam_simulate_params.rbi +15 -3
- data/rbi/telnyx/models/messaging_inbound_message_payload.rbi +31 -31
- data/rbi/telnyx/models/mobile_phone_number.rbi +19 -0
- data/rbi/telnyx/models/mobile_phone_number_update_params.rbi +19 -0
- data/rbi/telnyx/models/model_metadata.rbi +90 -0
- data/rbi/telnyx/models/phone_numbers/emergency_settings.rbi +133 -0
- data/rbi/telnyx/models/phone_numbers/numbers_cnam_listing.rbi +62 -0
- data/rbi/telnyx/models/phone_numbers/numbers_phone_number_with_voice_settings.rbi +16 -145
- data/rbi/telnyx/models/phone_numbers/numbers_update_phone_number_voice_settings_request.rbi +12 -6
- data/rbi/telnyx/models/phone_numbers/phone_number_with_voice_settings.rbi +4 -139
- data/rbi/telnyx/models/sim_cards/action_bulk_enable_voice_params.rbi +4 -4
- data/rbi/telnyx/models/sim_cards/action_enable_voice_params.rbi +4 -4
- data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +15 -15
- data/rbi/telnyx/models/texml_application_list_params.rbi +7 -7
- data/rbi/telnyx/models/user_profile.rbi +11 -0
- data/rbi/telnyx/models/user_profile_patch_all_params.rbi +0 -11
- data/rbi/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbi +393 -0
- data/rbi/telnyx/models/whatsapp/phone_number_list_response.rbi +391 -0
- data/rbi/telnyx/resources/ai/openai/chat.rbi +5 -2
- data/rbi/telnyx/resources/calls/actions.rbi +5 -5
- data/rbi/telnyx/resources/iam/guardrail/statements.rbi +132 -0
- data/rbi/telnyx/resources/iam/guardrail.rbi +29 -0
- data/rbi/telnyx/resources/iam/roles/statements.rbi +16 -4
- data/rbi/telnyx/resources/iam.rbi +18 -7
- data/rbi/telnyx/resources/mobile_phone_numbers.rbi +2 -0
- data/rbi/telnyx/resources/phone_numbers/voice.rbi +4 -2
- data/rbi/telnyx/resources/sim_cards/actions.rbi +4 -4
- data/rbi/telnyx/resources/user_profile.rbi +0 -3
- data/rbi/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbi +1 -1
- data/rbi/telnyx/resources/whatsapp/phone_numbers.rbi +1 -1
- data/sig/telnyx/models/ai/inference_embedding_voice_settings.rbs +50 -57
- data/sig/telnyx/models/ai/memory/namespaces/profile_ingest_params.rbs +3 -12
- data/sig/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rbs +3 -12
- data/sig/telnyx/models/ai/readiness_probe.rbs +11 -8
- data/sig/telnyx/models/ai/telephony_settings.rbs +21 -0
- data/sig/telnyx/models/ai/typesafe/v1_systemone_params.rbs +4 -4
- data/sig/telnyx/models/browser_sessions/wait_for_action.rbs +12 -13
- data/sig/telnyx/models/calls/deepgram_flux_config.rbs +80 -0
- data/sig/telnyx/models/calls/deepgram_flux_multi_config.rbs +91 -0
- data/sig/telnyx/models/calls/deepgram_nova2_specialty_config.rbs +93 -0
- data/sig/telnyx/models/calls/deepgram_nova3_medical_config.rbs +91 -0
- data/sig/telnyx/models/calls/transcription_engine_community_config.rbs +43 -0
- data/sig/telnyx/models/calls/transcription_engine_deepgram_config.rbs +4 -313
- data/sig/telnyx/models/calls/transcription_start_request.rbs +5 -382
- data/sig/telnyx/models/email_event_list_response.rbs +13 -3
- data/sig/telnyx/models/iam/guardrail/iam_guardrail_statement.rbs +75 -0
- data/sig/telnyx/models/iam/guardrail/iam_guardrail_statement_response.rbs +22 -0
- data/sig/telnyx/models/iam/guardrail/statement_create_params.rbs +50 -0
- data/sig/telnyx/models/iam/guardrail/statement_delete_params.rbs +27 -0
- data/sig/telnyx/models/iam/guardrail/statement_list_params.rbs +36 -0
- data/sig/telnyx/models/iam/guardrail/statement_update_params.rbs +51 -0
- data/sig/telnyx/models/iam/guardrail_delete_all_params.rbs +17 -0
- data/sig/telnyx/models/iam/iam_action.rbs +4 -4
- data/sig/telnyx/models/iam/iam_settings.rbs +49 -0
- data/sig/telnyx/models/iam/iam_settings_response.rbs +4 -47
- data/sig/telnyx/models/iam/roles/iam_role_statement.rbs +5 -0
- data/sig/telnyx/models/iam/roles/iam_role_statement_conditions.rbs +17 -0
- data/sig/telnyx/models/iam/roles/statement_create_params.rbs +9 -0
- data/sig/telnyx/models/iam/roles/statement_update_params.rbs +10 -1
- data/sig/telnyx/models/iam_explain_params.rbs +6 -1
- data/sig/telnyx/models/iam_retrieve_access_logs_response.rbs +4 -4
- data/sig/telnyx/models/iam_simulate_params.rbs +5 -3
- data/sig/telnyx/models/messaging_inbound_message_payload.rbs +18 -18
- data/sig/telnyx/models/model_metadata.rbs +26 -0
- data/sig/telnyx/models/phone_numbers/emergency_settings.rbs +59 -0
- data/sig/telnyx/models/phone_numbers/numbers_cnam_listing.rbs +28 -0
- data/sig/telnyx/models/phone_numbers/numbers_phone_number_with_voice_settings.rbs +12 -66
- data/sig/telnyx/models/phone_numbers/numbers_update_phone_number_voice_settings_request.rbs +6 -6
- data/sig/telnyx/models/phone_numbers/phone_number_with_voice_settings.rbs +6 -60
- data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +15 -15
- data/sig/telnyx/models/texml_application_list_params.rbs +3 -3
- data/sig/telnyx/models/user_profile.rbs +7 -0
- data/sig/telnyx/models/user_profile_patch_all_params.rbs +0 -7
- data/sig/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbs +207 -0
- data/sig/telnyx/models/whatsapp/phone_number_list_response.rbs +205 -0
- data/sig/telnyx/resources/iam/guardrail/statements.rbs +35 -0
- data/sig/telnyx/resources/iam/guardrail.rbs +13 -0
- data/sig/telnyx/resources/iam/roles/statements.rbs +2 -0
- data/sig/telnyx/resources/iam.rbs +3 -0
- data/sig/telnyx/resources/phone_numbers/voice.rbs +1 -1
- data/sig/telnyx/resources/user_profile.rbs +0 -1
- data/sig/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbs +1 -1
- data/sig/telnyx/resources/whatsapp/phone_numbers.rbs +1 -1
- metadata +62 -2
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module Iam
|
|
4
|
+
module Guardrail
|
|
5
|
+
type statement_update_params =
|
|
6
|
+
{
|
|
7
|
+
statement_id: String,
|
|
8
|
+
actions: ::Array[String],
|
|
9
|
+
effect: Telnyx::Models::Iam::Guardrail::StatementUpdateParams::effect
|
|
10
|
+
}
|
|
11
|
+
& Telnyx::Internal::Type::request_parameters
|
|
12
|
+
|
|
13
|
+
class StatementUpdateParams < Telnyx::Internal::Type::BaseModel
|
|
14
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
15
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
16
|
+
|
|
17
|
+
attr_accessor statement_id: String
|
|
18
|
+
|
|
19
|
+
attr_accessor actions: ::Array[String]
|
|
20
|
+
|
|
21
|
+
attr_accessor effect: Telnyx::Models::Iam::Guardrail::StatementUpdateParams::effect
|
|
22
|
+
|
|
23
|
+
def initialize: (
|
|
24
|
+
statement_id: String,
|
|
25
|
+
actions: ::Array[String],
|
|
26
|
+
effect: Telnyx::Models::Iam::Guardrail::StatementUpdateParams::effect,
|
|
27
|
+
?request_options: Telnyx::request_opts
|
|
28
|
+
) -> void
|
|
29
|
+
|
|
30
|
+
def to_hash: -> {
|
|
31
|
+
statement_id: String,
|
|
32
|
+
actions: ::Array[String],
|
|
33
|
+
effect: Telnyx::Models::Iam::Guardrail::StatementUpdateParams::effect,
|
|
34
|
+
request_options: Telnyx::RequestOptions
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
type effect = :allow | :deny
|
|
38
|
+
|
|
39
|
+
module Effect
|
|
40
|
+
extend Telnyx::Internal::Type::Enum
|
|
41
|
+
|
|
42
|
+
ALLOW: :allow
|
|
43
|
+
DENY: :deny
|
|
44
|
+
|
|
45
|
+
def self?.values: -> ::Array[Telnyx::Models::Iam::Guardrail::StatementUpdateParams::effect]
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module Iam
|
|
4
|
+
type guardrail_delete_all_params =
|
|
5
|
+
{ } & Telnyx::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class GuardrailDeleteAllParams < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
def initialize: (?request_options: Telnyx::request_opts) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> { request_options: Telnyx::RequestOptions }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -39,16 +39,16 @@ module Telnyx
|
|
|
39
39
|
record_type: Telnyx::Models::Iam::IamAction::record_type
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
type endpoint = {
|
|
42
|
+
type endpoint = { http_method: String?, path: String }
|
|
43
43
|
|
|
44
44
|
class Endpoint < Telnyx::Internal::Type::BaseModel
|
|
45
|
-
attr_accessor
|
|
45
|
+
attr_accessor http_method: String?
|
|
46
46
|
|
|
47
47
|
attr_accessor path: String
|
|
48
48
|
|
|
49
|
-
def initialize: (
|
|
49
|
+
def initialize: (http_method: String?, path: String) -> void
|
|
50
50
|
|
|
51
|
-
def to_hash: -> {
|
|
51
|
+
def to_hash: -> { http_method: String?, path: String }
|
|
52
52
|
end
|
|
53
53
|
|
|
54
54
|
type record_type = :action
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
class IamSettings = Iam::IamSettings
|
|
4
|
+
|
|
5
|
+
module Iam
|
|
6
|
+
type iam_settings =
|
|
7
|
+
{
|
|
8
|
+
enabled: bool,
|
|
9
|
+
organization_id: String,
|
|
10
|
+
record_type: Telnyx::Models::Iam::IamSettings::record_type,
|
|
11
|
+
updated_at: Time?
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class IamSettings < Telnyx::Internal::Type::BaseModel
|
|
15
|
+
attr_accessor enabled: bool
|
|
16
|
+
|
|
17
|
+
attr_accessor organization_id: String
|
|
18
|
+
|
|
19
|
+
attr_accessor record_type: Telnyx::Models::Iam::IamSettings::record_type
|
|
20
|
+
|
|
21
|
+
attr_accessor updated_at: Time?
|
|
22
|
+
|
|
23
|
+
def initialize: (
|
|
24
|
+
enabled: bool,
|
|
25
|
+
organization_id: String,
|
|
26
|
+
record_type: Telnyx::Models::Iam::IamSettings::record_type,
|
|
27
|
+
updated_at: Time?
|
|
28
|
+
) -> void
|
|
29
|
+
|
|
30
|
+
def to_hash: -> {
|
|
31
|
+
enabled: bool,
|
|
32
|
+
organization_id: String,
|
|
33
|
+
record_type: Telnyx::Models::Iam::IamSettings::record_type,
|
|
34
|
+
updated_at: Time?
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
type record_type = :iam_settings
|
|
38
|
+
|
|
39
|
+
module RecordType
|
|
40
|
+
extend Telnyx::Internal::Type::Enum
|
|
41
|
+
|
|
42
|
+
IAM_SETTINGS: :iam_settings
|
|
43
|
+
|
|
44
|
+
def self?.values: -> ::Array[Telnyx::Models::Iam::IamSettings::record_type]
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -3,57 +3,14 @@ module Telnyx
|
|
|
3
3
|
class IamSettingsResponse = Iam::IamSettingsResponse
|
|
4
4
|
|
|
5
5
|
module Iam
|
|
6
|
-
type iam_settings_response =
|
|
7
|
-
{ data: Telnyx::Iam::IamSettingsResponse::Data }
|
|
6
|
+
type iam_settings_response = { data: Telnyx::Iam::IamSettings }
|
|
8
7
|
|
|
9
8
|
class IamSettingsResponse < Telnyx::Internal::Type::BaseModel
|
|
10
|
-
attr_accessor data: Telnyx::Iam::
|
|
9
|
+
attr_accessor data: Telnyx::Iam::IamSettings
|
|
11
10
|
|
|
12
|
-
def initialize: (data: Telnyx::Iam::
|
|
11
|
+
def initialize: (data: Telnyx::Iam::IamSettings) -> void
|
|
13
12
|
|
|
14
|
-
def to_hash: -> { data: Telnyx::Iam::
|
|
15
|
-
|
|
16
|
-
type data =
|
|
17
|
-
{
|
|
18
|
-
enabled: bool,
|
|
19
|
-
organization_id: String,
|
|
20
|
-
record_type: Telnyx::Models::Iam::IamSettingsResponse::Data::record_type,
|
|
21
|
-
updated_at: Time?
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
|
25
|
-
attr_accessor enabled: bool
|
|
26
|
-
|
|
27
|
-
attr_accessor organization_id: String
|
|
28
|
-
|
|
29
|
-
attr_accessor record_type: Telnyx::Models::Iam::IamSettingsResponse::Data::record_type
|
|
30
|
-
|
|
31
|
-
attr_accessor updated_at: Time?
|
|
32
|
-
|
|
33
|
-
def initialize: (
|
|
34
|
-
enabled: bool,
|
|
35
|
-
organization_id: String,
|
|
36
|
-
record_type: Telnyx::Models::Iam::IamSettingsResponse::Data::record_type,
|
|
37
|
-
updated_at: Time?
|
|
38
|
-
) -> void
|
|
39
|
-
|
|
40
|
-
def to_hash: -> {
|
|
41
|
-
enabled: bool,
|
|
42
|
-
organization_id: String,
|
|
43
|
-
record_type: Telnyx::Models::Iam::IamSettingsResponse::Data::record_type,
|
|
44
|
-
updated_at: Time?
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
type record_type = :iam_settings
|
|
48
|
-
|
|
49
|
-
module RecordType
|
|
50
|
-
extend Telnyx::Internal::Type::Enum
|
|
51
|
-
|
|
52
|
-
IAM_SETTINGS: :iam_settings
|
|
53
|
-
|
|
54
|
-
def self?.values: -> ::Array[Telnyx::Models::Iam::IamSettingsResponse::Data::record_type]
|
|
55
|
-
end
|
|
56
|
-
end
|
|
13
|
+
def to_hash: -> { data: Telnyx::Iam::IamSettings }
|
|
57
14
|
end
|
|
58
15
|
end
|
|
59
16
|
end
|
|
@@ -6,6 +6,7 @@ module Telnyx
|
|
|
6
6
|
{
|
|
7
7
|
id: String,
|
|
8
8
|
actions: ::Array[String],
|
|
9
|
+
conditions: Telnyx::Iam::Roles::IamRoleStatementConditions,
|
|
9
10
|
created_at: Time,
|
|
10
11
|
effect: Telnyx::Models::Iam::Roles::IamRoleStatement::effect,
|
|
11
12
|
record_type: Telnyx::Models::Iam::Roles::IamRoleStatement::record_type,
|
|
@@ -18,6 +19,8 @@ module Telnyx
|
|
|
18
19
|
|
|
19
20
|
attr_accessor actions: ::Array[String]
|
|
20
21
|
|
|
22
|
+
attr_accessor conditions: Telnyx::Iam::Roles::IamRoleStatementConditions
|
|
23
|
+
|
|
21
24
|
attr_accessor created_at: Time
|
|
22
25
|
|
|
23
26
|
attr_accessor effect: Telnyx::Models::Iam::Roles::IamRoleStatement::effect
|
|
@@ -31,6 +34,7 @@ module Telnyx
|
|
|
31
34
|
def initialize: (
|
|
32
35
|
id: String,
|
|
33
36
|
actions: ::Array[String],
|
|
37
|
+
conditions: Telnyx::Iam::Roles::IamRoleStatementConditions,
|
|
34
38
|
created_at: Time,
|
|
35
39
|
effect: Telnyx::Models::Iam::Roles::IamRoleStatement::effect,
|
|
36
40
|
record_type: Telnyx::Models::Iam::Roles::IamRoleStatement::record_type,
|
|
@@ -41,6 +45,7 @@ module Telnyx
|
|
|
41
45
|
def to_hash: -> {
|
|
42
46
|
id: String,
|
|
43
47
|
actions: ::Array[String],
|
|
48
|
+
conditions: Telnyx::Iam::Roles::IamRoleStatementConditions,
|
|
44
49
|
created_at: Time,
|
|
45
50
|
effect: Telnyx::Models::Iam::Roles::IamRoleStatement::effect,
|
|
46
51
|
record_type: Telnyx::Models::Iam::Roles::IamRoleStatement::record_type,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module Iam
|
|
4
|
+
module Roles
|
|
5
|
+
type iam_role_statement_conditions = { ip: ::Array[String]? }
|
|
6
|
+
|
|
7
|
+
class IamRoleStatementConditions < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
attr_accessor ip: ::Array[String]?
|
|
9
|
+
|
|
10
|
+
def initialize: (?ip: ::Array[String]?) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { ip: ::Array[String]? }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -6,6 +6,7 @@ module Telnyx
|
|
|
6
6
|
{
|
|
7
7
|
role_id: String,
|
|
8
8
|
actions: ::Array[String],
|
|
9
|
+
conditions: Telnyx::Iam::Roles::IamRoleStatementConditions,
|
|
9
10
|
effect: Telnyx::Models::Iam::Roles::StatementCreateParams::effect
|
|
10
11
|
}
|
|
11
12
|
& Telnyx::Internal::Type::request_parameters
|
|
@@ -18,6 +19,12 @@ module Telnyx
|
|
|
18
19
|
|
|
19
20
|
attr_accessor actions: ::Array[String]
|
|
20
21
|
|
|
22
|
+
attr_reader conditions: Telnyx::Iam::Roles::IamRoleStatementConditions?
|
|
23
|
+
|
|
24
|
+
def conditions=: (
|
|
25
|
+
Telnyx::Iam::Roles::IamRoleStatementConditions
|
|
26
|
+
) -> Telnyx::Iam::Roles::IamRoleStatementConditions
|
|
27
|
+
|
|
21
28
|
attr_reader effect: Telnyx::Models::Iam::Roles::StatementCreateParams::effect?
|
|
22
29
|
|
|
23
30
|
def effect=: (
|
|
@@ -27,6 +34,7 @@ module Telnyx
|
|
|
27
34
|
def initialize: (
|
|
28
35
|
role_id: String,
|
|
29
36
|
actions: ::Array[String],
|
|
37
|
+
?conditions: Telnyx::Iam::Roles::IamRoleStatementConditions,
|
|
30
38
|
?effect: Telnyx::Models::Iam::Roles::StatementCreateParams::effect,
|
|
31
39
|
?request_options: Telnyx::request_opts
|
|
32
40
|
) -> void
|
|
@@ -34,6 +42,7 @@ module Telnyx
|
|
|
34
42
|
def to_hash: -> {
|
|
35
43
|
role_id: String,
|
|
36
44
|
actions: ::Array[String],
|
|
45
|
+
conditions: Telnyx::Iam::Roles::IamRoleStatementConditions,
|
|
37
46
|
effect: Telnyx::Models::Iam::Roles::StatementCreateParams::effect,
|
|
38
47
|
request_options: Telnyx::RequestOptions
|
|
39
48
|
}
|
|
@@ -7,7 +7,8 @@ module Telnyx
|
|
|
7
7
|
role_id: String,
|
|
8
8
|
statement_id: String,
|
|
9
9
|
actions: ::Array[String],
|
|
10
|
-
effect: Telnyx::Models::Iam::Roles::StatementUpdateParams::effect
|
|
10
|
+
effect: Telnyx::Models::Iam::Roles::StatementUpdateParams::effect,
|
|
11
|
+
conditions: Telnyx::Iam::Roles::IamRoleStatementConditions
|
|
11
12
|
}
|
|
12
13
|
& Telnyx::Internal::Type::request_parameters
|
|
13
14
|
|
|
@@ -23,11 +24,18 @@ module Telnyx
|
|
|
23
24
|
|
|
24
25
|
attr_accessor effect: Telnyx::Models::Iam::Roles::StatementUpdateParams::effect
|
|
25
26
|
|
|
27
|
+
attr_reader conditions: Telnyx::Iam::Roles::IamRoleStatementConditions?
|
|
28
|
+
|
|
29
|
+
def conditions=: (
|
|
30
|
+
Telnyx::Iam::Roles::IamRoleStatementConditions
|
|
31
|
+
) -> Telnyx::Iam::Roles::IamRoleStatementConditions
|
|
32
|
+
|
|
26
33
|
def initialize: (
|
|
27
34
|
role_id: String,
|
|
28
35
|
statement_id: String,
|
|
29
36
|
actions: ::Array[String],
|
|
30
37
|
effect: Telnyx::Models::Iam::Roles::StatementUpdateParams::effect,
|
|
38
|
+
?conditions: Telnyx::Iam::Roles::IamRoleStatementConditions,
|
|
31
39
|
?request_options: Telnyx::request_opts
|
|
32
40
|
) -> void
|
|
33
41
|
|
|
@@ -36,6 +44,7 @@ module Telnyx
|
|
|
36
44
|
statement_id: String,
|
|
37
45
|
actions: ::Array[String],
|
|
38
46
|
effect: Telnyx::Models::Iam::Roles::StatementUpdateParams::effect,
|
|
47
|
+
conditions: Telnyx::Iam::Roles::IamRoleStatementConditions,
|
|
39
48
|
request_options: Telnyx::RequestOptions
|
|
40
49
|
}
|
|
41
50
|
|
|
@@ -4,7 +4,8 @@ module Telnyx
|
|
|
4
4
|
{
|
|
5
5
|
action: String,
|
|
6
6
|
principal_id: String,
|
|
7
|
-
principal_type: Telnyx::Models::IamExplainParams::principal_type
|
|
7
|
+
principal_type: Telnyx::Models::IamExplainParams::principal_type,
|
|
8
|
+
ip: String?
|
|
8
9
|
}
|
|
9
10
|
& Telnyx::Internal::Type::request_parameters
|
|
10
11
|
|
|
@@ -18,10 +19,13 @@ module Telnyx
|
|
|
18
19
|
|
|
19
20
|
attr_accessor principal_type: Telnyx::Models::IamExplainParams::principal_type
|
|
20
21
|
|
|
22
|
+
attr_accessor ip: String?
|
|
23
|
+
|
|
21
24
|
def initialize: (
|
|
22
25
|
action: String,
|
|
23
26
|
principal_id: String,
|
|
24
27
|
principal_type: Telnyx::Models::IamExplainParams::principal_type,
|
|
28
|
+
?ip: String?,
|
|
25
29
|
?request_options: Telnyx::request_opts
|
|
26
30
|
) -> void
|
|
27
31
|
|
|
@@ -29,6 +33,7 @@ module Telnyx
|
|
|
29
33
|
action: String,
|
|
30
34
|
principal_id: String,
|
|
31
35
|
principal_type: Telnyx::Models::IamExplainParams::principal_type,
|
|
36
|
+
ip: String?,
|
|
32
37
|
request_options: Telnyx::RequestOptions
|
|
33
38
|
}
|
|
34
39
|
|
|
@@ -32,7 +32,7 @@ module Telnyx
|
|
|
32
32
|
decision_reason: String,
|
|
33
33
|
denied_role_ids: ::Array[String],
|
|
34
34
|
ip_ingress: String?,
|
|
35
|
-
|
|
35
|
+
http_method: String,
|
|
36
36
|
path: String,
|
|
37
37
|
record_type: Telnyx::Models::IamRetrieveAccessLogsResponse::Data::record_type,
|
|
38
38
|
request_id: String?,
|
|
@@ -60,7 +60,7 @@ module Telnyx
|
|
|
60
60
|
|
|
61
61
|
attr_accessor ip_ingress: String?
|
|
62
62
|
|
|
63
|
-
attr_accessor
|
|
63
|
+
attr_accessor http_method: String
|
|
64
64
|
|
|
65
65
|
attr_accessor path: String
|
|
66
66
|
|
|
@@ -84,7 +84,7 @@ module Telnyx
|
|
|
84
84
|
decision_reason: String,
|
|
85
85
|
denied_role_ids: ::Array[String],
|
|
86
86
|
ip_ingress: String?,
|
|
87
|
-
|
|
87
|
+
http_method: String,
|
|
88
88
|
path: String,
|
|
89
89
|
record_type: Telnyx::Models::IamRetrieveAccessLogsResponse::Data::record_type,
|
|
90
90
|
request_id: String?,
|
|
@@ -103,7 +103,7 @@ module Telnyx
|
|
|
103
103
|
decision_reason: String,
|
|
104
104
|
denied_role_ids: ::Array[String],
|
|
105
105
|
ip_ingress: String?,
|
|
106
|
-
|
|
106
|
+
http_method: String,
|
|
107
107
|
path: String,
|
|
108
108
|
record_type: Telnyx::Models::IamRetrieveAccessLogsResponse::Data::record_type,
|
|
109
109
|
request_id: String?,
|
|
@@ -48,14 +48,16 @@ module Telnyx
|
|
|
48
48
|
def self?.values: -> ::Array[Telnyx::Models::IamSimulateParams::principal_type]
|
|
49
49
|
end
|
|
50
50
|
|
|
51
|
-
type request = { action: String }
|
|
51
|
+
type request = { action: String, ip: String? }
|
|
52
52
|
|
|
53
53
|
class Request < Telnyx::Internal::Type::BaseModel
|
|
54
54
|
attr_accessor action: String
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
attr_accessor ip: String?
|
|
57
57
|
|
|
58
|
-
def
|
|
58
|
+
def initialize: (action: String, ?ip: String?) -> void
|
|
59
|
+
|
|
60
|
+
def to_hash: -> { action: String, ip: String? }
|
|
59
61
|
end
|
|
60
62
|
end
|
|
61
63
|
end
|
|
@@ -816,23 +816,23 @@ module Telnyx
|
|
|
816
816
|
end
|
|
817
817
|
|
|
818
818
|
type to =
|
|
819
|
-
::Array[Telnyx::MessagingInboundMessagePayload::To::
|
|
819
|
+
::Array[Telnyx::MessagingInboundMessagePayload::To::RecipientList]
|
|
820
820
|
| String
|
|
821
821
|
|
|
822
822
|
module To
|
|
823
823
|
extend Telnyx::Internal::Type::Union
|
|
824
824
|
|
|
825
|
-
type
|
|
825
|
+
type recipient_list =
|
|
826
826
|
{
|
|
827
827
|
agent_id: String,
|
|
828
828
|
agent_name: String,
|
|
829
829
|
carrier: String,
|
|
830
|
-
line_type: Telnyx::Models::MessagingInboundMessagePayload::To::
|
|
830
|
+
line_type: Telnyx::Models::MessagingInboundMessagePayload::To::RecipientList::line_type,
|
|
831
831
|
phone_number: String,
|
|
832
|
-
status: Telnyx::Models::MessagingInboundMessagePayload::To::
|
|
832
|
+
status: Telnyx::Models::MessagingInboundMessagePayload::To::RecipientList::status
|
|
833
833
|
}
|
|
834
834
|
|
|
835
|
-
class
|
|
835
|
+
class RecipientList < Telnyx::Internal::Type::BaseModel
|
|
836
836
|
attr_reader agent_id: String?
|
|
837
837
|
|
|
838
838
|
def agent_id=: (String) -> String
|
|
@@ -845,38 +845,38 @@ module Telnyx
|
|
|
845
845
|
|
|
846
846
|
def carrier=: (String) -> String
|
|
847
847
|
|
|
848
|
-
attr_reader line_type: Telnyx::Models::MessagingInboundMessagePayload::To::
|
|
848
|
+
attr_reader line_type: Telnyx::Models::MessagingInboundMessagePayload::To::RecipientList::line_type?
|
|
849
849
|
|
|
850
850
|
def line_type=: (
|
|
851
|
-
Telnyx::Models::MessagingInboundMessagePayload::To::
|
|
852
|
-
) -> Telnyx::Models::MessagingInboundMessagePayload::To::
|
|
851
|
+
Telnyx::Models::MessagingInboundMessagePayload::To::RecipientList::line_type
|
|
852
|
+
) -> Telnyx::Models::MessagingInboundMessagePayload::To::RecipientList::line_type
|
|
853
853
|
|
|
854
854
|
attr_reader phone_number: String?
|
|
855
855
|
|
|
856
856
|
def phone_number=: (String) -> String
|
|
857
857
|
|
|
858
|
-
attr_reader status: Telnyx::Models::MessagingInboundMessagePayload::To::
|
|
858
|
+
attr_reader status: Telnyx::Models::MessagingInboundMessagePayload::To::RecipientList::status?
|
|
859
859
|
|
|
860
860
|
def status=: (
|
|
861
|
-
Telnyx::Models::MessagingInboundMessagePayload::To::
|
|
862
|
-
) -> Telnyx::Models::MessagingInboundMessagePayload::To::
|
|
861
|
+
Telnyx::Models::MessagingInboundMessagePayload::To::RecipientList::status
|
|
862
|
+
) -> Telnyx::Models::MessagingInboundMessagePayload::To::RecipientList::status
|
|
863
863
|
|
|
864
864
|
def initialize: (
|
|
865
865
|
?agent_id: String,
|
|
866
866
|
?agent_name: String,
|
|
867
867
|
?carrier: String,
|
|
868
|
-
?line_type: Telnyx::Models::MessagingInboundMessagePayload::To::
|
|
868
|
+
?line_type: Telnyx::Models::MessagingInboundMessagePayload::To::RecipientList::line_type,
|
|
869
869
|
?phone_number: String,
|
|
870
|
-
?status: Telnyx::Models::MessagingInboundMessagePayload::To::
|
|
870
|
+
?status: Telnyx::Models::MessagingInboundMessagePayload::To::RecipientList::status
|
|
871
871
|
) -> void
|
|
872
872
|
|
|
873
873
|
def to_hash: -> {
|
|
874
874
|
agent_id: String,
|
|
875
875
|
agent_name: String,
|
|
876
876
|
carrier: String,
|
|
877
|
-
line_type: Telnyx::Models::MessagingInboundMessagePayload::To::
|
|
877
|
+
line_type: Telnyx::Models::MessagingInboundMessagePayload::To::RecipientList::line_type,
|
|
878
878
|
phone_number: String,
|
|
879
|
-
status: Telnyx::Models::MessagingInboundMessagePayload::To::
|
|
879
|
+
status: Telnyx::Models::MessagingInboundMessagePayload::To::RecipientList::status
|
|
880
880
|
}
|
|
881
881
|
|
|
882
882
|
type line_type =
|
|
@@ -892,7 +892,7 @@ module Telnyx
|
|
|
892
892
|
PRE_PAID_WIRELESS: :"Pre-Paid Wireless"
|
|
893
893
|
EMPTY: :""
|
|
894
894
|
|
|
895
|
-
def self?.values: -> ::Array[Telnyx::Models::MessagingInboundMessagePayload::To::
|
|
895
|
+
def self?.values: -> ::Array[Telnyx::Models::MessagingInboundMessagePayload::To::RecipientList::line_type]
|
|
896
896
|
end
|
|
897
897
|
|
|
898
898
|
type status =
|
|
@@ -917,13 +917,13 @@ module Telnyx
|
|
|
917
917
|
DELIVERY_UNCONFIRMED: :delivery_unconfirmed
|
|
918
918
|
WEBHOOK_DELIVERED: :webhook_delivered
|
|
919
919
|
|
|
920
|
-
def self?.values: -> ::Array[Telnyx::Models::MessagingInboundMessagePayload::To::
|
|
920
|
+
def self?.values: -> ::Array[Telnyx::Models::MessagingInboundMessagePayload::To::RecipientList::status]
|
|
921
921
|
end
|
|
922
922
|
end
|
|
923
923
|
|
|
924
924
|
def self?.variants: -> ::Array[Telnyx::Models::MessagingInboundMessagePayload::to]
|
|
925
925
|
|
|
926
|
-
|
|
926
|
+
RecipientListArray: Telnyx::Internal::Type::Converter
|
|
927
927
|
end
|
|
928
928
|
|
|
929
929
|
type type_ = :SMS | :MMS | :WHATSAPP | :RCS
|
|
@@ -23,6 +23,7 @@ module Telnyx
|
|
|
23
23
|
recommended_for_assistants: bool,
|
|
24
24
|
regions: ::Array[String],
|
|
25
25
|
service_tiers: ::Array[Telnyx::Models::ModelMetadata::service_tier],
|
|
26
|
+
supported_reasoning_efforts: ::Array[Telnyx::Models::ModelMetadata::supported_reasoning_effort],
|
|
26
27
|
task: String
|
|
27
28
|
}
|
|
28
29
|
|
|
@@ -87,6 +88,12 @@ module Telnyx
|
|
|
87
88
|
::Array[Telnyx::Models::ModelMetadata::service_tier]
|
|
88
89
|
) -> ::Array[Telnyx::Models::ModelMetadata::service_tier]
|
|
89
90
|
|
|
91
|
+
attr_reader supported_reasoning_efforts: ::Array[Telnyx::Models::ModelMetadata::supported_reasoning_effort]?
|
|
92
|
+
|
|
93
|
+
def supported_reasoning_efforts=: (
|
|
94
|
+
::Array[Telnyx::Models::ModelMetadata::supported_reasoning_effort]
|
|
95
|
+
) -> ::Array[Telnyx::Models::ModelMetadata::supported_reasoning_effort]
|
|
96
|
+
|
|
90
97
|
attr_reader task: String?
|
|
91
98
|
|
|
92
99
|
def task=: (String) -> String
|
|
@@ -113,6 +120,7 @@ module Telnyx
|
|
|
113
120
|
?recommended_for_assistants: bool,
|
|
114
121
|
?regions: ::Array[String],
|
|
115
122
|
?service_tiers: ::Array[Telnyx::Models::ModelMetadata::service_tier],
|
|
123
|
+
?supported_reasoning_efforts: ::Array[Telnyx::Models::ModelMetadata::supported_reasoning_effort],
|
|
116
124
|
?task: String
|
|
117
125
|
) -> void
|
|
118
126
|
|
|
@@ -138,6 +146,7 @@ module Telnyx
|
|
|
138
146
|
recommended_for_assistants: bool,
|
|
139
147
|
regions: ::Array[String],
|
|
140
148
|
service_tiers: ::Array[Telnyx::Models::ModelMetadata::service_tier],
|
|
149
|
+
supported_reasoning_efforts: ::Array[Telnyx::Models::ModelMetadata::supported_reasoning_effort],
|
|
141
150
|
task: String
|
|
142
151
|
}
|
|
143
152
|
|
|
@@ -165,6 +174,23 @@ module Telnyx
|
|
|
165
174
|
|
|
166
175
|
def self?.values: -> ::Array[Telnyx::Models::ModelMetadata::service_tier]
|
|
167
176
|
end
|
|
177
|
+
|
|
178
|
+
type supported_reasoning_effort =
|
|
179
|
+
:none | :minimal | :low | :medium | :high | :xhigh | :max
|
|
180
|
+
|
|
181
|
+
module SupportedReasoningEffort
|
|
182
|
+
extend Telnyx::Internal::Type::Enum
|
|
183
|
+
|
|
184
|
+
NONE: :none
|
|
185
|
+
MINIMAL: :minimal
|
|
186
|
+
LOW: :low
|
|
187
|
+
MEDIUM: :medium
|
|
188
|
+
HIGH: :high
|
|
189
|
+
XHIGH: :xhigh
|
|
190
|
+
MAX: :max
|
|
191
|
+
|
|
192
|
+
def self?.values: -> ::Array[Telnyx::Models::ModelMetadata::supported_reasoning_effort]
|
|
193
|
+
end
|
|
168
194
|
end
|
|
169
195
|
end
|
|
170
196
|
end
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module PhoneNumbers
|
|
4
|
+
type emergency_settings =
|
|
5
|
+
{
|
|
6
|
+
emergency_address_id: String,
|
|
7
|
+
emergency_enabled: bool,
|
|
8
|
+
emergency_status: Telnyx::Models::PhoneNumbers::EmergencySettings::emergency_status
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class EmergencySettings < Telnyx::Internal::Type::BaseModel
|
|
12
|
+
attr_reader emergency_address_id: String?
|
|
13
|
+
|
|
14
|
+
def emergency_address_id=: (String) -> String
|
|
15
|
+
|
|
16
|
+
attr_reader emergency_enabled: bool?
|
|
17
|
+
|
|
18
|
+
def emergency_enabled=: (bool) -> bool
|
|
19
|
+
|
|
20
|
+
attr_reader emergency_status: Telnyx::Models::PhoneNumbers::EmergencySettings::emergency_status?
|
|
21
|
+
|
|
22
|
+
def emergency_status=: (
|
|
23
|
+
Telnyx::Models::PhoneNumbers::EmergencySettings::emergency_status
|
|
24
|
+
) -> Telnyx::Models::PhoneNumbers::EmergencySettings::emergency_status
|
|
25
|
+
|
|
26
|
+
def initialize: (
|
|
27
|
+
?emergency_address_id: String,
|
|
28
|
+
?emergency_enabled: bool,
|
|
29
|
+
?emergency_status: Telnyx::Models::PhoneNumbers::EmergencySettings::emergency_status
|
|
30
|
+
) -> void
|
|
31
|
+
|
|
32
|
+
def to_hash: -> {
|
|
33
|
+
emergency_address_id: String,
|
|
34
|
+
emergency_enabled: bool,
|
|
35
|
+
emergency_status: Telnyx::Models::PhoneNumbers::EmergencySettings::emergency_status
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
type emergency_status =
|
|
39
|
+
:disabled
|
|
40
|
+
| :active
|
|
41
|
+
| :provisioning
|
|
42
|
+
| :deprovisioning
|
|
43
|
+
| :"provisioning-failed"
|
|
44
|
+
|
|
45
|
+
module EmergencyStatus
|
|
46
|
+
extend Telnyx::Internal::Type::Enum
|
|
47
|
+
|
|
48
|
+
DISABLED: :disabled
|
|
49
|
+
ACTIVE: :active
|
|
50
|
+
PROVISIONING: :provisioning
|
|
51
|
+
DEPROVISIONING: :deprovisioning
|
|
52
|
+
PROVISIONING_FAILED: :"provisioning-failed"
|
|
53
|
+
|
|
54
|
+
def self?.values: -> ::Array[Telnyx::Models::PhoneNumbers::EmergencySettings::emergency_status]
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module PhoneNumbers
|
|
4
|
+
type numbers_cnam_listing =
|
|
5
|
+
{ cnam_listing_details: String, cnam_listing_enabled: bool }
|
|
6
|
+
|
|
7
|
+
class NumbersCnamListing < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
attr_reader cnam_listing_details: String?
|
|
9
|
+
|
|
10
|
+
def cnam_listing_details=: (String) -> String
|
|
11
|
+
|
|
12
|
+
attr_reader cnam_listing_enabled: bool?
|
|
13
|
+
|
|
14
|
+
def cnam_listing_enabled=: (bool) -> bool
|
|
15
|
+
|
|
16
|
+
def initialize: (
|
|
17
|
+
?cnam_listing_details: String,
|
|
18
|
+
?cnam_listing_enabled: bool
|
|
19
|
+
) -> void
|
|
20
|
+
|
|
21
|
+
def to_hash: -> {
|
|
22
|
+
cnam_listing_details: String,
|
|
23
|
+
cnam_listing_enabled: bool
|
|
24
|
+
}
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|