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,391 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Whatsapp
|
|
6
|
+
class PhoneNumberListResponse < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Telnyx::Models::Whatsapp::PhoneNumberListResponse,
|
|
11
|
+
Telnyx::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
16
|
+
attr_reader :calling_enabled
|
|
17
|
+
|
|
18
|
+
sig { params(calling_enabled: T::Boolean).void }
|
|
19
|
+
attr_writer :calling_enabled
|
|
20
|
+
|
|
21
|
+
# Current lifecycle state for a coexistence number. This is null for a standard
|
|
22
|
+
# Cloud API number.
|
|
23
|
+
sig do
|
|
24
|
+
returns(
|
|
25
|
+
T.nilable(
|
|
26
|
+
Telnyx::Models::Whatsapp::PhoneNumberListResponse::CoexistenceState::TaggedSymbol
|
|
27
|
+
)
|
|
28
|
+
)
|
|
29
|
+
end
|
|
30
|
+
attr_accessor :coexistence_state
|
|
31
|
+
|
|
32
|
+
sig { returns(T.nilable(Time)) }
|
|
33
|
+
attr_reader :created_at
|
|
34
|
+
|
|
35
|
+
sig { params(created_at: Time).void }
|
|
36
|
+
attr_writer :created_at
|
|
37
|
+
|
|
38
|
+
sig { returns(T.nilable(String)) }
|
|
39
|
+
attr_reader :display_name
|
|
40
|
+
|
|
41
|
+
sig { params(display_name: String).void }
|
|
42
|
+
attr_writer :display_name
|
|
43
|
+
|
|
44
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
45
|
+
attr_reader :enabled
|
|
46
|
+
|
|
47
|
+
sig { params(enabled: T::Boolean).void }
|
|
48
|
+
attr_writer :enabled
|
|
49
|
+
|
|
50
|
+
# Indicates whether the number is connected to both the WhatsApp Business app and
|
|
51
|
+
# Cloud API through WhatsApp Coexistence.
|
|
52
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
53
|
+
attr_reader :is_on_biz_app
|
|
54
|
+
|
|
55
|
+
sig { params(is_on_biz_app: T::Boolean).void }
|
|
56
|
+
attr_writer :is_on_biz_app
|
|
57
|
+
|
|
58
|
+
# Meta-provided messaging limit tier
|
|
59
|
+
sig { returns(T.nilable(String)) }
|
|
60
|
+
attr_reader :messaging_limit_tier
|
|
61
|
+
|
|
62
|
+
sig { params(messaging_limit_tier: String).void }
|
|
63
|
+
attr_writer :messaging_limit_tier
|
|
64
|
+
|
|
65
|
+
# Meta display-name approval status
|
|
66
|
+
sig { returns(T.nilable(String)) }
|
|
67
|
+
attr_reader :name_status
|
|
68
|
+
|
|
69
|
+
sig { params(name_status: String).void }
|
|
70
|
+
attr_writer :name_status
|
|
71
|
+
|
|
72
|
+
# Phone number in E164 format
|
|
73
|
+
sig { returns(T.nilable(String)) }
|
|
74
|
+
attr_reader :phone_number
|
|
75
|
+
|
|
76
|
+
sig { params(phone_number: String).void }
|
|
77
|
+
attr_writer :phone_number
|
|
78
|
+
|
|
79
|
+
# Whatsapp phone number ID
|
|
80
|
+
sig { returns(T.nilable(String)) }
|
|
81
|
+
attr_reader :phone_number_id
|
|
82
|
+
|
|
83
|
+
sig { params(phone_number_id: String).void }
|
|
84
|
+
attr_writer :phone_number_id
|
|
85
|
+
|
|
86
|
+
# Whatsapp quality rating
|
|
87
|
+
sig { returns(T.nilable(String)) }
|
|
88
|
+
attr_reader :quality_rating
|
|
89
|
+
|
|
90
|
+
sig { params(quality_rating: String).void }
|
|
91
|
+
attr_writer :quality_rating
|
|
92
|
+
|
|
93
|
+
sig { returns(T.nilable(String)) }
|
|
94
|
+
attr_reader :record_type
|
|
95
|
+
|
|
96
|
+
sig { params(record_type: String).void }
|
|
97
|
+
attr_writer :record_type
|
|
98
|
+
|
|
99
|
+
sig { returns(T.nilable(String)) }
|
|
100
|
+
attr_reader :status
|
|
101
|
+
|
|
102
|
+
sig { params(status: String).void }
|
|
103
|
+
attr_writer :status
|
|
104
|
+
|
|
105
|
+
# Deadline for initiating the current coexistence synchronization cycle. This is
|
|
106
|
+
# null when no deadline applies.
|
|
107
|
+
sig { returns(T.nilable(Time)) }
|
|
108
|
+
attr_accessor :sync_deadline
|
|
109
|
+
|
|
110
|
+
# Synchronization progress. This object is returned only while a coexistence
|
|
111
|
+
# number is synchronizing.
|
|
112
|
+
sig do
|
|
113
|
+
returns(
|
|
114
|
+
T.nilable(
|
|
115
|
+
Telnyx::Models::Whatsapp::PhoneNumberListResponse::SyncProgress
|
|
116
|
+
)
|
|
117
|
+
)
|
|
118
|
+
end
|
|
119
|
+
attr_reader :sync_progress
|
|
120
|
+
|
|
121
|
+
sig do
|
|
122
|
+
params(
|
|
123
|
+
sync_progress:
|
|
124
|
+
T.nilable(
|
|
125
|
+
Telnyx::Models::Whatsapp::PhoneNumberListResponse::SyncProgress::OrHash
|
|
126
|
+
)
|
|
127
|
+
).void
|
|
128
|
+
end
|
|
129
|
+
attr_writer :sync_progress
|
|
130
|
+
|
|
131
|
+
# User ID
|
|
132
|
+
sig { returns(T.nilable(String)) }
|
|
133
|
+
attr_reader :user_id
|
|
134
|
+
|
|
135
|
+
sig { params(user_id: String).void }
|
|
136
|
+
attr_writer :user_id
|
|
137
|
+
|
|
138
|
+
# Alias of display_name as stored; may reflect a pending or rejected name update
|
|
139
|
+
# until the next sync. See name_status for Meta's approval state.
|
|
140
|
+
sig { returns(T.nilable(String)) }
|
|
141
|
+
attr_reader :verified_name
|
|
142
|
+
|
|
143
|
+
sig { params(verified_name: String).void }
|
|
144
|
+
attr_writer :verified_name
|
|
145
|
+
|
|
146
|
+
# WABA ID of Whatsapp business account
|
|
147
|
+
sig { returns(T.nilable(String)) }
|
|
148
|
+
attr_reader :waba_id
|
|
149
|
+
|
|
150
|
+
sig { params(waba_id: String).void }
|
|
151
|
+
attr_writer :waba_id
|
|
152
|
+
|
|
153
|
+
sig do
|
|
154
|
+
params(
|
|
155
|
+
calling_enabled: T::Boolean,
|
|
156
|
+
coexistence_state:
|
|
157
|
+
T.nilable(
|
|
158
|
+
Telnyx::Models::Whatsapp::PhoneNumberListResponse::CoexistenceState::OrSymbol
|
|
159
|
+
),
|
|
160
|
+
created_at: Time,
|
|
161
|
+
display_name: String,
|
|
162
|
+
enabled: T::Boolean,
|
|
163
|
+
is_on_biz_app: T::Boolean,
|
|
164
|
+
messaging_limit_tier: String,
|
|
165
|
+
name_status: String,
|
|
166
|
+
phone_number: String,
|
|
167
|
+
phone_number_id: String,
|
|
168
|
+
quality_rating: String,
|
|
169
|
+
record_type: String,
|
|
170
|
+
status: String,
|
|
171
|
+
sync_deadline: T.nilable(Time),
|
|
172
|
+
sync_progress:
|
|
173
|
+
T.nilable(
|
|
174
|
+
Telnyx::Models::Whatsapp::PhoneNumberListResponse::SyncProgress::OrHash
|
|
175
|
+
),
|
|
176
|
+
user_id: String,
|
|
177
|
+
verified_name: String,
|
|
178
|
+
waba_id: String
|
|
179
|
+
).returns(T.attached_class)
|
|
180
|
+
end
|
|
181
|
+
def self.new(
|
|
182
|
+
calling_enabled: nil,
|
|
183
|
+
# Current lifecycle state for a coexistence number. This is null for a standard
|
|
184
|
+
# Cloud API number.
|
|
185
|
+
coexistence_state: nil,
|
|
186
|
+
created_at: nil,
|
|
187
|
+
display_name: nil,
|
|
188
|
+
enabled: nil,
|
|
189
|
+
# Indicates whether the number is connected to both the WhatsApp Business app and
|
|
190
|
+
# Cloud API through WhatsApp Coexistence.
|
|
191
|
+
is_on_biz_app: nil,
|
|
192
|
+
# Meta-provided messaging limit tier
|
|
193
|
+
messaging_limit_tier: nil,
|
|
194
|
+
# Meta display-name approval status
|
|
195
|
+
name_status: nil,
|
|
196
|
+
# Phone number in E164 format
|
|
197
|
+
phone_number: nil,
|
|
198
|
+
# Whatsapp phone number ID
|
|
199
|
+
phone_number_id: nil,
|
|
200
|
+
# Whatsapp quality rating
|
|
201
|
+
quality_rating: nil,
|
|
202
|
+
record_type: nil,
|
|
203
|
+
status: nil,
|
|
204
|
+
# Deadline for initiating the current coexistence synchronization cycle. This is
|
|
205
|
+
# null when no deadline applies.
|
|
206
|
+
sync_deadline: nil,
|
|
207
|
+
# Synchronization progress. This object is returned only while a coexistence
|
|
208
|
+
# number is synchronizing.
|
|
209
|
+
sync_progress: nil,
|
|
210
|
+
# User ID
|
|
211
|
+
user_id: nil,
|
|
212
|
+
# Alias of display_name as stored; may reflect a pending or rejected name update
|
|
213
|
+
# until the next sync. See name_status for Meta's approval state.
|
|
214
|
+
verified_name: nil,
|
|
215
|
+
# WABA ID of Whatsapp business account
|
|
216
|
+
waba_id: nil
|
|
217
|
+
)
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
sig do
|
|
221
|
+
override.returns(
|
|
222
|
+
{
|
|
223
|
+
calling_enabled: T::Boolean,
|
|
224
|
+
coexistence_state:
|
|
225
|
+
T.nilable(
|
|
226
|
+
Telnyx::Models::Whatsapp::PhoneNumberListResponse::CoexistenceState::TaggedSymbol
|
|
227
|
+
),
|
|
228
|
+
created_at: Time,
|
|
229
|
+
display_name: String,
|
|
230
|
+
enabled: T::Boolean,
|
|
231
|
+
is_on_biz_app: T::Boolean,
|
|
232
|
+
messaging_limit_tier: String,
|
|
233
|
+
name_status: String,
|
|
234
|
+
phone_number: String,
|
|
235
|
+
phone_number_id: String,
|
|
236
|
+
quality_rating: String,
|
|
237
|
+
record_type: String,
|
|
238
|
+
status: String,
|
|
239
|
+
sync_deadline: T.nilable(Time),
|
|
240
|
+
sync_progress:
|
|
241
|
+
T.nilable(
|
|
242
|
+
Telnyx::Models::Whatsapp::PhoneNumberListResponse::SyncProgress
|
|
243
|
+
),
|
|
244
|
+
user_id: String,
|
|
245
|
+
verified_name: String,
|
|
246
|
+
waba_id: String
|
|
247
|
+
}
|
|
248
|
+
)
|
|
249
|
+
end
|
|
250
|
+
def to_hash
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
# Current lifecycle state for a coexistence number. This is null for a standard
|
|
254
|
+
# Cloud API number.
|
|
255
|
+
module CoexistenceState
|
|
256
|
+
extend Telnyx::Internal::Type::Enum
|
|
257
|
+
|
|
258
|
+
TaggedSymbol =
|
|
259
|
+
T.type_alias do
|
|
260
|
+
T.all(
|
|
261
|
+
Symbol,
|
|
262
|
+
Telnyx::Models::Whatsapp::PhoneNumberListResponse::CoexistenceState
|
|
263
|
+
)
|
|
264
|
+
end
|
|
265
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
266
|
+
|
|
267
|
+
PENDING_ONBOARDING =
|
|
268
|
+
T.let(
|
|
269
|
+
:pending_onboarding,
|
|
270
|
+
Telnyx::Models::Whatsapp::PhoneNumberListResponse::CoexistenceState::TaggedSymbol
|
|
271
|
+
)
|
|
272
|
+
SYNC_PENDING =
|
|
273
|
+
T.let(
|
|
274
|
+
:sync_pending,
|
|
275
|
+
Telnyx::Models::Whatsapp::PhoneNumberListResponse::CoexistenceState::TaggedSymbol
|
|
276
|
+
)
|
|
277
|
+
SYNCING =
|
|
278
|
+
T.let(
|
|
279
|
+
:syncing,
|
|
280
|
+
Telnyx::Models::Whatsapp::PhoneNumberListResponse::CoexistenceState::TaggedSymbol
|
|
281
|
+
)
|
|
282
|
+
SYNC_COMPLETE =
|
|
283
|
+
T.let(
|
|
284
|
+
:sync_complete,
|
|
285
|
+
Telnyx::Models::Whatsapp::PhoneNumberListResponse::CoexistenceState::TaggedSymbol
|
|
286
|
+
)
|
|
287
|
+
ACTIVE =
|
|
288
|
+
T.let(
|
|
289
|
+
:active,
|
|
290
|
+
Telnyx::Models::Whatsapp::PhoneNumberListResponse::CoexistenceState::TaggedSymbol
|
|
291
|
+
)
|
|
292
|
+
HISTORY_DECLINED =
|
|
293
|
+
T.let(
|
|
294
|
+
:history_declined,
|
|
295
|
+
Telnyx::Models::Whatsapp::PhoneNumberListResponse::CoexistenceState::TaggedSymbol
|
|
296
|
+
)
|
|
297
|
+
SYNC_DEADLINE_EXPIRED =
|
|
298
|
+
T.let(
|
|
299
|
+
:sync_deadline_expired,
|
|
300
|
+
Telnyx::Models::Whatsapp::PhoneNumberListResponse::CoexistenceState::TaggedSymbol
|
|
301
|
+
)
|
|
302
|
+
OFFBOARDED =
|
|
303
|
+
T.let(
|
|
304
|
+
:offboarded,
|
|
305
|
+
Telnyx::Models::Whatsapp::PhoneNumberListResponse::CoexistenceState::TaggedSymbol
|
|
306
|
+
)
|
|
307
|
+
DISCONNECTED =
|
|
308
|
+
T.let(
|
|
309
|
+
:disconnected,
|
|
310
|
+
Telnyx::Models::Whatsapp::PhoneNumberListResponse::CoexistenceState::TaggedSymbol
|
|
311
|
+
)
|
|
312
|
+
|
|
313
|
+
sig do
|
|
314
|
+
override.returns(
|
|
315
|
+
T::Array[
|
|
316
|
+
Telnyx::Models::Whatsapp::PhoneNumberListResponse::CoexistenceState::TaggedSymbol
|
|
317
|
+
]
|
|
318
|
+
)
|
|
319
|
+
end
|
|
320
|
+
def self.values
|
|
321
|
+
end
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
class SyncProgress < Telnyx::Internal::Type::BaseModel
|
|
325
|
+
OrHash =
|
|
326
|
+
T.type_alias do
|
|
327
|
+
T.any(
|
|
328
|
+
Telnyx::Models::Whatsapp::PhoneNumberListResponse::SyncProgress,
|
|
329
|
+
Telnyx::Internal::AnyHash
|
|
330
|
+
)
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
sig { returns(T.nilable(String)) }
|
|
334
|
+
attr_reader :contacts_status
|
|
335
|
+
|
|
336
|
+
sig { params(contacts_status: String).void }
|
|
337
|
+
attr_writer :contacts_status
|
|
338
|
+
|
|
339
|
+
sig { returns(T.nilable(Integer)) }
|
|
340
|
+
attr_accessor :history_chunk_order
|
|
341
|
+
|
|
342
|
+
sig { returns(T.nilable(Integer)) }
|
|
343
|
+
attr_accessor :history_phase
|
|
344
|
+
|
|
345
|
+
sig { returns(T.nilable(Integer)) }
|
|
346
|
+
attr_accessor :history_progress
|
|
347
|
+
|
|
348
|
+
sig { returns(T.nilable(String)) }
|
|
349
|
+
attr_reader :history_status
|
|
350
|
+
|
|
351
|
+
sig { params(history_status: String).void }
|
|
352
|
+
attr_writer :history_status
|
|
353
|
+
|
|
354
|
+
# Synchronization progress. This object is returned only while a coexistence
|
|
355
|
+
# number is synchronizing.
|
|
356
|
+
sig do
|
|
357
|
+
params(
|
|
358
|
+
contacts_status: String,
|
|
359
|
+
history_chunk_order: T.nilable(Integer),
|
|
360
|
+
history_phase: T.nilable(Integer),
|
|
361
|
+
history_progress: T.nilable(Integer),
|
|
362
|
+
history_status: String
|
|
363
|
+
).returns(T.attached_class)
|
|
364
|
+
end
|
|
365
|
+
def self.new(
|
|
366
|
+
contacts_status: nil,
|
|
367
|
+
history_chunk_order: nil,
|
|
368
|
+
history_phase: nil,
|
|
369
|
+
history_progress: nil,
|
|
370
|
+
history_status: nil
|
|
371
|
+
)
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
sig do
|
|
375
|
+
override.returns(
|
|
376
|
+
{
|
|
377
|
+
contacts_status: String,
|
|
378
|
+
history_chunk_order: T.nilable(Integer),
|
|
379
|
+
history_phase: T.nilable(Integer),
|
|
380
|
+
history_progress: T.nilable(Integer),
|
|
381
|
+
history_status: String
|
|
382
|
+
}
|
|
383
|
+
)
|
|
384
|
+
end
|
|
385
|
+
def to_hash
|
|
386
|
+
end
|
|
387
|
+
end
|
|
388
|
+
end
|
|
389
|
+
end
|
|
390
|
+
end
|
|
391
|
+
end
|
|
@@ -120,8 +120,11 @@ module Telnyx
|
|
|
120
120
|
# Controls the reasoning effort for models that support it. When set, the model
|
|
121
121
|
# spends more or less compute on internal reasoning before generating its
|
|
122
122
|
# response. Supported values: none, minimal, low, medium, high, xhigh, max. Not
|
|
123
|
-
# all models support all values;
|
|
124
|
-
#
|
|
123
|
+
# all models support all values; each model's accepted set is returned as
|
|
124
|
+
# `supported_reasoning_efforts` in the model list. An unsupported value is
|
|
125
|
+
# rejected with a 400 error naming the value and the supported set. When omitted,
|
|
126
|
+
# reasoning models use their default effort level. On the Responses API the same
|
|
127
|
+
# control is `reasoning.effort`.
|
|
125
128
|
reasoning_effort: nil,
|
|
126
129
|
# Optional data-residency region the request should be served from, using the same
|
|
127
130
|
# vocabulary as your account's Data Locality setting. Behavior depends on `mode`.
|
|
@@ -2132,11 +2132,11 @@ module Telnyx
|
|
|
2132
2132
|
Telnyx::Calls::TranscriptionEngineGoogleConfig::OrHash,
|
|
2133
2133
|
Telnyx::Calls::TranscriptionEngineTelnyxConfig::OrHash,
|
|
2134
2134
|
Telnyx::Calls::DeepgramNova2Config::OrHash,
|
|
2135
|
-
Telnyx::Calls::
|
|
2135
|
+
Telnyx::Calls::DeepgramNova2SpecialtyConfig::OrHash,
|
|
2136
2136
|
Telnyx::Calls::DeepgramNova3Config::OrHash,
|
|
2137
|
-
Telnyx::Calls::
|
|
2138
|
-
Telnyx::Calls::
|
|
2139
|
-
Telnyx::Calls::
|
|
2137
|
+
Telnyx::Calls::DeepgramNova3MedicalConfig::OrHash,
|
|
2138
|
+
Telnyx::Calls::DeepgramFluxConfig::OrHash,
|
|
2139
|
+
Telnyx::Calls::DeepgramFluxMultiConfig::OrHash,
|
|
2140
2140
|
Telnyx::Calls::TranscriptionEngineAzureConfig::OrHash,
|
|
2141
2141
|
Telnyx::Calls::TranscriptionEngineXaiConfig::OrHash,
|
|
2142
2142
|
Telnyx::Calls::TranscriptionEngineAssemblyaiConfig::OrHash,
|
|
@@ -2148,7 +2148,7 @@ module Telnyx
|
|
|
2148
2148
|
Telnyx::Calls::TranscriptionEngineCohereConfig::OrHash,
|
|
2149
2149
|
Telnyx::Calls::TranscriptionEngineAConfig::OrHash,
|
|
2150
2150
|
Telnyx::Calls::TranscriptionEngineBConfig::OrHash,
|
|
2151
|
-
Telnyx::Calls::
|
|
2151
|
+
Telnyx::Calls::TranscriptionEngineCommunityConfig::OrHash
|
|
2152
2152
|
),
|
|
2153
2153
|
transcription_tracks: String,
|
|
2154
2154
|
request_options: Telnyx::RequestOptions::OrHash
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Resources
|
|
5
|
+
class Iam
|
|
6
|
+
class Guardrail
|
|
7
|
+
# Statements on the whole organization that every request must pass while IAM is
|
|
8
|
+
# enabled, the owner's included.
|
|
9
|
+
class Statements
|
|
10
|
+
# Adds one statement to the organization's guardrail. A statement has an effect,
|
|
11
|
+
# `allow` unless it says `deny`, and a list of actions: exact action IDs,
|
|
12
|
+
# wildcards such as `number.*`, or `*`. Every entry must match the catalog. Start
|
|
13
|
+
# with an allow of `*` and add denies.
|
|
14
|
+
#
|
|
15
|
+
# While the organization has enabled IAM, every request in it must pass the
|
|
16
|
+
# guardrail, the organization owner's included: a guardrail statement must allow
|
|
17
|
+
# the request's action, and none may deny it. The seven actions a signed-in user
|
|
18
|
+
# always keeps are exempt, except for the owner. An organization without
|
|
19
|
+
# statements has no guardrail. The guardrail only takes away: it never allows more
|
|
20
|
+
# than roles and API key scopes allow. A request sent into a managed organization
|
|
21
|
+
# with `X-Managed-Account-Id` must pass the managed organization's guardrail
|
|
22
|
+
# instead of the sender's own, when the managed organization has enabled IAM,
|
|
23
|
+
# whether or not the sender's organization has. The sender's own guardrail still
|
|
24
|
+
# decides `managed_account.impersonate`.
|
|
25
|
+
#
|
|
26
|
+
# A change that would leave the guardrail not allowing `iam_guardrail.update`
|
|
27
|
+
# answers `422`, so the first statement must allow it, for example with an allow
|
|
28
|
+
# of `*`.
|
|
29
|
+
#
|
|
30
|
+
# Its action is `iam_guardrail.update`.
|
|
31
|
+
sig do
|
|
32
|
+
params(
|
|
33
|
+
actions: T::Array[String],
|
|
34
|
+
effect:
|
|
35
|
+
Telnyx::Iam::Guardrail::StatementCreateParams::Effect::OrSymbol,
|
|
36
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
37
|
+
).returns(Telnyx::Iam::Guardrail::IamGuardrailStatementResponse)
|
|
38
|
+
end
|
|
39
|
+
def create(
|
|
40
|
+
# Exact action IDs from `GET /v2/iam/actions`, wildcards such as `number.*`, which
|
|
41
|
+
# covers every action ID that starts with `number.`, or `*`, which covers every
|
|
42
|
+
# action. Every entry must match the catalog. Duplicates are removed.
|
|
43
|
+
actions:,
|
|
44
|
+
# Whether the statement allows or denies its actions.
|
|
45
|
+
effect: nil,
|
|
46
|
+
request_options: {}
|
|
47
|
+
)
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Replaces a guardrail statement's effect and actions. Both are required.
|
|
51
|
+
#
|
|
52
|
+
# A change that would leave the guardrail not allowing `iam_guardrail.update`
|
|
53
|
+
# answers `422`, so the first statement must allow it, for example with an allow
|
|
54
|
+
# of `*`.
|
|
55
|
+
#
|
|
56
|
+
# Its action is `iam_guardrail.update`.
|
|
57
|
+
sig do
|
|
58
|
+
params(
|
|
59
|
+
statement_id: String,
|
|
60
|
+
actions: T::Array[String],
|
|
61
|
+
effect:
|
|
62
|
+
Telnyx::Iam::Guardrail::StatementUpdateParams::Effect::OrSymbol,
|
|
63
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
64
|
+
).returns(Telnyx::Iam::Guardrail::IamGuardrailStatementResponse)
|
|
65
|
+
end
|
|
66
|
+
def update(
|
|
67
|
+
# The guardrail statement's ID.
|
|
68
|
+
statement_id,
|
|
69
|
+
# Exact action IDs from `GET /v2/iam/actions`, wildcards such as `number.*`, which
|
|
70
|
+
# covers every action ID that starts with `number.`, or `*`, which covers every
|
|
71
|
+
# action. Every entry must match the catalog. Duplicates are removed.
|
|
72
|
+
actions:,
|
|
73
|
+
# Whether the statement allows or denies its actions.
|
|
74
|
+
effect:,
|
|
75
|
+
request_options: {}
|
|
76
|
+
)
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Lists the statements of the organization's guardrail, oldest first. An
|
|
80
|
+
# organization without statements has no guardrail.
|
|
81
|
+
#
|
|
82
|
+
# Its action is `iam_guardrail.read`.
|
|
83
|
+
sig do
|
|
84
|
+
params(
|
|
85
|
+
page_number: Integer,
|
|
86
|
+
page_size: Integer,
|
|
87
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
88
|
+
).returns(
|
|
89
|
+
Telnyx::Internal::DefaultFlatPagination[
|
|
90
|
+
Telnyx::Iam::Guardrail::IamGuardrailStatement
|
|
91
|
+
]
|
|
92
|
+
)
|
|
93
|
+
end
|
|
94
|
+
def list(
|
|
95
|
+
# The page to return, counting from 1.
|
|
96
|
+
page_number: nil,
|
|
97
|
+
# The number of results per page.
|
|
98
|
+
page_size: nil,
|
|
99
|
+
request_options: {}
|
|
100
|
+
)
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Deletes one statement from the organization's guardrail. A guardrail left
|
|
104
|
+
# without statements has no effect.
|
|
105
|
+
#
|
|
106
|
+
# A change that would leave the guardrail not allowing `iam_guardrail.update`
|
|
107
|
+
# answers `422`, so the first statement must allow it, for example with an allow
|
|
108
|
+
# of `*`.
|
|
109
|
+
#
|
|
110
|
+
# Its action is `iam_guardrail.update`.
|
|
111
|
+
sig do
|
|
112
|
+
params(
|
|
113
|
+
statement_id: String,
|
|
114
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
115
|
+
).returns(Telnyx::Iam::Guardrail::IamGuardrailStatementResponse)
|
|
116
|
+
end
|
|
117
|
+
def delete(
|
|
118
|
+
# The guardrail statement's ID.
|
|
119
|
+
statement_id,
|
|
120
|
+
request_options: {}
|
|
121
|
+
)
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# @api private
|
|
125
|
+
sig { params(client: Telnyx::Client).returns(T.attached_class) }
|
|
126
|
+
def self.new(client:)
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Resources
|
|
5
|
+
class Iam
|
|
6
|
+
# Statements on the whole organization that every request must pass while IAM is
|
|
7
|
+
# enabled, the owner's included.
|
|
8
|
+
class Guardrail
|
|
9
|
+
# Statements on the whole organization that every request must pass while IAM is
|
|
10
|
+
# enabled, the owner's included.
|
|
11
|
+
sig { returns(Telnyx::Resources::Iam::Guardrail::Statements) }
|
|
12
|
+
attr_reader :statements
|
|
13
|
+
|
|
14
|
+
# Deletes every statement of the organization's guardrail, so the organization has
|
|
15
|
+
# no guardrail.
|
|
16
|
+
#
|
|
17
|
+
# Its action is `iam_guardrail.update`.
|
|
18
|
+
sig { params(request_options: Telnyx::RequestOptions::OrHash).void }
|
|
19
|
+
def delete_all(request_options: {})
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# @api private
|
|
23
|
+
sig { params(client: Telnyx::Client).returns(T.attached_class) }
|
|
24
|
+
def self.new(client:)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -10,8 +10,10 @@ module Telnyx
|
|
|
10
10
|
# `deny`, and a list of actions: exact action IDs, wildcards such as
|
|
11
11
|
# `number_order.*`, or `*`. Every entry must match the catalog, and there is no
|
|
12
12
|
# upper limit on the number of entries. A role can hold both an allow and a deny,
|
|
13
|
-
# such as an allow of `number.*` and a deny of `number.delete`. A
|
|
14
|
-
#
|
|
13
|
+
# such as an allow of `number.*` and a deny of `number.delete`. A statement can
|
|
14
|
+
# also carry `conditions.ip`, a list of IPv4 or IPv6 addresses or CIDR ranges, and
|
|
15
|
+
# then applies only to requests from those addresses. A change applies to new
|
|
16
|
+
# requests within five seconds.
|
|
15
17
|
#
|
|
16
18
|
# Only the organization owner can call this endpoint. Its action is
|
|
17
19
|
# `iam_roles.update`. Other users and service account tokens get `403`.
|
|
@@ -19,6 +21,8 @@ module Telnyx
|
|
|
19
21
|
params(
|
|
20
22
|
role_id: String,
|
|
21
23
|
actions: T::Array[String],
|
|
24
|
+
conditions:
|
|
25
|
+
Telnyx::Iam::Roles::IamRoleStatementConditions::OrHash,
|
|
22
26
|
effect:
|
|
23
27
|
Telnyx::Iam::Roles::StatementCreateParams::Effect::OrSymbol,
|
|
24
28
|
request_options: Telnyx::RequestOptions::OrHash
|
|
@@ -31,14 +35,17 @@ module Telnyx
|
|
|
31
35
|
# which covers every action ID that starts with `number_order.`, or `*`, which
|
|
32
36
|
# covers every action. Every entry must match the catalog. Duplicates are removed.
|
|
33
37
|
actions:,
|
|
38
|
+
# Optional conditions. Without them, the statement applies to every request.
|
|
39
|
+
conditions: nil,
|
|
34
40
|
# Whether the statement allows or denies its actions.
|
|
35
41
|
effect: nil,
|
|
36
42
|
request_options: {}
|
|
37
43
|
)
|
|
38
44
|
end
|
|
39
45
|
|
|
40
|
-
# Replaces a statement's effect
|
|
41
|
-
#
|
|
46
|
+
# Replaces a statement's effect, actions, and conditions. `effect` and `actions`
|
|
47
|
+
# are required, and leaving out `conditions` clears them. A change applies to new
|
|
48
|
+
# requests within five seconds.
|
|
42
49
|
#
|
|
43
50
|
# Only the organization owner can call this endpoint. Its action is
|
|
44
51
|
# `iam_roles.update`. Other users and service account tokens get `403`.
|
|
@@ -49,6 +56,8 @@ module Telnyx
|
|
|
49
56
|
actions: T::Array[String],
|
|
50
57
|
effect:
|
|
51
58
|
Telnyx::Iam::Roles::StatementUpdateParams::Effect::OrSymbol,
|
|
59
|
+
conditions:
|
|
60
|
+
Telnyx::Iam::Roles::IamRoleStatementConditions::OrHash,
|
|
52
61
|
request_options: Telnyx::RequestOptions::OrHash
|
|
53
62
|
).returns(Telnyx::Iam::Roles::IamRoleStatementResponse)
|
|
54
63
|
end
|
|
@@ -64,6 +73,9 @@ module Telnyx
|
|
|
64
73
|
actions:,
|
|
65
74
|
# Body param: Whether the statement allows or denies its actions.
|
|
66
75
|
effect:,
|
|
76
|
+
# Body param: Optional conditions. Leaving them out clears the statement's
|
|
77
|
+
# conditions.
|
|
78
|
+
conditions: nil,
|
|
67
79
|
request_options: {}
|
|
68
80
|
)
|
|
69
81
|
end
|