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
|
@@ -93,11 +93,11 @@ module Telnyx
|
|
|
93
93
|
Telnyx::Calls::TranscriptionEngineGoogleConfig
|
|
94
94
|
| Telnyx::Calls::TranscriptionEngineTelnyxConfig
|
|
95
95
|
| Telnyx::Calls::DeepgramNova2Config
|
|
96
|
-
| Telnyx::Calls::
|
|
96
|
+
| Telnyx::Calls::DeepgramNova2SpecialtyConfig
|
|
97
97
|
| Telnyx::Calls::DeepgramNova3Config
|
|
98
|
-
| Telnyx::Calls::
|
|
99
|
-
| Telnyx::Calls::
|
|
100
|
-
| Telnyx::Calls::
|
|
98
|
+
| Telnyx::Calls::DeepgramNova3MedicalConfig
|
|
99
|
+
| Telnyx::Calls::DeepgramFluxConfig
|
|
100
|
+
| Telnyx::Calls::DeepgramFluxMultiConfig
|
|
101
101
|
| Telnyx::Calls::TranscriptionEngineAzureConfig
|
|
102
102
|
| Telnyx::Calls::TranscriptionEngineXaiConfig
|
|
103
103
|
| Telnyx::Calls::TranscriptionEngineAssemblyaiConfig
|
|
@@ -109,388 +109,11 @@ module Telnyx
|
|
|
109
109
|
| Telnyx::Calls::TranscriptionEngineCohereConfig
|
|
110
110
|
| Telnyx::Calls::TranscriptionEngineAConfig
|
|
111
111
|
| Telnyx::Calls::TranscriptionEngineBConfig
|
|
112
|
-
| Telnyx::Calls::
|
|
112
|
+
| Telnyx::Calls::TranscriptionEngineCommunityConfig
|
|
113
113
|
|
|
114
114
|
module TranscriptionEngineConfig
|
|
115
115
|
extend Telnyx::Internal::Type::Union
|
|
116
116
|
|
|
117
|
-
type deepgram_nova2_specialty_config =
|
|
118
|
-
{
|
|
119
|
-
transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig::transcription_engine,
|
|
120
|
-
transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig::transcription_model,
|
|
121
|
-
hints: ::Array[String],
|
|
122
|
-
interim_results: bool,
|
|
123
|
-
keywords_boosting: ::Hash[Symbol, Float],
|
|
124
|
-
language: Telnyx::Models::Calls::deepgram_english_transcription_language,
|
|
125
|
-
smart_format: bool,
|
|
126
|
-
utterance_end_ms: Integer
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
class DeepgramNova2SpecialtyConfig < Telnyx::Internal::Type::BaseModel
|
|
130
|
-
attr_accessor transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig::transcription_engine
|
|
131
|
-
|
|
132
|
-
attr_accessor transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig::transcription_model
|
|
133
|
-
|
|
134
|
-
attr_reader hints: ::Array[String]?
|
|
135
|
-
|
|
136
|
-
def hints=: (::Array[String]) -> ::Array[String]
|
|
137
|
-
|
|
138
|
-
attr_reader interim_results: bool?
|
|
139
|
-
|
|
140
|
-
def interim_results=: (bool) -> bool
|
|
141
|
-
|
|
142
|
-
attr_reader keywords_boosting: ::Hash[Symbol, Float]?
|
|
143
|
-
|
|
144
|
-
def keywords_boosting=: (
|
|
145
|
-
::Hash[Symbol, Float]
|
|
146
|
-
) -> ::Hash[Symbol, Float]
|
|
147
|
-
|
|
148
|
-
attr_reader language: Telnyx::Models::Calls::deepgram_english_transcription_language?
|
|
149
|
-
|
|
150
|
-
def language=: (
|
|
151
|
-
Telnyx::Models::Calls::deepgram_english_transcription_language
|
|
152
|
-
) -> Telnyx::Models::Calls::deepgram_english_transcription_language
|
|
153
|
-
|
|
154
|
-
attr_reader smart_format: bool?
|
|
155
|
-
|
|
156
|
-
def smart_format=: (bool) -> bool
|
|
157
|
-
|
|
158
|
-
attr_reader utterance_end_ms: Integer?
|
|
159
|
-
|
|
160
|
-
def utterance_end_ms=: (Integer) -> Integer
|
|
161
|
-
|
|
162
|
-
def initialize: (
|
|
163
|
-
transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig::transcription_engine,
|
|
164
|
-
transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig::transcription_model,
|
|
165
|
-
?hints: ::Array[String],
|
|
166
|
-
?interim_results: bool,
|
|
167
|
-
?keywords_boosting: ::Hash[Symbol, Float],
|
|
168
|
-
?language: Telnyx::Models::Calls::deepgram_english_transcription_language,
|
|
169
|
-
?smart_format: bool,
|
|
170
|
-
?utterance_end_ms: Integer
|
|
171
|
-
) -> void
|
|
172
|
-
|
|
173
|
-
def to_hash: -> {
|
|
174
|
-
transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig::transcription_engine,
|
|
175
|
-
transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig::transcription_model,
|
|
176
|
-
hints: ::Array[String],
|
|
177
|
-
interim_results: bool,
|
|
178
|
-
keywords_boosting: ::Hash[Symbol, Float],
|
|
179
|
-
language: Telnyx::Models::Calls::deepgram_english_transcription_language,
|
|
180
|
-
smart_format: bool,
|
|
181
|
-
utterance_end_ms: Integer
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
type transcription_engine = :Deepgram
|
|
185
|
-
|
|
186
|
-
module TranscriptionEngine
|
|
187
|
-
extend Telnyx::Internal::Type::Enum
|
|
188
|
-
|
|
189
|
-
DEEPGRAM: :Deepgram
|
|
190
|
-
|
|
191
|
-
def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig::transcription_engine]
|
|
192
|
-
end
|
|
193
|
-
|
|
194
|
-
type transcription_model =
|
|
195
|
-
:"deepgram/nova-2-medical" | :"deepgram/nova-2-phonecall"
|
|
196
|
-
|
|
197
|
-
module TranscriptionModel
|
|
198
|
-
extend Telnyx::Internal::Type::Enum
|
|
199
|
-
|
|
200
|
-
DEEPGRAM_NOVA_2_MEDICAL: :"deepgram/nova-2-medical"
|
|
201
|
-
DEEPGRAM_NOVA_2_PHONECALL: :"deepgram/nova-2-phonecall"
|
|
202
|
-
|
|
203
|
-
def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig::transcription_model]
|
|
204
|
-
end
|
|
205
|
-
end
|
|
206
|
-
|
|
207
|
-
type deepgram_nova3_medical_config =
|
|
208
|
-
{
|
|
209
|
-
transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig::transcription_engine,
|
|
210
|
-
transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig::transcription_model,
|
|
211
|
-
interim_results: bool,
|
|
212
|
-
keyterms: ::Array[String],
|
|
213
|
-
keywords_boosting: ::Hash[Symbol, Float],
|
|
214
|
-
language: Telnyx::Models::Calls::deepgram_english_transcription_language,
|
|
215
|
-
smart_format: bool,
|
|
216
|
-
utterance_end_ms: Integer
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
class DeepgramNova3MedicalConfig < Telnyx::Internal::Type::BaseModel
|
|
220
|
-
attr_accessor transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig::transcription_engine
|
|
221
|
-
|
|
222
|
-
attr_accessor transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig::transcription_model
|
|
223
|
-
|
|
224
|
-
attr_reader interim_results: bool?
|
|
225
|
-
|
|
226
|
-
def interim_results=: (bool) -> bool
|
|
227
|
-
|
|
228
|
-
attr_reader keyterms: ::Array[String]?
|
|
229
|
-
|
|
230
|
-
def keyterms=: (::Array[String]) -> ::Array[String]
|
|
231
|
-
|
|
232
|
-
attr_reader keywords_boosting: ::Hash[Symbol, Float]?
|
|
233
|
-
|
|
234
|
-
def keywords_boosting=: (
|
|
235
|
-
::Hash[Symbol, Float]
|
|
236
|
-
) -> ::Hash[Symbol, Float]
|
|
237
|
-
|
|
238
|
-
attr_reader language: Telnyx::Models::Calls::deepgram_english_transcription_language?
|
|
239
|
-
|
|
240
|
-
def language=: (
|
|
241
|
-
Telnyx::Models::Calls::deepgram_english_transcription_language
|
|
242
|
-
) -> Telnyx::Models::Calls::deepgram_english_transcription_language
|
|
243
|
-
|
|
244
|
-
attr_reader smart_format: bool?
|
|
245
|
-
|
|
246
|
-
def smart_format=: (bool) -> bool
|
|
247
|
-
|
|
248
|
-
attr_reader utterance_end_ms: Integer?
|
|
249
|
-
|
|
250
|
-
def utterance_end_ms=: (Integer) -> Integer
|
|
251
|
-
|
|
252
|
-
def initialize: (
|
|
253
|
-
transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig::transcription_engine,
|
|
254
|
-
transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig::transcription_model,
|
|
255
|
-
?interim_results: bool,
|
|
256
|
-
?keyterms: ::Array[String],
|
|
257
|
-
?keywords_boosting: ::Hash[Symbol, Float],
|
|
258
|
-
?language: Telnyx::Models::Calls::deepgram_english_transcription_language,
|
|
259
|
-
?smart_format: bool,
|
|
260
|
-
?utterance_end_ms: Integer
|
|
261
|
-
) -> void
|
|
262
|
-
|
|
263
|
-
def to_hash: -> {
|
|
264
|
-
transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig::transcription_engine,
|
|
265
|
-
transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig::transcription_model,
|
|
266
|
-
interim_results: bool,
|
|
267
|
-
keyterms: ::Array[String],
|
|
268
|
-
keywords_boosting: ::Hash[Symbol, Float],
|
|
269
|
-
language: Telnyx::Models::Calls::deepgram_english_transcription_language,
|
|
270
|
-
smart_format: bool,
|
|
271
|
-
utterance_end_ms: Integer
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
type transcription_engine = :Deepgram
|
|
275
|
-
|
|
276
|
-
module TranscriptionEngine
|
|
277
|
-
extend Telnyx::Internal::Type::Enum
|
|
278
|
-
|
|
279
|
-
DEEPGRAM: :Deepgram
|
|
280
|
-
|
|
281
|
-
def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig::transcription_engine]
|
|
282
|
-
end
|
|
283
|
-
|
|
284
|
-
type transcription_model = :"deepgram/nova-3-medical"
|
|
285
|
-
|
|
286
|
-
module TranscriptionModel
|
|
287
|
-
extend Telnyx::Internal::Type::Enum
|
|
288
|
-
|
|
289
|
-
DEEPGRAM_NOVA_3_MEDICAL: :"deepgram/nova-3-medical"
|
|
290
|
-
|
|
291
|
-
def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig::transcription_model]
|
|
292
|
-
end
|
|
293
|
-
end
|
|
294
|
-
|
|
295
|
-
type deepgram_flux_config =
|
|
296
|
-
{
|
|
297
|
-
transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::transcription_engine,
|
|
298
|
-
transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::transcription_model,
|
|
299
|
-
interim_results: bool,
|
|
300
|
-
keyterms: ::Array[String],
|
|
301
|
-
language: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::language
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
class DeepgramFluxConfig < Telnyx::Internal::Type::BaseModel
|
|
305
|
-
attr_accessor transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::transcription_engine
|
|
306
|
-
|
|
307
|
-
attr_accessor transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::transcription_model
|
|
308
|
-
|
|
309
|
-
attr_reader interim_results: bool?
|
|
310
|
-
|
|
311
|
-
def interim_results=: (bool) -> bool
|
|
312
|
-
|
|
313
|
-
attr_reader keyterms: ::Array[String]?
|
|
314
|
-
|
|
315
|
-
def keyterms=: (::Array[String]) -> ::Array[String]
|
|
316
|
-
|
|
317
|
-
attr_reader language: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::language?
|
|
318
|
-
|
|
319
|
-
def language=: (
|
|
320
|
-
Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::language
|
|
321
|
-
) -> Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::language
|
|
322
|
-
|
|
323
|
-
def initialize: (
|
|
324
|
-
transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::transcription_engine,
|
|
325
|
-
transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::transcription_model,
|
|
326
|
-
?interim_results: bool,
|
|
327
|
-
?keyterms: ::Array[String],
|
|
328
|
-
?language: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::language
|
|
329
|
-
) -> void
|
|
330
|
-
|
|
331
|
-
def to_hash: -> {
|
|
332
|
-
transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::transcription_engine,
|
|
333
|
-
transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::transcription_model,
|
|
334
|
-
interim_results: bool,
|
|
335
|
-
keyterms: ::Array[String],
|
|
336
|
-
language: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::language
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
type transcription_engine = :Deepgram
|
|
340
|
-
|
|
341
|
-
module TranscriptionEngine
|
|
342
|
-
extend Telnyx::Internal::Type::Enum
|
|
343
|
-
|
|
344
|
-
DEEPGRAM: :Deepgram
|
|
345
|
-
|
|
346
|
-
def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::transcription_engine]
|
|
347
|
-
end
|
|
348
|
-
|
|
349
|
-
type transcription_model = :"deepgram/flux"
|
|
350
|
-
|
|
351
|
-
module TranscriptionModel
|
|
352
|
-
extend Telnyx::Internal::Type::Enum
|
|
353
|
-
|
|
354
|
-
DEEPGRAM_FLUX: :"deepgram/flux"
|
|
355
|
-
|
|
356
|
-
def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::transcription_model]
|
|
357
|
-
end
|
|
358
|
-
|
|
359
|
-
type language = :en
|
|
360
|
-
|
|
361
|
-
module Language
|
|
362
|
-
extend Telnyx::Internal::Type::Enum
|
|
363
|
-
|
|
364
|
-
EN: :en
|
|
365
|
-
|
|
366
|
-
def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::language]
|
|
367
|
-
end
|
|
368
|
-
end
|
|
369
|
-
|
|
370
|
-
type deepgram_flux_multi_config =
|
|
371
|
-
{
|
|
372
|
-
transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::transcription_engine,
|
|
373
|
-
transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::transcription_model,
|
|
374
|
-
interim_results: bool,
|
|
375
|
-
keyterms: ::Array[String],
|
|
376
|
-
language: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::language
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
class DeepgramFluxMultiConfig < Telnyx::Internal::Type::BaseModel
|
|
380
|
-
attr_accessor transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::transcription_engine
|
|
381
|
-
|
|
382
|
-
attr_accessor transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::transcription_model
|
|
383
|
-
|
|
384
|
-
attr_reader interim_results: bool?
|
|
385
|
-
|
|
386
|
-
def interim_results=: (bool) -> bool
|
|
387
|
-
|
|
388
|
-
attr_reader keyterms: ::Array[String]?
|
|
389
|
-
|
|
390
|
-
def keyterms=: (::Array[String]) -> ::Array[String]
|
|
391
|
-
|
|
392
|
-
attr_reader language: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::language?
|
|
393
|
-
|
|
394
|
-
def language=: (
|
|
395
|
-
Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::language
|
|
396
|
-
) -> Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::language
|
|
397
|
-
|
|
398
|
-
def initialize: (
|
|
399
|
-
transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::transcription_engine,
|
|
400
|
-
transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::transcription_model,
|
|
401
|
-
?interim_results: bool,
|
|
402
|
-
?keyterms: ::Array[String],
|
|
403
|
-
?language: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::language
|
|
404
|
-
) -> void
|
|
405
|
-
|
|
406
|
-
def to_hash: -> {
|
|
407
|
-
transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::transcription_engine,
|
|
408
|
-
transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::transcription_model,
|
|
409
|
-
interim_results: bool,
|
|
410
|
-
keyterms: ::Array[String],
|
|
411
|
-
language: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::language
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
type transcription_engine = :Deepgram
|
|
415
|
-
|
|
416
|
-
module TranscriptionEngine
|
|
417
|
-
extend Telnyx::Internal::Type::Enum
|
|
418
|
-
|
|
419
|
-
DEEPGRAM: :Deepgram
|
|
420
|
-
|
|
421
|
-
def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::transcription_engine]
|
|
422
|
-
end
|
|
423
|
-
|
|
424
|
-
type transcription_model = :"deepgram/flux-multi"
|
|
425
|
-
|
|
426
|
-
module TranscriptionModel
|
|
427
|
-
extend Telnyx::Internal::Type::Enum
|
|
428
|
-
|
|
429
|
-
DEEPGRAM_FLUX_MULTI: :"deepgram/flux-multi"
|
|
430
|
-
|
|
431
|
-
def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::transcription_model]
|
|
432
|
-
end
|
|
433
|
-
|
|
434
|
-
type language =
|
|
435
|
-
:en | :es | :fr | :de | :hi | :ru | :pt | :ja | :it | :nl | :auto
|
|
436
|
-
|
|
437
|
-
module Language
|
|
438
|
-
extend Telnyx::Internal::Type::Enum
|
|
439
|
-
|
|
440
|
-
EN: :en
|
|
441
|
-
ES: :es
|
|
442
|
-
FR: :fr
|
|
443
|
-
DE: :de
|
|
444
|
-
HI: :hi
|
|
445
|
-
RU: :ru
|
|
446
|
-
PT: :pt
|
|
447
|
-
JA: :ja
|
|
448
|
-
IT: :it
|
|
449
|
-
NL: :nl
|
|
450
|
-
AUTO: :auto
|
|
451
|
-
|
|
452
|
-
def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::language]
|
|
453
|
-
end
|
|
454
|
-
end
|
|
455
|
-
|
|
456
|
-
type transcription_engine_community_config =
|
|
457
|
-
{
|
|
458
|
-
api_key_ref: String,
|
|
459
|
-
interim_results: bool,
|
|
460
|
-
language: String,
|
|
461
|
-
transcription_model: String
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
class TranscriptionEngineCommunityConfig < Telnyx::Internal::Type::BaseModel
|
|
465
|
-
attr_accessor api_key_ref: String
|
|
466
|
-
|
|
467
|
-
attr_reader interim_results: bool?
|
|
468
|
-
|
|
469
|
-
def interim_results=: (bool) -> bool
|
|
470
|
-
|
|
471
|
-
attr_reader language: String?
|
|
472
|
-
|
|
473
|
-
def language=: (String) -> String
|
|
474
|
-
|
|
475
|
-
attr_reader transcription_model: String?
|
|
476
|
-
|
|
477
|
-
def transcription_model=: (String) -> String
|
|
478
|
-
|
|
479
|
-
def initialize: (
|
|
480
|
-
api_key_ref: String,
|
|
481
|
-
?interim_results: bool,
|
|
482
|
-
?language: String,
|
|
483
|
-
?transcription_model: String
|
|
484
|
-
) -> void
|
|
485
|
-
|
|
486
|
-
def to_hash: -> {
|
|
487
|
-
api_key_ref: String,
|
|
488
|
-
interim_results: bool,
|
|
489
|
-
language: String,
|
|
490
|
-
transcription_model: String
|
|
491
|
-
}
|
|
492
|
-
end
|
|
493
|
-
|
|
494
117
|
def self?.variants: -> ::Array[Telnyx::Models::Calls::TranscriptionStartRequest::transcription_engine_config]
|
|
495
118
|
end
|
|
496
119
|
end
|
|
@@ -180,14 +180,24 @@ module Telnyx
|
|
|
180
180
|
def self?.values: -> ::Array[Telnyx::Models::EmailEventListResponse::Payload::status]
|
|
181
181
|
end
|
|
182
182
|
|
|
183
|
-
type bcc =
|
|
183
|
+
type bcc =
|
|
184
|
+
Telnyx::EmailWebhookRecipient
|
|
185
|
+
| Telnyx::Models::EmailEventListResponse::Payload::Bcc::redacted
|
|
184
186
|
|
|
185
187
|
module Bcc
|
|
186
188
|
extend Telnyx::Internal::Type::Union
|
|
187
189
|
|
|
188
|
-
|
|
190
|
+
type redacted = :redacted
|
|
191
|
+
|
|
192
|
+
module Redacted
|
|
193
|
+
extend Telnyx::Internal::Type::Enum
|
|
194
|
+
|
|
195
|
+
REDACTED: :redacted
|
|
189
196
|
|
|
190
|
-
|
|
197
|
+
def self?.values: -> ::Array[Telnyx::Models::EmailEventListResponse::Payload::Bcc::redacted]
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
def self?.variants: -> ::Array[Telnyx::Models::EmailEventListResponse::Payload::bcc]
|
|
191
201
|
end
|
|
192
202
|
|
|
193
203
|
type cc = Telnyx::EmailWebhookRecipient | String
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module Iam
|
|
4
|
+
module Guardrail
|
|
5
|
+
type iam_guardrail_statement =
|
|
6
|
+
{
|
|
7
|
+
id: String,
|
|
8
|
+
actions: ::Array[String],
|
|
9
|
+
created_at: Time,
|
|
10
|
+
effect: Telnyx::Models::Iam::Guardrail::IamGuardrailStatement::effect,
|
|
11
|
+
organization_id: String,
|
|
12
|
+
record_type: Telnyx::Models::Iam::Guardrail::IamGuardrailStatement::record_type,
|
|
13
|
+
updated_at: Time
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
class IamGuardrailStatement < Telnyx::Internal::Type::BaseModel
|
|
17
|
+
attr_accessor id: String
|
|
18
|
+
|
|
19
|
+
attr_accessor actions: ::Array[String]
|
|
20
|
+
|
|
21
|
+
attr_accessor created_at: Time
|
|
22
|
+
|
|
23
|
+
attr_accessor effect: Telnyx::Models::Iam::Guardrail::IamGuardrailStatement::effect
|
|
24
|
+
|
|
25
|
+
attr_accessor organization_id: String
|
|
26
|
+
|
|
27
|
+
attr_accessor record_type: Telnyx::Models::Iam::Guardrail::IamGuardrailStatement::record_type
|
|
28
|
+
|
|
29
|
+
attr_accessor updated_at: Time
|
|
30
|
+
|
|
31
|
+
def initialize: (
|
|
32
|
+
id: String,
|
|
33
|
+
actions: ::Array[String],
|
|
34
|
+
created_at: Time,
|
|
35
|
+
effect: Telnyx::Models::Iam::Guardrail::IamGuardrailStatement::effect,
|
|
36
|
+
organization_id: String,
|
|
37
|
+
record_type: Telnyx::Models::Iam::Guardrail::IamGuardrailStatement::record_type,
|
|
38
|
+
updated_at: Time
|
|
39
|
+
) -> void
|
|
40
|
+
|
|
41
|
+
def to_hash: -> {
|
|
42
|
+
id: String,
|
|
43
|
+
actions: ::Array[String],
|
|
44
|
+
created_at: Time,
|
|
45
|
+
effect: Telnyx::Models::Iam::Guardrail::IamGuardrailStatement::effect,
|
|
46
|
+
organization_id: String,
|
|
47
|
+
record_type: Telnyx::Models::Iam::Guardrail::IamGuardrailStatement::record_type,
|
|
48
|
+
updated_at: Time
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
type effect = :allow | :deny
|
|
52
|
+
|
|
53
|
+
module Effect
|
|
54
|
+
extend Telnyx::Internal::Type::Enum
|
|
55
|
+
|
|
56
|
+
ALLOW: :allow
|
|
57
|
+
DENY: :deny
|
|
58
|
+
|
|
59
|
+
def self?.values: -> ::Array[Telnyx::Models::Iam::Guardrail::IamGuardrailStatement::effect]
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
type record_type = :iam_guardrail_statement
|
|
63
|
+
|
|
64
|
+
module RecordType
|
|
65
|
+
extend Telnyx::Internal::Type::Enum
|
|
66
|
+
|
|
67
|
+
IAM_GUARDRAIL_STATEMENT: :iam_guardrail_statement
|
|
68
|
+
|
|
69
|
+
def self?.values: -> ::Array[Telnyx::Models::Iam::Guardrail::IamGuardrailStatement::record_type]
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module Iam
|
|
4
|
+
module Guardrail
|
|
5
|
+
type iam_guardrail_statement_response =
|
|
6
|
+
{ data: Telnyx::Iam::Guardrail::IamGuardrailStatement }
|
|
7
|
+
|
|
8
|
+
class IamGuardrailStatementResponse < Telnyx::Internal::Type::BaseModel
|
|
9
|
+
attr_accessor data: Telnyx::Iam::Guardrail::IamGuardrailStatement
|
|
10
|
+
|
|
11
|
+
def initialize: (
|
|
12
|
+
data: Telnyx::Iam::Guardrail::IamGuardrailStatement
|
|
13
|
+
) -> void
|
|
14
|
+
|
|
15
|
+
def to_hash: -> {
|
|
16
|
+
data: Telnyx::Iam::Guardrail::IamGuardrailStatement
|
|
17
|
+
}
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module Iam
|
|
4
|
+
module Guardrail
|
|
5
|
+
type statement_create_params =
|
|
6
|
+
{
|
|
7
|
+
actions: ::Array[String],
|
|
8
|
+
effect: Telnyx::Models::Iam::Guardrail::StatementCreateParams::effect
|
|
9
|
+
}
|
|
10
|
+
& Telnyx::Internal::Type::request_parameters
|
|
11
|
+
|
|
12
|
+
class StatementCreateParams < Telnyx::Internal::Type::BaseModel
|
|
13
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
14
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
15
|
+
|
|
16
|
+
attr_accessor actions: ::Array[String]
|
|
17
|
+
|
|
18
|
+
attr_reader effect: Telnyx::Models::Iam::Guardrail::StatementCreateParams::effect?
|
|
19
|
+
|
|
20
|
+
def effect=: (
|
|
21
|
+
Telnyx::Models::Iam::Guardrail::StatementCreateParams::effect
|
|
22
|
+
) -> Telnyx::Models::Iam::Guardrail::StatementCreateParams::effect
|
|
23
|
+
|
|
24
|
+
def initialize: (
|
|
25
|
+
actions: ::Array[String],
|
|
26
|
+
?effect: Telnyx::Models::Iam::Guardrail::StatementCreateParams::effect,
|
|
27
|
+
?request_options: Telnyx::request_opts
|
|
28
|
+
) -> void
|
|
29
|
+
|
|
30
|
+
def to_hash: -> {
|
|
31
|
+
actions: ::Array[String],
|
|
32
|
+
effect: Telnyx::Models::Iam::Guardrail::StatementCreateParams::effect,
|
|
33
|
+
request_options: Telnyx::RequestOptions
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
type effect = :allow | :deny
|
|
37
|
+
|
|
38
|
+
module Effect
|
|
39
|
+
extend Telnyx::Internal::Type::Enum
|
|
40
|
+
|
|
41
|
+
ALLOW: :allow
|
|
42
|
+
DENY: :deny
|
|
43
|
+
|
|
44
|
+
def self?.values: -> ::Array[Telnyx::Models::Iam::Guardrail::StatementCreateParams::effect]
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module Iam
|
|
4
|
+
module Guardrail
|
|
5
|
+
type statement_delete_params =
|
|
6
|
+
{ statement_id: String } & Telnyx::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class StatementDeleteParams < Telnyx::Internal::Type::BaseModel
|
|
9
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
attr_accessor statement_id: String
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
statement_id: String,
|
|
16
|
+
?request_options: Telnyx::request_opts
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
statement_id: String,
|
|
21
|
+
request_options: Telnyx::RequestOptions
|
|
22
|
+
}
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module Iam
|
|
4
|
+
module Guardrail
|
|
5
|
+
type statement_list_params =
|
|
6
|
+
{ page_number: Integer, page_size: Integer }
|
|
7
|
+
& Telnyx::Internal::Type::request_parameters
|
|
8
|
+
|
|
9
|
+
class StatementListParams < Telnyx::Internal::Type::BaseModel
|
|
10
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
11
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
12
|
+
|
|
13
|
+
attr_reader page_number: Integer?
|
|
14
|
+
|
|
15
|
+
def page_number=: (Integer) -> Integer
|
|
16
|
+
|
|
17
|
+
attr_reader page_size: Integer?
|
|
18
|
+
|
|
19
|
+
def page_size=: (Integer) -> Integer
|
|
20
|
+
|
|
21
|
+
def initialize: (
|
|
22
|
+
?page_number: Integer,
|
|
23
|
+
?page_size: Integer,
|
|
24
|
+
?request_options: Telnyx::request_opts
|
|
25
|
+
) -> void
|
|
26
|
+
|
|
27
|
+
def to_hash: -> {
|
|
28
|
+
page_number: Integer,
|
|
29
|
+
page_size: Integer,
|
|
30
|
+
request_options: Telnyx::RequestOptions
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|